/ XMU_ACM /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:16:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(a = 0; a < strlen(s1)/2; a++){
                    ~~^~~~~~~~~~~~~~
/in/foo.cc:17:66: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
             if(!((isMirror(s1[a])&&s1[a]==s1[b-a-1])||(s1[a]=='d'&&s1[b-a-1]=='b'||s1[a]=='b'&&s1[b-a-1]=='d'||s1[a]=='p'&&s1[b-a-1]=='q'||s1[a]=='q'&&s1[b-a-1]=='p'))){
                                                        ~~~~~~~~~~^~~~~~~~~~~~~~~~
/in/foo.cc:17:122: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
             if(!((isMirror(s1[a])&&s1[a]==s1[b-a-1])||(s1[a]=='d'&&s1[b-a-1]=='b'||s1[a]=='b'&&s1[b-a-1]=='d'||s1[a]=='p'&&s1[b-a-1]=='q'||s1[a]=='q'&&s1[b-a-1]=='p'))){
                                                                                                                ~~~~~~~~~~^~~~~~~~~~~~~~~~
/in/foo.cc:17:150: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
             if(!((isMirror(s1[a])&&s1[a]==s1[b-a-1])||(s1[a]=='d'&&s1[b-a-1]=='b'||s1[a]=='b'&&s1[b-a-1]=='d'||s1[a]=='p'&&s1[b-a-1]=='q'||s1[a]=='q'&&s1[b-a-1]=='p'))){
                                                                                                                                            ~~~~~~~~~~^~~~~~~~~~~~~~~~
/in/foo.cc: In function 'bool isMirror(char)':
/in/foo.cc:35:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i = 0; i < strlen(mirrornum); ++i){
                ~~^~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 344.0 KiB
#2 Accepted 3ms 352.0 KiB

信息

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