/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:80:24: warning: iteration 4 invokes undefined behavior [-Waggressive-loop-optimizations]
     tmp[j+1] = (tmp[j+1]^i)&((1<<5)-1);
                 ~~~~~~~^
/in/foo.cc:78:21: note: within this loop
    for (int j = 1;j <= 5;i = tmp[j],j++) {
                   ~~^~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 192.0 KiB
#2 Accepted 1ms 200.0 KiB
#3 Accepted 1ms 192.0 KiB
#4 Accepted 3ms 192.0 KiB
#5 Accepted 4ms 192.0 KiB
#6 Accepted 3ms 192.0 KiB
#7 Accepted 4ms 192.0 KiB
#8 Accepted 4ms 192.0 KiB
#9 Accepted 3ms 192.0 KiB
#10 Accepted 3ms 192.0 KiB

信息

递交者
类型
递交
题目
P1197 费解的开关
语言
C++
递交时间
2018-12-15 21:59:07
评测时间
2018-12-15 21:59:07
评测机
分数
100
总耗时
33ms
峰值内存
200.0 KiB