/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int Check()':
/in/foo.cc:53:12: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(res[a1]!=-1 && res[b1]!=-1 && res[c1]!=-1)//3个数都知道-----3个点
            ^
/in/foo.cc:53:27: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(res[a1]!=-1 && res[b1]!=-1 && res[c1]!=-1)//3个数都知道-----3个点
                           ^
/in/foo.cc:53:42: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(res[a1]!=-1 && res[b1]!=-1 && res[c1]!=-1)//3个数都知道-----3个点
                                          ^
/in/foo.cc:57:15: warning: array subscript has type 'char' [-Wchar-subscripts]
    if( (res[a1]+res[b1])%n!=res[c1] &&//无进位
               ^
/in/foo.cc:57:23: warning: array subscript has type 'char' [-Wchar-subscripts]
    if( (res[a1]+res[b1])%n!=res[c1] &&//无进位
                       ^
/in/foo.cc:57:35: warning: array subscript has type 'char' [-Wchar-subscripts]
    if( (res[a1]+res[b1])%n!=res[c1] &&//无进位
                                   ^
/in/foo.cc:59:12: warning: array subscript has type 'char' [-Wchar-subscripts]
     (res[a1]+res[b1]+1)%n!=res[c1])//有进位
            ^
/in/foo.cc:59:20: warning: array subscript has type 'char' [-Wchar-subscripts]
     (res[a1]+res[b1]+1)%n!=res[c1])//有进位
                    ^
/in/foo.cc:59:34: warning: array subscript has type 'char' [-Wchar-subscripts]
     (res[a1]+res[b1]+1)%n!=res[c1])//有进位
                                  ^
/in/foo.cc:67:12: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(res[a1]!=-1 && res[b1]!=-1 && res[c1]==-1)//如果只知道其中2个
            ^
/in/foo.cc:67:27: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(res[a1]!=-1 && res[b1]!=-1 && res[c1]==-1)//如果只知道其中2个
                           ^
/in/foo.cc:67:42: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(res[a1]!=-1 && res[b1]!=-1 && res[c1]==-1)//如果只知道其中2个
                                          ^
/in/foo.cc:73:18: warning: array subscript has type 'char' [-Wchar-subscripts]
    sum1 = (res[a1]+res[b1])%n;
                  ^
/in/foo.cc:73:26: warning: array subscript has type 'char' [-Wchar-subscripts]
    sum1 = (res[a1]+res[b1])%n;
                          ^
/in/foo.cc:75:18: warning: array subscript has type 'char' [-Wchar-subscripts]
    sum2 = (res[a1]+res[b1]+1)%n;
                  ^
/in/foo.cc:75:26: warning: array subscript has type 'char' [-Wchar-subscripts]
    sum2 = (res[a1]+res[b1]+1)%n;
                          ^
/in/foo.cc:83:13: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (res[a1]!=-1 && res[b1]==-1 && res[c1]!=-1)//和与一个加数知道
             ^
/in/foo.cc:83:28: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (res[a1]!=-1 && res[b1]==-1 && res[c1]!=-1)//和与一个加数知道
                            ^
/in/foo.cc:83:43: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (res[a1]!=-1 && res[b1]==-1 && res[c1]!=-1)//和与一个加数知道
                                           ^
/in/foo.cc:89:17: warning: array subscript has type 'char' [-Wchar-subscripts]
    js1 = (res[c1]-res[a1]+n)%n;
                 ^
/in/foo.cc:89:25: warning: array subscript has type 'char' [-Wchar-subscripts]
    js1 = (res[c1]-res[a1]+n)%n;
                         ^
/in/foo.cc:91:17: warning: array subscript has type 'char' [-Wchar-subscripts]
    js2 = (res[c1]-res[a1]-1+n)%n;
                 ^
/in/foo.cc:91:25: warning: array subscript has type 'char' [-Wchar-subscripts]
    js2 = (res[c1]-res[a1]-1+n)%n;
                         ^
/in/foo.cc:99:13: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (res[a1]==-1 && res[b1]!=-1 && res[c1]!=-1)//和与一个加数知道
             ^
/in/foo.cc:99:28: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (res[a1]==-1 && res[b1]!=-1 && res[c1]!=-1)//和与一个加数知道
                            ^
/in/foo.cc:99:43: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (res[a1]==-1 && res[b1]!=-1 && res[c1]!=-1)//和与一个加数知道
                                           ^
/in/foo.cc:105:17: warning: array subscript has type 'char' [-Wchar-subscripts]
    js1 = (res[c1]-res[b1]+n)%n;
                 ^
/in/foo.cc:105:25: warning: array subscript has type 'char' [-Wchar-subscripts]
    js1 = (res[c1]-res[b1]+n)%n;
                         ^
/in/foo.cc:107:17: warning: array subscript has type 'char' [-Wchar-subscripts]
    js2 = (res[c1]-res[b1]-1+n)%n;
                 ^
/in/foo.cc:107: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:181:18: warning: array subscript has type 'char' [-Wchar-subscripts]
   jiahe = (res[a1]+res[b1]+jinwei)%n;//计算和
                  ^
/in/foo.cc:181:26: warning: array subscript has type 'char' [-Wchar-subscripts]
   jiahe = (res[a1]+res[b1]+jinwei)%n;//计算和
                          ^
/in/foo.cc:183:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   jinwei =( res[a1]+res[b1]+jinwei)/n;//计算进位
                   ^
/in/foo.cc:183:27: warning: array subscript has type 'char' [-Wchar-subscripts]
   jinwei =( res[a1]+res[b1]+jinwei)/n;//计算进位
                           ^
/in/foo.cc:185:20: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (jiahe!=res[c1]) return 0;
                    ^
/in/foo.cc: In function 'void dfs(int)':
/in/foo.cc:239:14: warning: array subscript has type 'char' [-Wchar-subscripts]
    res[pos[k]]=i;//第k个字母取数字i
              ^
/in/foo.cc:245:14: warning: array subscript has type 'char' [-Wchar-subscripts]
    res[pos[k]]=-1;//第k个字母释放
              ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:281:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (!usedZiMu[a1]) ///从上往下
                   ^
/in/foo.cc:285:15: warning: array subscript has type 'char' [-Wchar-subscripts]
    usedZiMu[a1]=1;
               ^
/in/foo.cc:291:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (!usedZiMu[b1]) 
                   ^
/in/foo.cc:295:15: warning: array subscript has type 'char' [-Wchar-subscripts]
    usedZiMu[b1]=1;
               ^
/in/foo.cc:301:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (!usedZiMu[c1]) 
                   ^
/in/foo.cc:305:15: warning: array subscript has type 'char' [-Wchar-subscripts]
    usedZiMu[c1]=1;
               ^
# 状态 耗时 内存占用
#1 Accepted 2ms 228.0 KiB
#2 Accepted 2ms 216.0 KiB
#3 Accepted 2ms 228.0 KiB
#4 Accepted 2ms 220.0 KiB
#5 Accepted 3ms 228.0 KiB
#6 Accepted 2ms 216.0 KiB
#7 Accepted 10ms 308.0 KiB
#8 Accepted 4ms 216.0 KiB
#9 Accepted 32ms 304.0 KiB
#10 Accepted 2ms 224.0 KiB

信息

递交者
类型
递交
题目
P1099 虫食算
语言
C++
递交时间
2020-06-07 19:36:09
评测时间
2020-06-07 19:36:09
评测机
分数
100
总耗时
63ms
峰值内存
308.0 KiB