/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int rotate(int, int)':
/in/foo.cc:12:17: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
     d ^= 1 << t - 1;
               ~~^~~
/in/foo.cc:13:31: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
     if(t > 5) d ^= 1 << t - 5 - 1;
                         ~~~~~~^~~
/in/foo.cc:14:33: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
     if(t <= 20) d ^= 1 << t + 5 - 1;
                           ~~~~~~^~~
/in/foo.cc:15:41: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
     if((t - 1) % 5 > 0) d ^= 1 << t - 1 - 1;
                                   ~~~~~~^~~
/in/foo.cc:16:41: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
     if((t - 1) % 5 < 4) d ^= 1 << t + 1 - 1;
                                   ~~~~~~^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:46:62: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
                 if(t[j - 1] - '0') s |= 1 << (i - 1) * 5 + j - 1;
                                              ~~~~~~~~~~~~~~~~^~~
/in/foo.cc: In function 'int BFS()':
/in/foo.cc:35:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
# 状态 耗时 内存占用
#1 Accepted 80ms 121.973 MiB
#2 Accepted 82ms 122.066 MiB
#3 Accepted 76ms 121.918 MiB
#4 Accepted 75ms 122.07 MiB
#5 Accepted 78ms 122.176 MiB
#6 Accepted 80ms 121.449 MiB
#7 Accepted 80ms 122.664 MiB
#8 Accepted 82ms 121.277 MiB
#9 Accepted 74ms 123.199 MiB
#10 Accepted 80ms 121.055 MiB

信息

递交者
类型
递交
题目
P1197 费解的开关
语言
C++
递交时间
2019-11-17 23:44:37
评测时间
2019-11-17 23:44:37
评测机
分数
100
总耗时
792ms
峰值内存
123.199 MiB