/ Vijos /

记录详情

Accepted

foo.cc: In function 'int get_sta(int)':
foo.cc:54:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 for (int i=1;p[i]<=x;i++) {
              ~~~~^~~
foo.cc: In function 'int main()':
foo.cc:84:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 for(k=1;k<max(2,tmp*2-1);k++) //注意当tmp==1时tmp*2-2=0!
         ~^~~~~~~~~~~~~~~
foo.cc:73:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&n);
 ~~~~~^~~~~~~~~
foo.cc:80:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&tmp);
 ~~~~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1331ms 25.723 MiB
#2 Accepted 12ms 8.172 MiB
#3 Accepted 5ms 3.191 MiB
#4 Accepted 9ms 3.184 MiB
#5 Accepted 40ms 3.191 MiB
#6 Accepted 21ms 3.172 MiB
#7 Accepted 653ms 25.719 MiB
#8 Accepted 22ms 3.172 MiB
#9 Accepted 111ms 8.18 MiB
#10 Accepted 109ms 8.184 MiB
#11 Accepted 105ms 8.191 MiB
#12 Accepted 101ms 8.188 MiB
#13 Accepted 120ms 8.188 MiB
#14 Accepted 103ms 8.199 MiB
#15 Accepted 132ms 8.195 MiB
#16 Accepted 628ms 25.711 MiB
#17 Accepted 615ms 25.723 MiB
#18 Accepted 563ms 25.719 MiB
#19 Accepted 486ms 25.715 MiB
#20 Accepted 606ms 25.703 MiB

信息

递交者
类型
递交
题目
P1921 严厉的班长
语言
C++
递交时间
2021-08-06 21:51:11
评测时间
2021-08-06 21:51:11
评测机
分数
100
总耗时
5782ms
峰值内存
25.723 MiB