- 金币
- 2016-09-30 17:42:04 @
为什么在我电脑上是对的,在这上面就是错的?
7 条评论
-
zhaocongjun LV 7 @ 2016-12-01 17:13:46
pascal
var day,i,j,k,num:longint;
begin
read(k);
for i:=1 to 10000 do
for j:=1 to i do
begin
inc(day);
num:=num+i;
if day=k then
begin
write(num);
halt;
end;
end;
end. -
2016-11-23 11:06:51@
sb
-
2016-11-23 11:05:51@
死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死死
-
2016-11-23 11:05:44@
就是,傻傻傻
-
2016-11-18 21:56:18@
#include<stdio.h> long long total; int main() { int n; scanf("%d",&n); int a=1,i,j; for(i=1;a<=n;i++){ for(j=1;j<=i && a<=n;j++) { total+=i; a++; } } printf("%lld",total); return 0; }
纯模拟啊!!!简单的循环!!!智商呢?!智商呢?!这么简单的题连蒟蒻都不会错!!!
-
2016-11-16 23:49:14@
我也是·
-
2016-11-02 21:49:09@
我也一样
- 1