/ SB域 /

记录详情

Accepted

/usr/bin/ld.bfd: warning: /out/link.res contains output sections; did you forget -T?
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB
#2 Accepted 1ms 256.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 1ms 256.0 KiB
#5 Accepted 1ms 256.0 KiB
#6 Accepted 1ms 256.0 KiB
#7 Accepted 1ms 256.0 KiB
#8 Accepted 1ms 256.0 KiB
#9 Accepted 1ms 256.0 KiB
#10 Accepted 1ms 256.0 KiB
#11 Accepted 1ms 256.0 KiB
#12 Accepted 1ms 256.0 KiB
#13 Accepted 1ms 256.0 KiB
#14 Accepted 1ms 256.0 KiB
#15 Accepted 1ms 256.0 KiB
#16 Accepted 1ms 256.0 KiB
#17 Accepted 1ms 256.0 KiB
#18 Accepted 1ms 256.0 KiB
#19 Accepted 1ms 256.0 KiB
#20 Accepted 1ms 256.0 KiB

代码

var n,now,time:longint;
begin
 readln(n);
 now:=1;
 time:=0;
 while true do begin
  n:=n-now;
  if n-(now+1)<0 then now:=1
  else inc(now);
  inc(time);
  if n<=0 then break;
 end;
 writeln(time);
close(input);
close(output);
end.

信息

递交者
类型
递交
题目
有趣的bird
题目数据
下载
语言
Pascal
递交时间
2017-08-22 15:54:01
评测时间
2017-08-22 15:54:01
评测机
分数
100
总耗时
29ms
峰值内存
256.0 KiB