/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'int abc()':
/in/foo.cc:6:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (c[i]%8==0) return 0;if (c[i]%4==0) {c[i]*=2;return 0;}if (c[i]%2==0) {c[i]*=4;return 0;}c[i]*=8;return 0;
     ^~
/in/foo.cc:6:29: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if (c[i]%8==0) return 0;if (c[i]%4==0) {c[i]*=2;return 0;}if (c[i]%2==0) {c[i]*=4;return 0;}c[i]*=8;return 0;
                             ^~
/in/foo.cc: In function 'int cal(int)':
/in/foo.cc:11:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for (j=1;j<=s;j++) for (k=1;k<=b[j];k++) kk*=d[j];if (kk>y) return 0;if (jj%2) v-=y/kk;else v+=y/kk;if (kk+1>x) return 0;if (jj%2) u-=(x-1)/kk;else u+=(x-1)/kk;
     ^~~
/in/foo.cc:11:55: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
     for (j=1;j<=s;j++) for (k=1;k<=b[j];k++) kk*=d[j];if (kk>y) return 0;if (jj%2) v-=y/kk;else v+=y/kk;if (kk+1>x) return 0;if (jj%2) u-=(x-1)/kk;else u+=(x-1)/kk;
                                                       ^~
# 状态 耗时 内存占用
#1 Accepted 2ms 348.0 KiB
#2 Accepted 2ms 356.0 KiB
#3 Accepted 2ms 348.0 KiB
#4 Wrong Answer 16ms 576.0 KiB
#5 Wrong Answer 2ms 472.0 KiB
#6 Wrong Answer 5ms 472.0 KiB
#7 Wrong Answer 3ms 476.0 KiB
#8 Wrong Answer 9ms 564.0 KiB
#9 Wrong Answer 50ms 600.0 KiB
#10 Wrong Answer 52ms 600.0 KiB

信息

递交者
类型
递交
题目
P1629 八
语言
C++
递交时间
2020-06-14 03:38:54
评测时间
2020-06-14 03:38:54
评测机
分数
30
总耗时
147ms
峰值内存
600.0 KiB