摘要: 水平很低,我是现在电脑上算好,直接提交结果的。电脑算了多少时间?很久。 #include #define SIZE 2147493647int recursion(int a);int main() { int i, sum, temp; for(i=1; iint main(){ pr... 阅读全文
posted @ 2015-10-05 15:19 StevenLuke 阅读(112) 评论(0) 推荐(0)
摘要: 用c编译器编译错误N遍,换用c++AC了 #include bool ju(int a);int main() { int n, i, ans; while(~scanf("%d", &n) && n) { ans = 0; for(i=2; i<=n/2; i++) { if(ju... 阅读全文
posted @ 2015-10-05 14:43 StevenLuke 阅读(137) 评论(0) 推荐(0)
摘要: #include int main() { double ans, n, m; while(~scanf("%lf%lf", &n, &m)) { ans = 1 / n; printf("%.2f\n", ans); } return 0;} 阅读全文
posted @ 2015-10-05 13:55 StevenLuke 阅读(87) 评论(0) 推荐(0)
摘要: #include int main() { int i, j, t, n, m, ans; scanf("%d", &t); while(t--) { scanf("%d%d", &n, &m); ans = 0; for(i=0; i<=n; i++) for(j=0; j<=n-... 阅读全文
posted @ 2015-10-05 13:39 StevenLuke 阅读(168) 评论(0) 推荐(0)