记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:6:18: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
    6 |     for(int i=1;i<=n;i++)
      |                 ~^~~
foo.cc:15:29: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
   15 |                         if(a==x||(a>x&&a>0)){
      |                            ~^~~
foo.cc:15:36: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
   15 |                         if(a==x||(a>x&&a>0)){
      |                                   ~^~
foo.cc:5:20: warning: unused variable 'cnt' [-Wunused-variable]
    5 |     unsigned int a,cnt=0,n;cin>>n;
      |                    ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB
#2 Accepted 1ms 256.0 KiB
#3 Wrong Answer Read NO, expect YES. 1ms 256.0 KiB
#4 Accepted 2ms 256.0 KiB
#5 Wrong Answer Read NO, expect YES. 3ms 256.0 KiB
#6 Wrong Answer Read NO, expect YES. 4ms 256.0 KiB
#7 Wrong Answer Read NO, expect YES. 2ms 256.0 KiB
#8 Wrong Answer Read NO, expect YES. 4ms 256.0 KiB
#9 Wrong Answer Read NO, expect YES. 3ms 256.0 KiB
#10 Wrong Answer Read NO, expect YES. 3ms 256.0 KiB
#11 Wrong Answer Read YES, expect YES. 111ms 376.0 KiB
#12 Wrong Answer Read YES, expect YES. 101ms 384.0 KiB
#13 Wrong Answer Read YES, expect YES. 77ms 376.0 KiB
#14 Wrong Answer Read YES, expect YES. 46ms 384.0 KiB
#15 Wrong Answer Read YES, expect YES. 128ms 376.0 KiB
#16 Wrong Answer Read YES, expect YES. 1188ms 1.492 MiB
#17 Wrong Answer Read YES, expect YES. 339ms 660.0 KiB
#18 Wrong Answer Read YES, expect YES. 480ms 888.0 KiB
#19 Wrong Answer Read YES, expect YES. 322ms 764.0 KiB
#20 Wrong Answer Read YES, expect YES. 1155ms 1.742 MiB

信息

递交者
类型
递交
题目
P1229 A 阅读程序
比赛
2022暑期青少年社团(告别赛)
语言
C++
递交时间
2022-08-21 22:10:58
评测时间
2022-08-21 22:10:58
评测机
分数
15
总耗时
3981ms
峰值内存
1.742 MiB