/ Vijos /

记录详情

Accepted

foo.cc: In function 'bool check(int)':
foo.cc:10:14: warning: array subscript has type 'char' [-Wchar-subscripts]
   10 |   if(p[a[1][i]]&&p[a[2][i]]&&p[a[3][i]]&&
      |        ~~~~~~^
foo.cc:10:26: warning: array subscript has type 'char' [-Wchar-subscripts]
   10 |   if(p[a[1][i]]&&p[a[2][i]]&&p[a[3][i]]&&
      |                    ~~~~~~^
foo.cc:10:38: warning: array subscript has type 'char' [-Wchar-subscripts]
   10 |   if(p[a[1][i]]&&p[a[2][i]]&&p[a[3][i]]&&
      |                                ~~~~~~^
foo.cc:11:13: warning: array subscript has type 'char' [-Wchar-subscripts]
   11 |   ((c[a[1][i]]+c[a[2][i]])%n!=c[a[3][i]])&&
      |       ~~~~~~^
foo.cc:11:24: warning: array subscript has type 'char' [-Wchar-subscripts]
   11 |   ((c[a[1][i]]+c[a[2][i]])%n!=c[a[3][i]])&&
      |                  ~~~~~~^
foo.cc:11:39: warning: array subscript has type 'char' [-Wchar-subscripts]
   11 |   ((c[a[1][i]]+c[a[2][i]])%n!=c[a[3][i]])&&
      |                                 ~~~~~~^
foo.cc:12:13: warning: array subscript has type 'char' [-Wchar-subscripts]
   12 |   ((c[a[1][i]]+c[a[2][i]]+1)%n!=c[a[3][i]]))return 1;
      |       ~~~~~~^
foo.cc:12:24: warning: array subscript has type 'char' [-Wchar-subscripts]
   12 |   ((c[a[1][i]]+c[a[2][i]]+1)%n!=c[a[3][i]]))return 1;
      |                  ~~~~~~^
foo.cc:12:41: warning: array subscript has type 'char' [-Wchar-subscripts]
   12 |   ((c[a[1][i]]+c[a[2][i]]+1)%n!=c[a[3][i]]))return 1;
      |                                   ~~~~~~^
foo.cc: In function 'void ser(int, int)':
foo.cc:27:17: warning: array subscript has type 'char' [-Wchar-subscripts]
   27 |   int k=c[a[1][y]]+c[a[2][y]]+jin[y];
      |           ~~~~~~^
foo.cc:27:28: warning: array subscript has type 'char' [-Wchar-subscripts]
   27 |   int k=c[a[1][y]]+c[a[2][y]]+jin[y];
      |                      ~~~~~~^
foo.cc:33:15: warning: array subscript has type 'char' [-Wchar-subscripts]
   33 |   if(!p[a[x][y]]&&!vis[k])
      |         ~~~~~~^
foo.cc:36:12: warning: array subscript has type 'char' [-Wchar-subscripts]
   36 |    c[a[x][y]]=k;
      |      ~~~~~~^
foo.cc:37:12: warning: array subscript has type 'char' [-Wchar-subscripts]
   37 |    p[a[x][y]]=1;
      |      ~~~~~~^
foo.cc:40:12: warning: array subscript has type 'char' [-Wchar-subscripts]
   40 |    c[a[x][y]]=0;
      |      ~~~~~~^
foo.cc:41:12: warning: array subscript has type 'char' [-Wchar-subscripts]
   41 |    p[a[x][y]]=0;
      |      ~~~~~~^
foo.cc:45:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   45 |   else if(p[a[x][y]]&&vis[k]&&c[a[x][y]]==k)
      |             ~~~~~~^
foo.cc:45:39: warning: array subscript has type 'char' [-Wchar-subscripts]
   45 |   else if(p[a[x][y]]&&vis[k]&&c[a[x][y]]==k)
      |                                 ~~~~~~^
foo.cc:56:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   56 |  else if(!p[a[x][y]])
      |             ~~~~~~^
foo.cc:63:13: warning: array subscript has type 'char' [-Wchar-subscripts]
   63 |     c[a[x][y]]=i;
      |       ~~~~~~^
foo.cc:64:13: warning: array subscript has type 'char' [-Wchar-subscripts]
   64 |     p[a[x][y]]=1;
      |       ~~~~~~^
foo.cc:67:13: warning: array subscript has type 'char' [-Wchar-subscripts]
   67 |     c[a[x][y]]=0;
      |       ~~~~~~^
foo.cc:68:13: warning: array subscript has type 'char' [-Wchar-subscripts]
   68 |     p[a[x][y]]=0;
      |       ~~~~~~^
foo.cc: In function 'int main()':
foo.cc:77:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   77 |  scanf("%d ",&n);
      |  ~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 5ms 384.0 KiB
#2 Accepted 4ms 384.0 KiB
#3 Accepted 2ms 512.0 KiB
#4 Accepted 3ms 384.0 KiB
#5 Accepted 3ms 384.0 KiB
#6 Accepted 5ms 512.0 KiB
#7 Accepted 20ms 384.0 KiB
#8 Accepted 64ms 384.0 KiB
#9 Accepted 216ms 384.0 KiB
#10 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1099 虫食算
语言
C++
递交时间
2022-02-10 18:34:28
评测时间
2022-02-10 18:34:28
评测机
分数
100
总耗时
328ms
峰值内存
512.0 KiB