/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'int Check()':
/in/foo.cc:24:12: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(res[a1]!=-1 && res[b1]!=-1 && res[c1]!=-1)//3个数都知道
            ^
/in/foo.cc:24:27: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(res[a1]!=-1 && res[b1]!=-1 && res[c1]!=-1)//3个数都知道
                           ^
/in/foo.cc:24:42: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(res[a1]!=-1 && res[b1]!=-1 && res[c1]!=-1)//3个数都知道
                                          ^
/in/foo.cc:26:15: warning: array subscript has type 'char' [-Wchar-subscripts]
    if( (res[a1]+res[b1])%n!=res[c1] &&//无进位
               ^
/in/foo.cc:26:23: warning: array subscript has type 'char' [-Wchar-subscripts]
    if( (res[a1]+res[b1])%n!=res[c1] &&//无进位
                       ^
/in/foo.cc:26:35: warning: array subscript has type 'char' [-Wchar-subscripts]
    if( (res[a1]+res[b1])%n!=res[c1] &&//无进位
                                   ^
/in/foo.cc:27:12: warning: array subscript has type 'char' [-Wchar-subscripts]
     (res[a1]+res[b1]+1)%n!=res[c1])//有进位
            ^
/in/foo.cc:27:20: warning: array subscript has type 'char' [-Wchar-subscripts]
     (res[a1]+res[b1]+1)%n!=res[c1])//有进位
                    ^
/in/foo.cc:27:34: warning: array subscript has type 'char' [-Wchar-subscripts]
     (res[a1]+res[b1]+1)%n!=res[c1])//有进位
                                  ^
/in/foo.cc:31:12: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(res[a1]!=-1 && res[b1]!=-1 && res[c1]==-1)//如果只知道其中2个
            ^
/in/foo.cc:31:27: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(res[a1]!=-1 && res[b1]!=-1 && res[c1]==-1)//如果只知道其中2个
                           ^
/in/foo.cc:31:42: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(res[a1]!=-1 && res[b1]!=-1 && res[c1]==-1)//如果只知道其中2个
                                          ^
/in/foo.cc:34:18: warning: array subscript has type 'char' [-Wchar-subscripts]
    sum1 = (res[a1]+res[b1])%n;
                  ^
/in/foo.cc:34:26: warning: array subscript has type 'char' [-Wchar-subscripts]
    sum1 = (res[a1]+res[b1])%n;
                          ^
/in/foo.cc:35:18: warning: array subscript has type 'char' [-Wchar-subscripts]
    sum2 = (res[a1]+res[b1]+1)%n;
                  ^
/in/foo.cc:35:26: warning: array subscript has type 'char' [-Wchar-subscripts]
    sum2 = (res[a1]+res[b1]+1)%n;
                          ^
/in/foo.cc:39:13: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (res[a1]!=-1 && res[b1]==-1 && res[c1]!=-1)//和与一个加数知道
             ^
/in/foo.cc:39:28: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (res[a1]!=-1 && res[b1]==-1 && res[c1]!=-1)//和与一个加数知道
                            ^
/in/foo.cc:39:43: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (res[a1]!=-1 && res[b1]==-1 && res[c1]!=-1)//和与一个加数知道
                                           ^
/in/foo.cc:42:17: warning: array subscript has type 'char' [-Wchar-subscripts]
    js1 = (res[c1]-res[a1]+n)%n;
                 ^
/in/foo.cc:42:25: warning: array subscript has type 'char' [-Wchar-subscripts]
    js1 = (res[c1]-res[a1]+n)%n;
                         ^
/in/foo.cc:43:17: warning: array subscript has type 'char' [-Wchar-subscripts]
    js2 = (res[c1]-res[a1]-1+n)%n;
                 ^
/in/foo.cc:43:25: warning: array subscript has type 'char' [-Wchar-subscripts]
    js2 = (res[c1]-res[a1]-1+n)%n;
                         ^
/in/foo.cc:47:13: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (res[a1]==-1 && res[b1]!=-1 && res[c1]!=-1)//和与一个加数知道
             ^
/in/foo.cc:47:28: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (res[a1]==-1 && res[b1]!=-1 && res[c1]!=-1)//和与一个加数知道
                            ^
/in/foo.cc:47:43: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (res[a1]==-1 && res[b1]!=-1 && res[c1]!=-1)//和与一个加数知道
                                           ^
/in/foo.cc:50:17: warning: array subscript has type 'char' [-Wchar-subscripts]
    js1 = (res[c1]-res[b1]+n)%n;
                 ^
/in/foo.cc:50:25: warning: array subscript has type 'char' [-Wchar-subscripts]
    js1 = (res[c1]-res[b1]+n)%n;
                         ^
/in/foo.cc:51:17: warning: array subscript has type 'char' [-Wchar-subscripts]
    js2 = (res[c1]-res[b1]-1+n)%n;
                 ^
/in/foo.cc:51:25: warning: array subscript has type 'char' [-Wchar-subscripts]
    js2 = (res[c1]-res[b1]-1+n)%n;
                         ^
/in/foo.cc: In function 'int OK()':
/in/foo.cc:87:18: warning: array subscript has type 'char' [-Wchar-subscripts]
   jiahe = (res[a1]+res[b1]+jinwei)%n;//计算和
                  ^
/in/foo.cc:87:26: warning: array subscript has type 'char' [-Wchar-subscripts]
   jiahe = (res[a1]+res[b1]+jinwei)%n;//计算和
                          ^
/in/foo.cc:88:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   jinwei =( res[a1]+res[b1]+jinwei)/n;//计算进位
                   ^
/in/foo.cc:88:27: warning: array subscript has type 'char' [-Wchar-subscripts]
   jinwei =( res[a1]+res[b1]+jinwei)/n;//计算进位
                           ^
/in/foo.cc:89:20: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (jiahe!=res[c1]) return 0;
                    ^
# 状态 耗时 内存占用
#1 Accepted 132ms 308.0 KiB
#2 Accepted 1ms 192.0 KiB
#3 Accepted 2ms 196.0 KiB
#4 Accepted 4ms 196.0 KiB
#5 Accepted 70ms 192.0 KiB
#6 Accepted 3ms 192.0 KiB
#7 Time Exceeded ≥1001ms ≥196.0 KiB
#8 Time Exceeded ≥1001ms ≥200.0 KiB
#9 Time Exceeded ≥1004ms ≥196.0 KiB
#10 Accepted 1ms 204.0 KiB

信息

递交者
类型
递交
题目
P1099 虫食算
语言
C++
递交时间
2020-02-11 16:54:31
评测时间
2020-02-11 16:54:31
评测机
分数
70
总耗时
≥3224ms
峰值内存
≥308.0 KiB