/ Vijos /

记录详情

Accepted

foo.cc: In function 'void dfs(int, int, int)':
foo.cc:37:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   37 |     else c[b[a[3][x]]]=0,b[a[3][x]]=-1;return;}
      |     ^~~~
foo.cc:37:40: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
   37 |     else c[b[a[3][x]]]=0,b[a[3][x]]=-1;return;}
      |                                        ^~~~~~
foo.cc: In function 'int main()':
foo.cc:57:12: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
   57 |  if(a[1][n]==a[2][n]==a[3][n])b[a[1][n]]=0,c[0]=1;
      |     ~~~~~~~^~~~~~~~~
foo.cc:53:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   53 |  scanf("%d",&n);for(ri i=0;i<3;i++){
      |  ~~~~~^~~~~~~~~
foo.cc:54:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   54 |   scanf("\n%s",s[i]);for(ri j=0;j<n;j++){
      |   ~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 256.0 KiB
#2 Accepted 3ms 384.0 KiB
#3 Accepted 3ms 256.0 KiB
#4 Accepted 3ms 384.0 KiB
#5 Accepted 3ms 384.0 KiB
#6 Accepted 11ms 384.0 KiB
#7 Accepted 29ms 384.0 KiB
#8 Accepted 119ms 256.0 KiB
#9 Accepted 157ms 256.0 KiB
#10 Accepted 2ms 256.0 KiB

信息

递交者
类型
递交
题目
P1099 虫食算
语言
C++
递交时间
2022-02-04 18:47:13
评测时间
2022-02-04 18:47:13
评测机
分数
100
总耗时
337ms
峰值内存
384.0 KiB