/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:6:22: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
         scanf("%d",&x);
                    ~~^
foo.cc:12:20: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
     printf("%d",ans);
                    ^
foo.cc:4:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d",&n,&k);
     ~~~~~^~~~~~~~~~~~~~
foo.cc:6:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d",&x);
         ~~~~~^~~~~~~~~

自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
正在同步测试数据,请稍后
{"receive":"2020-07-14T11:04:25.781Z","handle":"2020-07-14T11:04:25.781Z","cache_start":"2020-07-14T11:04:25.794Z","read_cases":"2020-07-14T11:04:28.468Z","judge":"2020-07-14T11:04:28.468Z","done":"2020-07-14T11:04:29.324Z"}
# 状态 耗时 内存占用
#1 Accepted 0ms 128.0 KiB
#2 Accepted 0ms 128.0 KiB
#3 Accepted 0ms 128.0 KiB
#4 Accepted 0ms 532.0 KiB
#5 Accepted 1ms 128.0 KiB
#6 Accepted 6ms 216.0 KiB
#7 Accepted 9ms 208.0 KiB
#8 Accepted 12ms 384.0 KiB
#9 Accepted 35ms 244.0 KiB
#10 Accepted 58ms 248.0 KiB

信息

递交者
类型
递交
题目
P1090 连续数之和
语言
C++
递交时间
2020-07-14 19:04:25
评测时间
2020-07-14 19:04:25
评测机
分数
100
总耗时
125ms
峰值内存
532.0 KiB