/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'int check(int)':
/in/foo.cc:36:21: warning: array subscript has type 'char' [-Wchar-subscripts]
     if(num[p[2][now]]!=-1)
                     ^
/in/foo.cc:38:51: warning: array subscript has type 'char' [-Wchar-subscripts]
         if((a[0][now]+a[1][now])%k==(num[p[2][now]]-a[2][now]+k)%k)
                                                   ^
/in/foo.cc: In function 'int search(int, int)':
/in/foo.cc:98:26: warning: array subscript has type 'char' [-Wchar-subscripts]
             num[p[2][now]]=a[2][now];
                          ^
/in/foo.cc:109:26: warning: array subscript has type 'char' [-Wchar-subscripts]
             num[p[2][now]]=-1;
                          ^
/in/foo.cc:126:22: warning: array subscript has type 'char' [-Wchar-subscripts]
     if(num[p[md][now]]!=-1)
                      ^
/in/foo.cc:128:34: warning: array subscript has type 'char' [-Wchar-subscripts]
         a[md][now]=num[p[md][now]];
                                  ^
/in/foo.cc:136:27: warning: array subscript has type 'char' [-Wchar-subscripts]
             num[p[md][now]]=i;
                           ^
/in/foo.cc:142:27: warning: array subscript has type 'char' [-Wchar-subscripts]
             num[p[md][now]]=-1;
                           ^
# 状态 耗时 内存占用
#1 Accepted 3ms 360.0 KiB
#2 Accepted 3ms 348.0 KiB
#3 Accepted 3ms 368.0 KiB
#4 Accepted 4ms 360.0 KiB
#5 Accepted 8ms 376.0 KiB
#6 Accepted 5ms 380.0 KiB
#7 Accepted 28ms 356.0 KiB
#8 Accepted 5ms 344.0 KiB
#9 Time Exceeded ≥1005ms ≥364.0 KiB
#10 Accepted 2ms 348.0 KiB

信息

递交者
类型
递交
题目
P1099 虫食算
语言
C++
递交时间
2017-11-27 16:54:15
评测时间
2017-11-27 16:54:15
评测机
分数
90
总耗时
≥1071ms
峰值内存
≥380.0 KiB