/ 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:34:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i = 0; i < strlen(mirrornum); ++i){
                ~~^~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 4ms 372.0 KiB
#2 Accepted 3ms 348.0 KiB

信息

递交者
类型
自测
题目
Alphabet(多组测试数据样题)
语言
C++
递交时间
2018-04-22 16:31:52
评测时间
2018-04-22 16:31:52
评测机
分数
20
总耗时
8ms
峰值内存
372.0 KiB