记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:15:32: warning: left-hand operand of comma expression has no effect [-Wunused-value]
   15 |         {for(j=0,k=i;j<=(i-1)/2,k>=(i-1)/2+1;j++,k--)
      |                                ^
foo.c:21:30: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   21 |                           if(sum2=sum/2) printf("Yes");
      |                              ^~~~
foo.c:24:33: warning: left-hand operand of comma expression has no effect [-Wunused-value]
   24 |            {for(j=0,k=i;j<=(i)/2,k>=(i)/2+1;j++,k--)
      |                                 ^
foo.c:30:30: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   30 |                           if(sum2=(sum-1)/2) printf("Yes");
      |                              ^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read Yes, expect No. 1ms 256.0 KiB
#2 Accepted 1ms 256.0 KiB
#3 Wrong Answer Read No, expect Yes. 2ms 256.0 KiB
#4 Accepted 2ms 256.0 KiB
#5 Accepted 2ms 256.0 KiB

信息

递交者
类型
递交
题目
A4-3 回文数专题:回文数判断
比赛
2022年迎新赛(第三场)
语言
C
递交时间
2022-09-16 19:50:24
评测时间
2022-09-16 19:50:24
评测机
分数
60
总耗时
11ms
峰值内存
256.0 KiB