/ new_bzoj /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:32:18: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=]
   scanf("%lld",&n);
                ~~^
foo.cc:33:51: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=]
   for (int i = 1; i <= n; ++ i) scanf("%lld",&b[i]) ,b[i]-=i; 
                                              ~~~~~^
foo.cc:32:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%lld",&n);
   ~~~~~^~~~~~~~~~~
foo.cc:33:53: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   for (int i = 1; i <= n; ++ i) scanf("%lld",&b[i]) ,b[i]-=i; 
                                 ~~~~~~~~~~~~~~~~~~~~^~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 7ms 1.625 MiB
#2 Accepted 3ms 1.461 MiB
#3 Accepted 4ms 1.5 MiB
#4 Accepted 6ms 1.5 MiB
#5 Accepted 7ms 1.66 MiB
#6 Accepted 59ms 2.379 MiB
#7 Accepted 3ms 1.492 MiB
#8 Accepted 3ms 1.398 MiB
#9 Accepted 3ms 1.512 MiB
#10 Accepted 3ms 1.527 MiB
#11 Accepted 3ms 1.535 MiB

信息

递交者
类型
递交
题目
数字序列
语言
C++
递交时间
2021-01-27 22:04:52
评测时间
2021-01-27 22:04:52
评测机
分数
100
总耗时
105ms
峰值内存
2.379 MiB