/ new_bzoj /

记录详情

Wrong Answer

/in/foo.cc: In function 'char get()':
/in/foo.cc:12:13: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
     char c; while (((c = getchar()) < 'A' || c > 'E') && c != '@'
             ^~~~~
/in/foo.cc:13:47: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
         && c != '$' && c != '.' && c != '#'); return c;
                                               ^~~~~~
/in/foo.cc: In function 'double chkmax(double&, double)':
/in/foo.cc:19:51: warning: no return statement in function returning non-void [-Wreturn-type]
 double chkmax(double &a, double b) {a = max(a, b);}
                                                   ^
/in/foo.cc: In function 'void init()':
/in/foo.cc:33:36: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
                 if (xx != ((i >> j - 1) & 1)) {flag = 0; break;}
                                  ~~^~~
/in/foo.cc:35:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
             if (!flag) continue; s1 += pb[i];
             ^~
/in/foo.cc:35:34: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
             if (!flag) continue; s1 += pb[i];
                                  ^~
/in/foo.cc:37:49: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
                 if (cyx(S, j) != 2 || !((i >> j - 1) & 1)) continue;
                                               ~~^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:68:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
         if ((s[i][j] = get()) == '$') Sx = i, Sy = j; pw[0] = 1;
         ^~
/in/foo.cc:68:55: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
         if ((s[i][j] = get()) == '$') Sx = i, Sy = j; pw[0] = 1;
                                                       ^~
/in/foo.cc:67:30: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for (i = 1; i <= m; i++) for (j = 1; j <= n; j++)
                              ^~~
/in/foo.cc:68:55: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
         if ((s[i][j] = get()) == '$') Sx = i, Sy = j; pw[0] = 1;
                                                       ^~
/in/foo.cc:70:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for (i = 1; i <= K; i++) pw[i] = pw[i - 1] * 3; init();
     ^~~
/in/foo.cc:70:53: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
     for (i = 1; i <= K; i++) pw[i] = pw[i - 1] * 3; init();
                                                     ^~~~
/in/foo.cc:71:11: warning: 'Sy' may be used uninitialized in this function [-Wmaybe-uninitialized]
     printf("%.3lf\n", DP(Sx, Sy, pw[K] - 1, H));
     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:71:11: warning: 'Sx' may be used uninitialized in this function [-Wmaybe-uninitialized]
# 状态 耗时 内存占用
#1 Accepted 9ms 24.668 MiB
#2 Accepted 18ms 21.672 MiB
#3 Wrong Answer 32ms 26.512 MiB
#4 Accepted 9ms 24.316 MiB
#5 Accepted 2ms 4.316 MiB
#6 Accepted 7ms 21.438 MiB
#7 Accepted 7ms 22.441 MiB
#8 Accepted 2ms 4.32 MiB
#9 Accepted 6ms 12.637 MiB
#10 Accepted 8ms 16.863 MiB

信息

递交者
类型
递交
题目
迷宫探险
语言
C++
递交时间
2019-10-16 13:44:02
评测时间
2019-10-16 13:44:02
评测机
分数
90
总耗时
104ms
峰值内存
26.512 MiB