/ 晓编程 /

记录详情

Accepted

foo.cc: In function 'bool isrunnian(int)':
foo.cc:5:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     return(a%4==0&&a%100!=0||a%400==0);
                  ^
foo.cc: In function 'bool islastday(int, int, int)':
foo.cc:9:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         return(b==1&&c==31||b==2&&c==29||b==3&&c==31||b==4&&c==30||b==5&&c==31||b==6&&c==30||b==7&&c==31||b==8&&c==31||b==9&&c==30||b==10&&c==31||b==11&&c==30||b==12&&c==31);
                    ^
foo.cc:9:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         return(b==1&&c==31||b==2&&c==29||b==3&&c==31||b==4&&c==30||b==5&&c==31||b==6&&c==30||b==7&&c==31||b==8&&c==31||b==9&&c==30||b==10&&c==31||b==11&&c==30||b==12&&c==31);
                                              ^
foo.cc:9:59: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         return(b==1&&c==31||b==2&&c==29||b==3&&c==31||b==4&&c==30||b==5&&c==31||b==6&&c==30||b==7&&c==31||b==8&&c==31||b==9&&c==30||b==10&&c==31||b==11&&c==30||b==12&&c==31);
                                                           ^
foo.cc:9:72: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         return(b==1&&c==31||b==2&&c==29||b==3&&c==31||b==4&&c==30||b==5&&c==31||b==6&&c==30||b==7&&c==31||b==8&&c==31||b==9&&c==30||b==10&&c==31||b==11&&c==30||b==12&&c==31);
                                                                        ^
foo.cc:9:85: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         return(b==1&&c==31||b==2&&c==29||b==3&&c==31||b==4&&c==30||b==5&&c==31||b==6&&c==30||b==7&&c==31||b==8&&c==31||b==9&&c==30||b==10&&c==31||b==11&&c==30||b==12&&c==31);
                                                                                     ^
foo.cc:9:98: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         return(b==1&&c==31||b==2&&c==29||b==3&&c==31||b==4&&c==30||b==5&&c==31||b==6&&c==30||b==7&&c==31||b==8&&c==31||b==9&&c==30||b==10&&c==31||b==11&&c==30||b==12&&c==31);
                                                                                                  ^
foo.cc:9:111: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         return(b==1&&c==31||b==2&&c==29||b==3&&c==31||b==4&&c==30||b==5&&c==31||b==6&&c==30||b==7&&c==31||b==8&&c==31||b==9&&c==30||b==10&&c==31||b==11&&c==30||b==12&&c==31);
                                                                                                               ^
foo.cc:9:124: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         return(b==1&&c==31||b==2&&c==29||b==3&&c==31||b==4&&c==30||b==5&&c==31||b==6&&c==30||b==7&&c==31||b==8&&c==31||b==9&&c==30||b==10&&c==31||b==11&&c==30||b==12&&c==31);
                                                                                                                            ^
foo.cc:9:138: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         return(b==1&&c==31||b==2&&c==29||b==3&&c==31||b==4&&c==30||b==5&&c==31||b==6&&c==30||b==7&&c==31||b==8&&c==31||b==9&&c==30||b==10&&c==31||b==11&&c==30||b==12&&c==31);
                                                                                                                                          ^
foo.cc:9:152: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         return(b==1&&c==31||b==2&&c==29||b==3&&c==31||b==4&&c==30||b==5&&c==31||b==6&&c==30||b==7&&c==31||b==8&&c==31||b==9&&c==30||b==10&&c==31||b==11&&c==30||b==12&&c==31);
                                                                                                                                                        ^
foo.cc:9:166: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         return(b==1&&c==31||b==2&&c==29||b==3&&c==31||b==4&&c==30||b==5&&c==31||b==6&&c==30||b==7&&c==31||b==8&&c==31||b==9&&c==30||b==10&&c==31||b==11&&c==30||b==12&&c==31);
                                                                                                                                                                      ^
foo.cc:11:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
          return(b==1&&c==31||b==2&&c==28||b==3&&c==31||b==4&&c==30||b==5&&c==31||b==6&&c==30||b==7&&c==31||b==8&&c==31||b==9&&c==30||b==10&&c==31||b==11&&c==30||b==12&&c==31);
                     ^
foo.cc:11:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
          return(b==1&&c==31||b==2&&c==28||b==3&&c==31||b==4&&c==30||b==5&&c==31||b==6&&c==30||b==7&&c==31||b==8&&c==31||b==9&&c==30||b==10&&c==31||b==11&&c==30||b==12&&c==31);
                                               ^
foo.cc:11:60: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
          return(b==1&&c==31||b==2&&c==28||b==3&&c==31||b==4&&c==30||b==5&&c==31||b==6&&c==30||b==7&&c==31||b==8&&c==31||b==9&&c==30||b==10&&c==31||b==11&&c==30||b==12&&c==31);
                                                            ^
foo.cc:11:73: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
          return(b==1&&c==31||b==2&&c==28||b==3&&c==31||b==4&&c==30||b==5&&c==31||b==6&&c==30||b==7&&c==31||b==8&&c==31||b==9&&c==30||b==10&&c==31||b==11&&c==30||b==12&&c==31);
                                                                         ^
foo.cc:11:86: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
          return(b==1&&c==31||b==2&&c==28||b==3&&c==31||b==4&&c==30||b==5&&c==31||b==6&&c==30||b==7&&c==31||b==8&&c==31||b==9&&c==30||b==10&&c==31||b==11&&c==30||b==12&&c==31);
                                                                                      ^
foo.cc:11:99: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
          return(b==1&&c==31||b==2&&c==28||b==3&&c==31||b==4&&c==30||b==5&&c==31||b==6&&c==30||b==7&&c==31||b==8&&c==31||b==9&&c==30||b==10&&c==31||b==11&&c==30||b==12&&c==31);
                                                                                                   ^
foo.cc:11:112: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
          return(b==1&&c==31||b==2&&c==28||b==3&&c==31||b==4&&c==30||b==5&&c==31||b==6&&c==30||b==7&&c==31||b==8&&c==31||b==9&&c==30||b==10&&c==31||b==11&&c==30||b==12&&c==31);
                                                                                                                ^
foo.cc:11:125: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
          return(b==1&&c==31||b==2&&c==28||b==3&&c==31||b==4&&c==30||b==5&&c==31||b==6&&c==30||b==7&&c==31||b==8&&c==31||b==9&&c==30||b==10&&c==31||b==11&&c==30||b==12&&c==31);
                                                                                                                             ^
foo.cc:11:139: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
          return(b==1&&c==31||b==2&&c==28||b==3&&c==31||b==4&&c==30||b==5&&c==31||b==6&&c==30||b==7&&c==31||b==8&&c==31||b==9&&c==30||b==10&&c==31||b==11&&c==30||b==12&&c==31);
                                                                                                                                           ^
foo.cc:11:153: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
          return(b==1&&c==31||b==2&&c==28||b==3&&c==31||b==4&&c==30||b==5&&c==31||b==6&&c==30||b==7&&c==31||b==8&&c==31||b==9&&c==30||b==10&&c==31||b==11&&c==30||b==12&&c==31);
                                                                                                                                                         ^
foo.cc:11:167: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
          return(b==1&&c==31||b==2&&c==28||b==3&&c==31||b==4&&c==30||b==5&&c==31||b==6&&c==30||b==7&&c==31||b==8&&c==31||b==9&&c==30||b==10&&c==31||b==11&&c==30||b==12&&c==31);
                                                                                                                                                                       ^

自豪的采用 HydroJudger 进行评测(github.com/hydro-dev/HydroJudger)
{"receive":"2020-04-02T06:44:26.998Z","handle":"2020-04-02T06:44:26.998Z","cache_start":"2020-04-02T06:44:27.006Z","read_cases":"2020-04-02T06:44:27.185Z","judge":"2020-04-02T06:44:27.188Z","done":"2020-04-02T06:44:27.723Z"}
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB
#2 Accepted 1ms 256.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 1ms 256.0 KiB
#5 Accepted 1ms 256.0 KiB
#6 Accepted 1ms 256.0 KiB
#7 Accepted 1ms 256.0 KiB
#8 Accepted 1ms 256.0 KiB
#9 Accepted 1ms 256.0 KiB
#10 Accepted 1ms 256.0 KiB
#11 Accepted 1ms 256.0 KiB
#12 Accepted 1ms 256.0 KiB
#13 Accepted 1ms 256.0 KiB
#14 Accepted 1ms 256.0 KiB
#15 Accepted 1ms 256.0 KiB
#16 Accepted 1ms 256.0 KiB
#17 Accepted 1ms 256.0 KiB
#18 Accepted 1ms 256.0 KiB
#19 Accepted 1ms 256.0 KiB
#20 Accepted 1ms 256.0 KiB

信息

递交者
类型
递交
题目
P1050 玩吃鸡的日子
语言
C++
递交时间
2020-04-02 14:44:26
评测时间
2020-04-02 14:44:26
评测机
分数
100
总耗时
29ms
峰值内存
256.0 KiB