/ XMU_ACM /

记录详情

Accepted

/in/foo.c: In function 'main':
/in/foo.c:17:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
             if (str[i]=='d' && str[n-i-1]=='b' || str[i]=='p' && str[n-i-1]=='q' || str[i]=='b' && str[n-i-1]=='d' || str[i]=='q' && str[n-i-1]=='p') continue;
                 ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/in/foo.c:17:97: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
             if (str[i]=='d' && str[n-i-1]=='b' || str[i]=='p' && str[n-i-1]=='q' || str[i]=='b' && str[n-i-1]=='d' || str[i]=='q' && str[n-i-1]=='p') continue;
                                                                                     ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/in/foo.c:17:131: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
             if (str[i]=='d' && str[n-i-1]=='b' || str[i]=='p' && str[n-i-1]=='q' || str[i]=='b' && str[n-i-1]=='d' || str[i]=='q' && str[n-i-1]=='p') continue;
                                                                                                                       ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 256.0 KiB
#2 Accepted 2ms 256.0 KiB

信息

递交者
类型
递交
题目
Alphabet(多组测试数据样题)
比赛
2018XMU程序设计竞赛网络预赛第一场
语言
C
递交时间
2018-04-22 16:28:06
评测时间
2018-04-22 16:28:06
评测机
分数
100
总耗时
4ms
峰值内存
256.0 KiB