/ Vijos /

记录详情

Time Exceeded

foo.cc: In function 'void dfs(int, int)':
foo.cc:27:16: warning: array subscript has type 'char' [-Wchar-subscripts]
   27 |     cout<<mapp[c]<<" ";
      |                ^
foo.cc:30:15: warning: array subscript has type 'char' [-Wchar-subscripts]
   30 |    cout<<mapp[c];
      |               ^
foo.cc:35:17: warning: array subscript has type 'char' [-Wchar-subscripts]
   35 |  if(mapp[s1[pos]]==-1)
      |                 ^
foo.cc:41:16: warning: array subscript has type 'char' [-Wchar-subscripts]
   41 |    mapp[s1[pos]]=i;
      |                ^
foo.cc:42:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   42 |    if(mapp[s2[pos]]==-1)
      |                   ^
foo.cc:48:18: warning: array subscript has type 'char' [-Wchar-subscripts]
   48 |      mapp[s2[pos]]=j;
      |                  ^
foo.cc:49:21: warning: array subscript has type 'char' [-Wchar-subscripts]
   49 |      if(mapp[s3[pos]]!=-1)
      |                     ^
foo.cc:51:27: warning: array subscript has type 'char' [-Wchar-subscripts]
   51 |       int num=mapp[s1[pos]]+mapp[s2[pos]];
      |                           ^
foo.cc:51:41: warning: array subscript has type 'char' [-Wchar-subscripts]
   51 |       int num=mapp[s1[pos]]+mapp[s2[pos]];
      |                                         ^
foo.cc:53:30: warning: array subscript has type 'char' [-Wchar-subscripts]
   53 |       if(num>=0&&mapp[s3[pos]]==num)
      |                              ^
foo.cc:55:32: warning: array subscript has type 'char' [-Wchar-subscripts]
   55 |       if(num+1>=0&&mapp[s3[pos]]==num+1)
      |                                ^
foo.cc:60:27: warning: array subscript has type 'char' [-Wchar-subscripts]
   60 |       int num=mapp[s1[pos]]+mapp[s2[pos]];
      |                           ^
foo.cc:60:41: warning: array subscript has type 'char' [-Wchar-subscripts]
   60 |       int num=mapp[s1[pos]]+mapp[s2[pos]];
      |                                         ^
foo.cc:67:21: warning: array subscript has type 'char' [-Wchar-subscripts]
   67 |         mapp[s3[pos]]=num;
      |                     ^
foo.cc:70:21: warning: array subscript has type 'char' [-Wchar-subscripts]
   70 |         mapp[s3[pos]]=-1;
      |                     ^
foo.cc:78:21: warning: array subscript has type 'char' [-Wchar-subscripts]
   78 |         mapp[s3[pos]]=num+1;
      |                     ^
foo.cc:81:21: warning: array subscript has type 'char' [-Wchar-subscripts]
   81 |         mapp[s3[pos]]=-1;
      |                     ^
foo.cc:86:18: warning: array subscript has type 'char' [-Wchar-subscripts]
   86 |      mapp[s2[pos]]=-1;
      |                  ^
foo.cc:91:20: warning: array subscript has type 'char' [-Wchar-subscripts]
   91 |     if(mapp[s3[pos]]!=-1)
      |                    ^
foo.cc:93:27: warning: array subscript has type 'char' [-Wchar-subscripts]
   93 |       int num=mapp[s1[pos]]+mapp[s2[pos]];
      |                           ^
foo.cc:93:41: warning: array subscript has type 'char' [-Wchar-subscripts]
   93 |       int num=mapp[s1[pos]]+mapp[s2[pos]];
      |                                         ^
foo.cc:95:30: warning: array subscript has type 'char' [-Wchar-subscripts]
   95 |       if(num>=0&&mapp[s3[pos]]==num)
      |                              ^
foo.cc:97:32: warning: array subscript has type 'char' [-Wchar-subscripts]
   97 |       if(num+1>=0&&mapp[s3[pos]]==num+1)
      |                                ^
foo.cc:102:27: warning: array subscript has type 'char' [-Wchar-subscripts]
  102 |       int num=mapp[s1[pos]]+mapp[s2[pos]];
      |                           ^
foo.cc:102:41: warning: array subscript has type 'char' [-Wchar-subscripts]
  102 |       int num=mapp[s1[pos]]+mapp[s2[pos]];
      |                                         ^
foo.cc:109:21: warning: array subscript has type 'char' [-Wchar-subscripts]
  109 |         mapp[s3[pos]]=num;
      |                     ^
foo.cc:112:21: warning: array subscript has type 'char' [-Wchar-subscripts]
  112 |         mapp[s3[pos]]=-1;
      |                     ^
foo.cc:120:21: warning: array subscript has type 'char' [-Wchar-subscripts]
  120 |         mapp[s3[pos]]=num+1;
      |                     ^
foo.cc:123:21: warning: array subscript has type 'char' [-Wchar-subscripts]
  123 |         mapp[s3[pos]]=-1;
      |                     ^
foo.cc:129:16: warning: array subscript has type 'char' [-Wchar-subscripts]
  129 |    mapp[s1[pos]]=-1;
      |                ^
foo.cc:134:18: warning: array subscript has type 'char' [-Wchar-subscripts]
  134 |   if(mapp[s2[pos]]==-1)
      |                  ^
foo.cc:140:17: warning: array subscript has type 'char' [-Wchar-subscripts]
  140 |     mapp[s2[pos]]=j;
      |                 ^
foo.cc:141:20: warning: array subscript has type 'char' [-Wchar-subscripts]
  141 |     if(mapp[s3[pos]]!=-1)
      |                    ^
foo.cc:143:27: warning: array subscript has type 'char' [-Wchar-subscripts]
  143 |       int num=mapp[s1[pos]]+mapp[s2[pos]];
      |                           ^
foo.cc:143:41: warning: array subscript has type 'char' [-Wchar-subscripts]
  143 |       int num=mapp[s1[pos]]+mapp[s2[pos]];
      |                                         ^
foo.cc:145:30: warning: array subscript has type 'char' [-Wchar-subscripts]
  145 |       if(num>=0&&mapp[s3[pos]]==num)
      |                              ^
foo.cc:147:32: warning: array subscript has type 'char' [-Wchar-subscripts]
  147 |       if(num+1>=0&&mapp[s3[pos]]==num+1)
      |                                ^
foo.cc:152:27: warning: array subscript has type 'char' [-Wchar-subscripts]
  152 |       int num=mapp[s1[pos]]+mapp[s2[pos]];
      |                           ^
foo.cc:152:41: warning: array subscript has type 'char' [-Wchar-subscripts]
  152 |       int num=mapp[s1[pos]]+mapp[s2[pos]];
      |                                         ^
foo.cc:159:21: warning: array subscript has type 'char' [-Wchar-subscripts]
  159 |         mapp[s3[pos]]=num;
      |                     ^
foo.cc:162:21: warning: array subscript has type 'char' [-Wchar-subscripts]
  162 |         mapp[s3[pos]]=-1;
      |                     ^
foo.cc:170:21: warning: array subscript has type 'char' [-Wchar-subscripts]
  170 |         mapp[s3[pos]]=num+1;
      |                     ^
foo.cc:173:21: warning: array subscript has type 'char' [-Wchar-subscripts]
  173 |         mapp[s3[pos]]=-1;
      |                     ^
foo.cc:178:17: warning: array subscript has type 'char' [-Wchar-subscripts]
  178 |     mapp[s2[pos]]=-1;
      |                 ^
foo.cc:183:20: warning: array subscript has type 'char' [-Wchar-subscripts]
  183 |     if(mapp[s3[pos]]!=-1)
      |                    ^
foo.cc:185:27: warning: array subscript has type 'char' [-Wchar-subscripts]
  185 |       int num=mapp[s1[pos]]+mapp[s2[pos]];
      |                           ^
foo.cc:185:41: warning: array subscript has type 'char' [-Wchar-subscripts]
  185 |       int num=mapp[s1[pos]]+mapp[s2[pos]];
      |                                         ^
foo.cc:187:30: warning: array subscript has type 'char' [-Wchar-subscripts]
  187 |       if(num>=0&&mapp[s3[pos]]==num)
      |                              ^
foo.cc:189:32: warning: array subscript has type 'char' [-Wchar-subscripts]
  189 |       if(num+1>=0&&mapp[s3[pos]]==num+1)
      |                                ^
foo.cc:194:27: warning: array subscript has type 'char' [-Wchar-subscripts]
  194 |       int num=mapp[s1[pos]]+mapp[s2[pos]];
      |                           ^
foo.cc:194:41: warning: array subscript has type 'char' [-Wchar-subscripts]
  194 |       int num=mapp[s1[pos]]+mapp[s2[pos]];
      |                                         ^
foo.cc:201:21: warning: array subscript has type 'char' [-Wchar-subscripts]
  201 |         mapp[s3[pos]]=num;
      |                     ^
foo.cc:204:21: warning: array subscript has type 'char' [-Wchar-subscripts]
  204 |         mapp[s3[pos]]=-1;
      |                     ^
foo.cc:212:21: warning: array subscript has type 'char' [-Wchar-subscripts]
  212 |         mapp[s3[pos]]=num+1;
      |                     ^
foo.cc:215:21: warning: array subscript has type 'char' [-Wchar-subscripts]
  215 |         mapp[s3[pos]]=-1;
      |                     ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 6ms 384.0 KiB
#6 Accepted 144ms 384.0 KiB
#7 Accepted 599ms 504.0 KiB
#8 Accepted 107ms 384.0 KiB
#9 Time Exceeded ≥1101ms ≥384.0 KiB
#10 Accepted 4ms 384.0 KiB

信息

递交者
类型
递交
题目
P1099 虫食算
语言
C++
递交时间
2022-02-10 18:31:19
评测时间
2022-02-10 18:31:19
评测机
分数
90
总耗时
≥1975ms
峰值内存
≥504.0 KiB