记录详情

Accepted

foo.cc: In function 'void init()':
foo.cc:33:20: warning: array subscript has type 'char' [-Wchar-subscripts]
   33 |         if(!vis[a[i]]) d[k++]=a[i],vis[a[i]]=1;
      |                 ~~~^
foo.cc:33:43: warning: array subscript has type 'char' [-Wchar-subscripts]
   33 |         if(!vis[a[i]]) d[k++]=a[i],vis[a[i]]=1;
      |                                        ~~~^
foo.cc:34:20: warning: array subscript has type 'char' [-Wchar-subscripts]
   34 |         if(!vis[b[i]]) d[k++]=b[i],vis[b[i]]=1;
      |                 ~~~^
foo.cc:34:43: warning: array subscript has type 'char' [-Wchar-subscripts]
   34 |         if(!vis[b[i]]) d[k++]=b[i],vis[b[i]]=1;
      |                                        ~~~^
foo.cc:35:20: warning: array subscript has type 'char' [-Wchar-subscripts]
   35 |         if(!vis[c[i]]) d[k++]=c[i],vis[c[i]]=1;
      |                 ~~~^
foo.cc:35:43: warning: array subscript has type 'char' [-Wchar-subscripts]
   35 |         if(!vis[c[i]]) d[k++]=c[i],vis[c[i]]=1;
      |                                        ~~~^
foo.cc: In function 'bool check()':
foo.cc:41:17: warning: array subscript has type 'char' [-Wchar-subscripts]
   41 |         if(f[a[i]]==-1||f[b[i]]==-1||f[c[i]]==-1) p=-1;
      |              ~~~^
foo.cc:41:30: warning: array subscript has type 'char' [-Wchar-subscripts]
   41 |         if(f[a[i]]==-1||f[b[i]]==-1||f[c[i]]==-1) p=-1;
      |                           ~~~^
foo.cc:41:43: warning: array subscript has type 'char' [-Wchar-subscripts]
   41 |         if(f[a[i]]==-1||f[b[i]]==-1||f[c[i]]==-1) p=-1;
      |                                        ~~~^
foo.cc:44:26: warning: array subscript has type 'char' [-Wchar-subscripts]
   44 |                 if((f[a[i]]+f[b[i]])%n==f[c[i]]) { //这一位无进位
      |                       ~~~^
foo.cc:44:34: warning: array subscript has type 'char' [-Wchar-subscripts]
   44 |                 if((f[a[i]]+f[b[i]])%n==f[c[i]]) { //这一位无进位
      |                               ~~~^
foo.cc:44:46: warning: array subscript has type 'char' [-Wchar-subscripts]
   44 |                 if((f[a[i]]+f[b[i]])%n==f[c[i]]) { //这一位无进位
      |                                           ~~~^
foo.cc:45:29: warning: array subscript has type 'char' [-Wchar-subscripts]
   45 |                     p=(f[a[i]]+f[b[i]])/n;
      |                          ~~~^
foo.cc:45:37: warning: array subscript has type 'char' [-Wchar-subscripts]
   45 |                     p=(f[a[i]]+f[b[i]])/n;
      |                                  ~~~^
foo.cc:46:33: warning: array subscript has type 'char' [-Wchar-subscripts]
   46 |                 } else if((f[a[i]]+f[b[i]]+1)%n==f[c[i]]) { //这一位有进位
      |                              ~~~^
foo.cc:46:41: warning: array subscript has type 'char' [-Wchar-subscripts]
   46 |                 } else if((f[a[i]]+f[b[i]]+1)%n==f[c[i]]) { //这一位有进位
      |                                      ~~~^
foo.cc:46:55: warning: array subscript has type 'char' [-Wchar-subscripts]
   46 |                 } else if((f[a[i]]+f[b[i]]+1)%n==f[c[i]]) { //这一位有进位
      |                                                    ~~~^
foo.cc:47:29: warning: array subscript has type 'char' [-Wchar-subscripts]
   47 |                     p=(f[a[i]]+f[b[i]]+1)/n;
      |                          ~~~^
foo.cc:47:37: warning: array subscript has type 'char' [-Wchar-subscripts]
   47 |                     p=(f[a[i]]+f[b[i]]+1)/n;
      |                                  ~~~^
foo.cc:50:26: warning: array subscript has type 'char' [-Wchar-subscripts]
   50 |                 if((f[a[i]]+f[b[i]]+p)%n==f[c[i]]) {
      |                       ~~~^
foo.cc:50:34: warning: array subscript has type 'char' [-Wchar-subscripts]
   50 |                 if((f[a[i]]+f[b[i]]+p)%n==f[c[i]]) {
      |                               ~~~^
foo.cc:50:48: warning: array subscript has type 'char' [-Wchar-subscripts]
   50 |                 if((f[a[i]]+f[b[i]]+p)%n==f[c[i]]) {
      |                                             ~~~^
foo.cc:51:29: warning: array subscript has type 'char' [-Wchar-subscripts]
   51 |                     p=(f[a[i]]+f[b[i]]+p)/n;
      |                          ~~~^
foo.cc:51:37: warning: array subscript has type 'char' [-Wchar-subscripts]
   51 |                     p=(f[a[i]]+f[b[i]]+p)/n;
      |                                  ~~~^
foo.cc: In function 'int main()':
foo.cc:76:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   76 |     scanf("%d%s%s%s",&n,a+1,b+1,c+1);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 512.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 2ms 256.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 2ms 384.0 KiB
#7 Accepted 4ms 384.0 KiB
#8 Accepted 4ms 512.0 KiB
#9 Accepted 18ms 384.0 KiB
#10 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1129 虫食算
语言
C++
递交时间
2022-07-27 16:47:37
评测时间
2022-07-27 16:47:37
评测机
分数
100
总耗时
43ms
峰值内存
512.0 KiB