- 博客(7)
- 收藏
- 关注
转载 1006 -- Biorhythms
http://poj.org/problem?id=1006 1 #include<stdio.h> 2 int main() 3 { 4 int p,e,i,d,c=1,t; 5 //freopen("test.in", "r", stdin); 6 while(scanf("%d%d%d%d",&p,&e...
2016-04-11 15:50:00 113
转载 1005 -- I Think I Need a Houseboat
http://poj.org/problem?id=1005 1 #include<stdio.h> 2 #define M_PI 3.14159265358979323846 3 /*使用math.h中M_PI的程序在OJ上无法编译通过 4 Compile Error 5 Main.c 6 F:\temp\15366798.60331\Main....
2016-04-11 15:47:00 104
转载 1004 -- Financial Management
http://poj.org/problem?id=1004 1 #include<stdio.h> 2 int main() 3 { 4 int i; 5 double closingBalances,sum=0; 6 //freopen("test.in", "r", stdin); 7 for(i=0; i...
2016-04-11 15:46:00 67
转载 1003 -- Hangover
http://poj.org/problem?id=1003 1 #include<stdio.h> 2 double c,result[300]; 3 int size/*数组的实际使用长度*/; 4 void deal() 5 { 6 size=result[0]=0; 7 while(result[size]<=5....
2016-04-11 15:44:00 156
转载 1002 -- 487-3279
http://poj.org/problem?id=1002 RE、MLE、TLE、WA吃了个遍。听网上有人说超时TLE是因为快排最糟时O(n^2)的时间复杂度,还把一直不愿意学的堆排序给好好实现了下。结果,最后用的还是用的库函数qsort。重点是:把输入的数据处理成整数,字符串不行! 1 /*http://poj.org/showmessage?message_id=349...
2016-04-11 15:42:00 94
转载 1001 -- Exponentiation
http://poj.org/problem?id=1001 把数组大小从60改到100,500改到10000,居然忘记了改初始化方法里的循环条件,真是被自己蠢哭了..当年吃着东西一遍AC的题居然WA7次 代码后有从题目Discuss里扒来的测试数据 1 #include<stdio.h> 2 #include<string.h> 3 ...
2016-04-11 15:40:00 80
转载 1000 -- A+B Problem
http://poj.org/problem?id=1000 1 #include 2 3 int main() 4 5 { 6 7 int a,b; 8 9 while(scanf("%d%d",&a,&b)!=EOF) 10 11 { 12 13 printf("%d...
2016-04-11 15:35:00 107
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人