/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int Check()':
/in/foo.cc:26:18: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(res[a1]!=-1 && res[b1]!=-1 && res[c1]!=-1)//3个数都知道-----3个点  
                  ^
/in/foo.cc:26:33: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(res[a1]!=-1 && res[b1]!=-1 && res[c1]!=-1)//3个数都知道-----3个点  
                                 ^
/in/foo.cc:26:48: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(res[a1]!=-1 && res[b1]!=-1 && res[c1]!=-1)//3个数都知道-----3个点  
                                                ^
/in/foo.cc:28:24: warning: array subscript has type 'char' [-Wchar-subscripts]
             if( (res[a1]+res[b1])%n!=res[c1] &&//无进位  
                        ^
/in/foo.cc:28:32: warning: array subscript has type 'char' [-Wchar-subscripts]
             if( (res[a1]+res[b1])%n!=res[c1] &&//无进位  
                                ^
/in/foo.cc:28:44: warning: array subscript has type 'char' [-Wchar-subscripts]
             if( (res[a1]+res[b1])%n!=res[c1] &&//无进位  
                                            ^
/in/foo.cc:29:24: warning: array subscript has type 'char' [-Wchar-subscripts]
                 (res[a1]+res[b1]+1)%n!=res[c1])//有进位  
                        ^
/in/foo.cc:29:32: warning: array subscript has type 'char' [-Wchar-subscripts]
                 (res[a1]+res[b1]+1)%n!=res[c1])//有进位  
                                ^
/in/foo.cc:29:46: warning: array subscript has type 'char' [-Wchar-subscripts]
                 (res[a1]+res[b1]+1)%n!=res[c1])//有进位  
                                              ^
/in/foo.cc:33:18: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(res[a1]!=-1 && res[b1]!=-1 && res[c1]==-1)//如果只知道其中2个  
                  ^
/in/foo.cc:33:33: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(res[a1]!=-1 && res[b1]!=-1 && res[c1]==-1)//如果只知道其中2个  
                                 ^
/in/foo.cc:33:48: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(res[a1]!=-1 && res[b1]!=-1 && res[c1]==-1)//如果只知道其中2个  
                                                ^
/in/foo.cc:36:27: warning: array subscript has type 'char' [-Wchar-subscripts]
             sum1 = (res[a1]+res[b1])%n;  
                           ^
/in/foo.cc:36:35: warning: array subscript has type 'char' [-Wchar-subscripts]
             sum1 = (res[a1]+res[b1])%n;  
                                   ^
/in/foo.cc:37:27: warning: array subscript has type 'char' [-Wchar-subscripts]
             sum2 = (res[a1]+res[b1]+1)%n;  
                           ^
/in/foo.cc:37:35: warning: array subscript has type 'char' [-Wchar-subscripts]
             sum2 = (res[a1]+res[b1]+1)%n;  
                                   ^
/in/foo.cc:41:19: warning: array subscript has type 'char' [-Wchar-subscripts]
         if (res[a1]!=-1 && res[b1]==-1 && res[c1]!=-1)//和与一个加数知道  
                   ^
/in/foo.cc:41:34: warning: array subscript has type 'char' [-Wchar-subscripts]
         if (res[a1]!=-1 && res[b1]==-1 && res[c1]!=-1)//和与一个加数知道  
                                  ^
/in/foo.cc:41:49: warning: array subscript has type 'char' [-Wchar-subscripts]
         if (res[a1]!=-1 && res[b1]==-1 && res[c1]!=-1)//和与一个加数知道  
                                                 ^
/in/foo.cc:44:26: warning: array subscript has type 'char' [-Wchar-subscripts]
             js1 = (res[c1]-res[a1]+n)%n;  
                          ^
/in/foo.cc:44:34: warning: array subscript has type 'char' [-Wchar-subscripts]
             js1 = (res[c1]-res[a1]+n)%n;  
                                  ^
/in/foo.cc:45:26: warning: array subscript has type 'char' [-Wchar-subscripts]
             js2 = (res[c1]-res[a1]-1+n)%n;  
                          ^
/in/foo.cc:45:34: warning: array subscript has type 'char' [-Wchar-subscripts]
             js2 = (res[c1]-res[a1]-1+n)%n;  
                                  ^
/in/foo.cc:49:19: warning: array subscript has type 'char' [-Wchar-subscripts]
         if (res[a1]==-1 && res[b1]!=-1 && res[c1]!=-1)//和与一个加数知道  
                   ^
/in/foo.cc:49:34: warning: array subscript has type 'char' [-Wchar-subscripts]
         if (res[a1]==-1 && res[b1]!=-1 && res[c1]!=-1)//和与一个加数知道  
                                  ^
/in/foo.cc:49:49: warning: array subscript has type 'char' [-Wchar-subscripts]
         if (res[a1]==-1 && res[b1]!=-1 && res[c1]!=-1)//和与一个加数知道  
                                                 ^
/in/foo.cc:52:26: warning: array subscript has type 'char' [-Wchar-subscripts]
             js1 = (res[c1]-res[b1]+n)%n;  
                          ^
/in/foo.cc:52:34: warning: array subscript has type 'char' [-Wchar-subscripts]
             js1 = (res[c1]-res[b1]+n)%n;  
                                  ^
/in/foo.cc:53:26: warning: array subscript has type 'char' [-Wchar-subscripts]
             js2 = (res[c1]-res[b1]-1+n)%n;  
                          ^
/in/foo.cc:53:34: 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:90:24: warning: array subscript has type 'char' [-Wchar-subscripts]
         jiahe = (res[a1]+res[b1]+jinwei)%n;//计算和  
                        ^
/in/foo.cc:90:32: warning: array subscript has type 'char' [-Wchar-subscripts]
         jiahe = (res[a1]+res[b1]+jinwei)%n;//计算和  
                                ^
/in/foo.cc:91:25: warning: array subscript has type 'char' [-Wchar-subscripts]
         jinwei =( res[a1]+res[b1]+jinwei)/n;//计算进位  
                         ^
/in/foo.cc:91:33: warning: array subscript has type 'char' [-Wchar-subscripts]
         jinwei =( res[a1]+res[b1]+jinwei)/n;//计算进位  
                                 ^
/in/foo.cc:92:26: 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:119:23: warning: array subscript has type 'char' [-Wchar-subscripts]
             res[pos[k]]=i;//第k个字母取数字i  
                       ^
/in/foo.cc:122:23: warning: array subscript has type 'char' [-Wchar-subscripts]
             res[pos[k]]=-1;//第k个字母释放  
                       ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:140:25: warning: array subscript has type 'char' [-Wchar-subscripts]
         if (!usedZiMu[a1]) ///从上往下  
                         ^
/in/foo.cc:142:24: warning: array subscript has type 'char' [-Wchar-subscripts]
             usedZiMu[a1]=1;  
                        ^
/in/foo.cc:145:25: warning: array subscript has type 'char' [-Wchar-subscripts]
         if (!usedZiMu[b1])   
                         ^
/in/foo.cc:147:24: warning: array subscript has type 'char' [-Wchar-subscripts]
             usedZiMu[b1]=1;  
                        ^
/in/foo.cc:150:25: warning: array subscript has type 'char' [-Wchar-subscripts]
         if (!usedZiMu[c1])   
                         ^
/in/foo.cc:152:24: warning: array subscript has type 'char' [-Wchar-subscripts]
             usedZiMu[c1]=1;  
                        ^
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 3ms 364.0 KiB
#3 Accepted 3ms 256.0 KiB
#4 Accepted 3ms 384.0 KiB
#5 Accepted 4ms 376.0 KiB
#6 Accepted 4ms 372.0 KiB
#7 Accepted 21ms 372.0 KiB
#8 Accepted 5ms 360.0 KiB
#9 Accepted 54ms 372.0 KiB
#10 Accepted 3ms 384.0 KiB

信息

递交者
类型
递交
题目
P1099 虫食算
语言
C++
递交时间
2018-03-22 21:01:26
评测时间
2018-03-22 21:01:26
评测机
分数
100
总耗时
107ms
峰值内存
384.0 KiB