/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'void print(int*)':
/in/foo.cc:16:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (int i = pd; i >= 0; --i) printf("%d",x[i]);putchar(10);
  ^~~
/in/foo.cc:16:50: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for (int i = pd; i >= 0; --i) printf("%d",x[i]);putchar(10);
                                                  ^~~~~~~
/in/foo.cc: In function 'void print1(int)':
/in/foo.cc:20:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (int i = 1; i <= num; ++i) printf("%d",s[i]); putchar(10);
  ^~~
/in/foo.cc:20:52: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for (int i = 1; i <= num; ++i) printf("%d",s[i]); putchar(10);
                                                    ^~~~~~~
/in/foo.cc: In function 'bool check1(int, int, int, int)':
/in/foo.cc:48:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  while (x[d1] == 0) d1--; while (y[d2] == 0) d2--;
  ^~~~~
/in/foo.cc:48:27: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
  while (x[d1] == 0) d1--; while (y[d2] == 0) d2--;
                           ^~~~~
/in/foo.cc: In function 'bool pd0(std::__cxx11::string)':
/in/foo.cc:110:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i =0; i < s1.size(); ++i) if (s1[i] != 48) return 0;
                 ~~^~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:157:6: warning: unused variable 'L' [-Wunused-variable]
  int L = fvck - 1;
      ^
/in/foo.cc: In function 'void solve(int*, int, int)':
/in/foo.cc:96:56: warning: iteration 299 invokes undefined behavior [-Waggressive-loop-optimizations]
  for (int i = 0; i < fvck; ++i) ans[i + 1] += ans[i] / 10, ans[i] %= 10;
                                                        ^~
/in/foo.cc:96:20: note: within this loop
  for (int i = 0; i < fvck; ++i) ans[i + 1] += ans[i] / 10, ans[i] %= 10;
                  ~~^~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 6ms 512.0 KiB
#2 Accepted 5ms 608.0 KiB
#3 Wrong Answer 6ms 608.0 KiB
#4 Accepted 4ms 616.0 KiB
#5 Wrong Answer 6ms 636.0 KiB
#6 Wrong Answer 5ms 608.0 KiB
#7 Wrong Answer 6ms 600.0 KiB
#8 Wrong Answer 4ms 512.0 KiB
#9 Wrong Answer 5ms 512.0 KiB
#10 Wrong Answer 4ms 624.0 KiB
#11 Wrong Answer 10ms 636.0 KiB
#12 Accepted 4ms 592.0 KiB
#13 Wrong Answer 30ms 640.0 KiB
#14 Wrong Answer 3ms 632.0 KiB
#15 Wrong Answer 3ms 608.0 KiB
#16 Accepted 6ms 604.0 KiB
#17 Wrong Answer 4ms 592.0 KiB
#18 Wrong Answer 4ms 628.0 KiB
#19 Wrong Answer 4ms 612.0 KiB
#20 Accepted 3ms 512.0 KiB
#21 Wrong Answer 4ms 636.0 KiB
#22 Wrong Answer 5ms 512.0 KiB
#23 Wrong Answer 4ms 600.0 KiB
#24 Accepted 6ms 596.0 KiB
#25 Wrong Answer 22ms 608.0 KiB
#26 Wrong Answer 15ms 636.0 KiB
#27 Wrong Answer 54ms 612.0 KiB
#28 Wrong Answer 19ms 512.0 KiB
#29 Wrong Answer 96ms 512.0 KiB
#30 Accepted 35ms 512.0 KiB
#31 Wrong Answer 14ms 604.0 KiB
#32 Accepted 12ms 608.0 KiB
#33 Wrong Answer 20ms 624.0 KiB
#34 Wrong Answer 22ms 512.0 KiB
#35 Accepted 10ms 640.0 KiB
#36 Wrong Answer 70ms 512.0 KiB
#37 Wrong Answer 56ms 628.0 KiB
#38 Wrong Answer 18ms 624.0 KiB
#39 Wrong Answer 12ms 640.0 KiB
#40 Wrong Answer 19ms 632.0 KiB

信息

递交者
类型
递交
题目
P1005 超长数字串
语言
C++
递交时间
2018-03-01 14:15:56
评测时间
2018-03-01 14:15:56
评测机
分数
90
总耗时
654ms
峰值内存
640.0 KiB