在我的电脑上code::blocks运行过不了,但代码是可以AC的,很是郁闷。
问了大神,知道了函数的参数是放在栈区,结构体太大的话,栈就爆了,如是后来就听从大神的意见用引用改写了。
传送门:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1853
#include
#include
#include
int ...
分类:
其他好文 时间:
2015-05-08 22:12:08
阅读次数:
140
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3780Paint the Grid AgainTime Limit:2 Seconds Memory Limit:65536 KBLeo has a grid withN×Nc...
分类:
其他好文 时间:
2015-05-05 14:19:50
阅读次数:
102
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3773Paint the GridTime Limit:2 Seconds Memory Limit:65536 KB Special JudgeLeo has a grid ...
分类:
其他好文 时间:
2015-05-05 14:15:48
阅读次数:
135
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=3754本题分数为0的概率不确定,所以不能从0这端出发.设E[i]为到达成功所需的步数,明显i>n时E[i]=0,当0#include #include using namespac...
分类:
其他好文 时间:
2015-05-05 12:18:31
阅读次数:
130
1.查找java相关得列表 [root@localhost ~]# yum -y list java* Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: mirrors.zju.edu.cn * extras...
分类:
系统相关 时间:
2015-05-04 18:23:49
阅读次数:
265
这是一道模拟题#include#includeusing namespace std;int main(){ int ca,cb,n; while(cin>>ca>>cb>>n)//ca,cb,n分别表示a水壶的容量,b的容量和要求的量n { int bnow;//b...
分类:
其他好文 时间:
2015-05-04 17:42:15
阅读次数:
213
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3819
题面:
Average Score
Time Limit: 2 Seconds Memory Limit: 65536 KB
Bob is a freshman in Marjar University. He is...
分类:
其他好文 时间:
2015-05-04 08:43:15
阅读次数:
187
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3827
题面:
Information Entropy
Time Limit: 2 Seconds Memory Limit: 65536 KB Special Judge
Information Theo...
分类:
其他好文 时间:
2015-05-04 08:41:30
阅读次数:
109
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3606Lazy SalesgirlTime Limit:5 Seconds Memory Limit:65536 KBKochiya Sanae is a lazy girl ...
分类:
其他好文 时间:
2015-05-02 23:21:47
阅读次数:
167
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3608Signal DetectionTime Limit:2 Seconds Memory Limit:65536 KBParallelepipedTypePrismFace...
分类:
其他好文 时间:
2015-05-02 23:21:22
阅读次数:
296