网络赛前10奖励计蒜客的本子或鼠标垫(外校也可以来现场领取)
Xidian Online Judge WebBoard
[ New Thread ]
Problem 1016 >> 为什么会时间超限啊啊啊啊啊
worse @ 2015-05-14 10:23:18
[ Quote ] [ Edit ] [ Delete ] 1#
#include<stdio.h>

int main(){
int a,b;
while(scanf("%d%d",&a,&b)!=EOF){
int c,i;
for(i = 0; i<a; i++) c++;
for(i = 0; i<b; i++) c++;
printf("%d\n",c);
}
return 0;
}
本地测试一切正常,也没有死循环,但是交上去就时间超限,这是为什么呢?
shenshilsy @ 2015-05-14 18:16:28
[ Quote ] [ Edit ] [ Delete ] 2#
好id 好问题 codeforces上至少三个人问过同样的问题了……lz快留下codeforces id 让我orz一下
15010120087 @ 2015-10-05 00:46:06
[ Quote ] [ Edit ] [ Delete ] 3#
1408020215 @ 2015-10-21 21:57:49
[ Quote ] [ Edit ] [ Delete ] 4#
你长的丑了
[Top] [Previous Page] [Next Page]
Anything about the Problems, Please Contact Admin:admin
All Copyright Reserved 2010-2014 Xidian ACM Online Judge TEAM
GPL2.0 2003-2014 HUSTOJ Project TEAM