记录详情

Time Exceeded

/in/foo.cc: In function 'int main()':
/in/foo.cc:47:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&n);
                   ^
/in/foo.cc:48:53: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     for(int i=1;i<=n;i++) scanf("%s",c),AC.Insert(c);
                                                     ^
/in/foo.cc:50:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%s",c);int ans=AC.Query(c);
                  ^
# 状态 耗时 内存占用
#1 Time Exceeded ≥253ms ≥58.25 MiB
#2 Accepted 123ms 46.418 MiB

信息

递交者
类型
递交
题目
AC自动机模板题
语言
C++
递交时间
2017-04-05 20:32:25
评测时间
2017-04-05 20:32:25
评测机
分数
50
总耗时
≥376ms
峰值内存
≥58.25 MiB