原文网址链接:http://haha.iczerd.com/weixin718 1、Second Guess Decisions 举棋不定 Few decisions cannot be changed later if needed. Better to take action that wallow in inaction. 决定往往是可以在往后...
分类:
其他好文 时间:
2015-05-04 18:23:28
阅读次数:
125
设这个序列的前缀和为Si(0 2 #include 3 4 const int maxn = 15; 5 int n; 6 int G[maxn][maxn]; 7 char s[100]; 8 int sum[maxn], a[maxn]; 9 10 int topo[maxn], c[ma...
分类:
编程语言 时间:
2015-04-25 12:10:25
阅读次数:
179
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=3758
题面:
Guess the Price
Time Limit: 1 Second Memory Limit: 32768 KB
In the television program "Shopping Street...
分类:
其他好文 时间:
2015-04-22 09:37:38
阅读次数:
191
题意:给一串密码(第一行),接着再给你很多行猜测,针对每行猜测,输出两个数字,分表代表:同一列上匹配的个数,不同列上匹配的个数。注:匹配指的是一次,一旦配对,不能再与其他配对。思路:每接受一行猜测就匹配,扫一遍就知道哪些是同列匹配的,统计出来,作为第一个输出的数字。扫的过程中将同列匹配的guess列...
分类:
其他好文 时间:
2015-04-21 12:56:14
阅读次数:
90
实现了EXCEL中的IRR函数。 public static double irr(double[] income) {
return irr(income, 0.1D);
}
public static double irr(double[] values, double guess) {
int maxIterationCount = 20;
doubl...
分类:
编程语言 时间:
2015-04-20 17:13:25
阅读次数:
144
Guess the number
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 3035 Accepted Submission(s): 2281
Problem Description
Happy new yea...
分类:
其他好文 时间:
2015-04-06 15:50:26
阅读次数:
174
#lang racket(define tolerance 0.00001);公差(define (fixed-point f first-guess) (define (close-enough? v1 v2) (< (abs (- v1 v2)) tolerance) );clos...
分类:
其他好文 时间:
2015-03-29 10:40:43
阅读次数:
142
做道水题凑凑题量,=_=||。直接用STL里的queue、stack 和 priority_queue模拟就好了,看看取出的元素是否和输入中的相等,注意在此之前要判断一下是否非空。 1 #include 2 using namespace std; 3 4 void scan( int &x ).....
分类:
其他好文 时间:
2015-03-15 16:46:00
阅读次数:
122
题目:给你一些数据结构上的操作,判断该数据结构是栈、队列、还是优先队列。
分析:初级DS,模拟。构建三种结构,直接模拟,然后根据结果判断。
说明:优先队列用最大堆实现。
#include
#include
#include
#include
#include
#include
using namespace std;
//stack
class stack
{
privat...
分类:
其他好文 时间:
2015-03-15 11:00:17
阅读次数:
151
把 /usr/share/libtool/config/config.guess 覆盖到相关软件自带的config.guess把 /usr/share/libtool/config/config.sub 覆盖到相关软件自带的config.sub./configure --enable-shared ...
分类:
系统相关 时间:
2015-03-04 12:37:11
阅读次数:
215