/ Vijos /

记录详情

Time Exceeded

foo.cc: In function 'void calc(int, int, int, int, int)':
foo.cc:73:48: warning: array subscript has type 'char' [-Wchar-subscripts]
   73 |         q[++tail]=node,sam=S[id].son(sam,a[node]);
      |                                          ~~~~~~^
foo.cc:22:25: note: in definition of macro 'son'
   22 | #define son(x,y) son[x][y]
      |                         ^
foo.cc: In function 'void solve(int)':
foo.cc:97:34: warning: array subscript has type 'char' [-Wchar-subscripts]
   97 |         int sam=S[1].son(1,a[node]),len=(s[1][1]==a[node]),last=1;
      |                            ~~~~~~^
foo.cc:22:25: note: in definition of macro 'son'
   22 | #define son(x,y) son[x][y]
      |                         ^
foo.cc:98:19: warning: unused variable 'rec' [-Wunused-variable]
   98 |         long long rec=ans;
      |                   ^~~
foo.cc:99:14: warning: unused variable 'flag' [-Wunused-variable]
   99 |         bool flag=0;
      |              ^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Time Exceeded ≥601ms ≥9.152 MiB
#2 Time Exceeded ≥601ms ≥9.152 MiB
#3 Time Exceeded ≥602ms ≥9.152 MiB
#4 Time Exceeded ≥1101ms ≥9.145 MiB

信息

递交者
类型
递交
题目
P1995 模式字符串
语言
C++
递交时间
2023-07-30 17:00:05
评测时间
2023-07-30 17:00:57
评测机
分数
0
总耗时
≥2906ms
峰值内存
≥9.152 MiB