/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int Check()':
/in/foo.cc:20:18: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(res[a1]!=-1 && res[b1]!=-1 && res[c1]!=-1) 
                  ^
/in/foo.cc:20:33: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(res[a1]!=-1 && res[b1]!=-1 && res[c1]!=-1) 
                                 ^
/in/foo.cc:20:48: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(res[a1]!=-1 && res[b1]!=-1 && res[c1]!=-1) 
                                                ^
/in/foo.cc:22:24: warning: array subscript has type 'char' [-Wchar-subscripts]
             if( (res[a1]+res[b1])%n!=res[c1] && (res[a1]+res[b1]+1)%n!=res[c1])
                        ^
/in/foo.cc:22:32: warning: array subscript has type 'char' [-Wchar-subscripts]
             if( (res[a1]+res[b1])%n!=res[c1] && (res[a1]+res[b1]+1)%n!=res[c1])
                                ^
/in/foo.cc:22:44: warning: array subscript has type 'char' [-Wchar-subscripts]
             if( (res[a1]+res[b1])%n!=res[c1] && (res[a1]+res[b1]+1)%n!=res[c1])
                                            ^
/in/foo.cc:22:56: warning: array subscript has type 'char' [-Wchar-subscripts]
             if( (res[a1]+res[b1])%n!=res[c1] && (res[a1]+res[b1]+1)%n!=res[c1])
                                                        ^
/in/foo.cc:22:64: warning: array subscript has type 'char' [-Wchar-subscripts]
             if( (res[a1]+res[b1])%n!=res[c1] && (res[a1]+res[b1]+1)%n!=res[c1])
                                                                ^
/in/foo.cc:22:78: warning: array subscript has type 'char' [-Wchar-subscripts]
             if( (res[a1]+res[b1])%n!=res[c1] && (res[a1]+res[b1]+1)%n!=res[c1])
                                                                              ^
/in/foo.cc:25:18: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(res[a1]!=-1 && res[b1]!=-1 && res[c1]==-1) 
                  ^
/in/foo.cc:25:33: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(res[a1]!=-1 && res[b1]!=-1 && res[c1]==-1) 
                                 ^
/in/foo.cc:25:48: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(res[a1]!=-1 && res[b1]!=-1 && res[c1]==-1) 
                                                ^
/in/foo.cc:28:27: warning: array subscript has type 'char' [-Wchar-subscripts]
             sum1 = (res[a1]+res[b1])%n;  
                           ^
/in/foo.cc:28:35: warning: array subscript has type 'char' [-Wchar-subscripts]
             sum1 = (res[a1]+res[b1])%n;  
                                   ^
/in/foo.cc:29:27: warning: array subscript has type 'char' [-Wchar-subscripts]
             sum2 = (res[a1]+res[b1]+1)%n;  
                           ^
/in/foo.cc:29:35: warning: array subscript has type 'char' [-Wchar-subscripts]
             sum2 = (res[a1]+res[b1]+1)%n;  
                                   ^
/in/foo.cc:33:19: warning: array subscript has type 'char' [-Wchar-subscripts]
         if (res[a1]!=-1 && res[b1]==-1 && res[c1]!=-1)
                   ^
/in/foo.cc:33:34: warning: array subscript has type 'char' [-Wchar-subscripts]
         if (res[a1]!=-1 && res[b1]==-1 && res[c1]!=-1)
                                  ^
/in/foo.cc:33:49: warning: array subscript has type 'char' [-Wchar-subscripts]
         if (res[a1]!=-1 && res[b1]==-1 && res[c1]!=-1)
                                                 ^
/in/foo.cc:36:26: warning: array subscript has type 'char' [-Wchar-subscripts]
             js1 = (res[c1]-res[a1]+n)%n;  
                          ^
/in/foo.cc:36:34: warning: array subscript has type 'char' [-Wchar-subscripts]
             js1 = (res[c1]-res[a1]+n)%n;  
                                  ^
/in/foo.cc:37:26: warning: array subscript has type 'char' [-Wchar-subscripts]
             js2 = (res[c1]-res[a1]-1+n)%n;  
                          ^
/in/foo.cc:37:34: warning: array subscript has type 'char' [-Wchar-subscripts]
             js2 = (res[c1]-res[a1]-1+n)%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[b1]+n)%n;  
                          ^
/in/foo.cc:44:34: warning: array subscript has type 'char' [-Wchar-subscripts]
             js1 = (res[c1]-res[b1]+n)%n;  
                                  ^
/in/foo.cc:45:26: warning: array subscript has type 'char' [-Wchar-subscripts]
             js2 = (res[c1]-res[b1]-1+n)%n;  
                          ^
/in/foo.cc:45: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:62:24: warning: array subscript has type 'char' [-Wchar-subscripts]
         jiahe = (res[a1]+res[b1]+jinwei)%n;
                        ^
/in/foo.cc:62:32: warning: array subscript has type 'char' [-Wchar-subscripts]
         jiahe = (res[a1]+res[b1]+jinwei)%n;
                                ^
/in/foo.cc:63:25: warning: array subscript has type 'char' [-Wchar-subscripts]
         jinwei =( res[a1]+res[b1]+jinwei)/n;//计算进位  
                         ^
/in/foo.cc:63:33: warning: array subscript has type 'char' [-Wchar-subscripts]
         jinwei =( res[a1]+res[b1]+jinwei)/n;//计算进位  
                                 ^
/in/foo.cc:64: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:88:23: warning: array subscript has type 'char' [-Wchar-subscripts]
             res[pos[k]]=i;
                       ^
/in/foo.cc:91:23: warning: array subscript has type 'char' [-Wchar-subscripts]
             res[pos[k]]=-1;
                       ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:106:25: warning: array subscript has type 'char' [-Wchar-subscripts]
         if (!usedZiMu[a1])   
                         ^
/in/foo.cc:108:24: warning: array subscript has type 'char' [-Wchar-subscripts]
             usedZiMu[a1]=1;  
                        ^
/in/foo.cc:111:25: warning: array subscript has type 'char' [-Wchar-subscripts]
         if (!usedZiMu[b1])   
                         ^
/in/foo.cc:113:24: warning: array subscript has type 'char' [-Wchar-subscripts]
             usedZiMu[b1]=1;  
                        ^
/in/foo.cc:116:25: warning: array subscript has type 'char' [-Wchar-subscripts]
         if (!usedZiMu[c1])   
                         ^
/in/foo.cc:118:24: warning: array subscript has type 'char' [-Wchar-subscripts]
             usedZiMu[c1]=1;  
                        ^
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Accepted 2ms 256.0 KiB
#3 Accepted 3ms 348.0 KiB
#4 Accepted 2ms 256.0 KiB
#5 Accepted 4ms 384.0 KiB
#6 Accepted 7ms 256.0 KiB
#7 Accepted 47ms 256.0 KiB
#8 Accepted 18ms 256.0 KiB
#9 Accepted 233ms 256.0 KiB
#10 Accepted 2ms 336.0 KiB

信息

递交者
类型
递交
题目
P1099 虫食算
语言
C++
递交时间
2017-07-21 21:54:56
评测时间
2017-07-21 21:54:56
评测机
分数
100
总耗时
324ms
峰值内存
384.0 KiB