记录详情

Accepted

/in/foo.cc: In function 'int Check()':
/in/foo.cc:19:10: warning: array subscript has type 'char' [-Wchar-subscripts]
 if(res[a1]!=-1 && res[b1]!=-1 && res[c1]!=-1)  
          ^
/in/foo.cc:19:25: warning: array subscript has type 'char' [-Wchar-subscripts]
 if(res[a1]!=-1 && res[b1]!=-1 && res[c1]!=-1)  
                         ^
/in/foo.cc:19:40: warning: array subscript has type 'char' [-Wchar-subscripts]
 if(res[a1]!=-1 && res[b1]!=-1 && res[c1]!=-1)  
                                        ^
/in/foo.cc:21:12: warning: array subscript has type 'char' [-Wchar-subscripts]
 if( (res[a1]+res[b1])%n!=res[c1] &&//无进位    
            ^
/in/foo.cc:21:20: warning: array subscript has type 'char' [-Wchar-subscripts]
 if( (res[a1]+res[b1])%n!=res[c1] &&//无进位    
                    ^
/in/foo.cc:21:32: warning: array subscript has type 'char' [-Wchar-subscripts]
 if( (res[a1]+res[b1])%n!=res[c1] &&//无进位    
                                ^
/in/foo.cc:22:8: warning: array subscript has type 'char' [-Wchar-subscripts]
 (res[a1]+res[b1]+1)%n!=res[c1])//有进位    
        ^
/in/foo.cc:22:16: warning: array subscript has type 'char' [-Wchar-subscripts]
 (res[a1]+res[b1]+1)%n!=res[c1])//有进位    
                ^
/in/foo.cc:22:30: warning: array subscript has type 'char' [-Wchar-subscripts]
 (res[a1]+res[b1]+1)%n!=res[c1])//有进位    
                              ^
/in/foo.cc:25:10: warning: array subscript has type 'char' [-Wchar-subscripts]
 if(res[a1]!=-1 && res[b1]!=-1 && res[c1]==-1)//如果只知道其中2个  
          ^
/in/foo.cc:25:25: warning: array subscript has type 'char' [-Wchar-subscripts]
 if(res[a1]!=-1 && res[b1]!=-1 && res[c1]==-1)//如果只知道其中2个  
                         ^
/in/foo.cc:25:40: warning: array subscript has type 'char' [-Wchar-subscripts]
 if(res[a1]!=-1 && res[b1]!=-1 && res[c1]==-1)//如果只知道其中2个  
                                        ^
/in/foo.cc:28:15: warning: array subscript has type 'char' [-Wchar-subscripts]
 sum1 = (res[a1]+res[b1])%n;   
               ^
/in/foo.cc:28:23: warning: array subscript has type 'char' [-Wchar-subscripts]
 sum1 = (res[a1]+res[b1])%n;   
                       ^
/in/foo.cc:29:15: warning: array subscript has type 'char' [-Wchar-subscripts]
 sum2 = (res[a1]+res[b1]+1)%n;   
               ^
/in/foo.cc:29:23: warning: array subscript has type 'char' [-Wchar-subscripts]
 sum2 = (res[a1]+res[b1]+1)%n;   
                       ^
/in/foo.cc:33:11: warning: array subscript has type 'char' [-Wchar-subscripts]
 if (res[a1]!=-1 && res[b1]==-1 && res[c1]!=-1)  {   
           ^
/in/foo.cc:33:26: warning: array subscript has type 'char' [-Wchar-subscripts]
 if (res[a1]!=-1 && res[b1]==-1 && res[c1]!=-1)  {   
                          ^
/in/foo.cc:33:41: warning: array subscript has type 'char' [-Wchar-subscripts]
 if (res[a1]!=-1 && res[b1]==-1 && res[c1]!=-1)  {   
                                         ^
/in/foo.cc:35:14: warning: array subscript has type 'char' [-Wchar-subscripts]
 js1 = (res[c1]-res[a1]+n)%n;  
              ^
/in/foo.cc:35:22: warning: array subscript has type 'char' [-Wchar-subscripts]
 js1 = (res[c1]-res[a1]+n)%n;  
                      ^
/in/foo.cc:36:14: warning: array subscript has type 'char' [-Wchar-subscripts]
 js2 = (res[c1]-res[a1]-1+n)%n;   
              ^
/in/foo.cc:36:22: warning: array subscript has type 'char' [-Wchar-subscripts]
 js2 = (res[c1]-res[a1]-1+n)%n;   
                      ^
/in/foo.cc:40:11: warning: array subscript has type 'char' [-Wchar-subscripts]
 if (res[a1]==-1 && res[b1]!=-1 && res[c1]!=-1) 
           ^
/in/foo.cc:40:26: warning: array subscript has type 'char' [-Wchar-subscripts]
 if (res[a1]==-1 && res[b1]!=-1 && res[c1]!=-1) 
                          ^
/in/foo.cc:40:41: warning: array subscript has type 'char' [-Wchar-subscripts]
 if (res[a1]==-1 && res[b1]!=-1 && res[c1]!=-1) 
                                         ^
/in/foo.cc:43:14: warning: array subscript has type 'char' [-Wchar-subscripts]
 js1 = (res[c1]-res[b1]+n)%n;   
              ^
/in/foo.cc:43:22: warning: array subscript has type 'char' [-Wchar-subscripts]
 js1 = (res[c1]-res[b1]+n)%n;   
                      ^
/in/foo.cc:44:14: warning: array subscript has type 'char' [-Wchar-subscripts]
 js2 = (res[c1]-res[b1]-1+n)%n;   
              ^
/in/foo.cc:44:22: 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:59:16: warning: array subscript has type 'char' [-Wchar-subscripts]
 jiahe = (res[a1]+res[b1]+jinwei)%n;  
                ^
/in/foo.cc:59:24: warning: array subscript has type 'char' [-Wchar-subscripts]
 jiahe = (res[a1]+res[b1]+jinwei)%n;  
                        ^
/in/foo.cc:60:16: warning: array subscript has type 'char' [-Wchar-subscripts]
 jinwei =(res[a1]+res[b1]+jinwei)/n;
                ^
/in/foo.cc:60:24: warning: array subscript has type 'char' [-Wchar-subscripts]
 jinwei =(res[a1]+res[b1]+jinwei)/n;
                        ^
/in/foo.cc:61:18: warning: array subscript has type 'char' [-Wchar-subscripts]
 if (jiahe!=res[c1]) 
                  ^
/in/foo.cc: In function 'void dfs(int)':
/in/foo.cc:86:11: warning: array subscript has type 'char' [-Wchar-subscripts]
 res[pos[k]]=i;   
           ^
/in/foo.cc:89:11: warning: array subscript has type 'char' [-Wchar-subscripts]
 res[pos[k]]=-1;  
           ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:103:17: warning: array subscript has type 'char' [-Wchar-subscripts]
 if (!usedZiMu[a1])  
                 ^
/in/foo.cc:105:12: warning: array subscript has type 'char' [-Wchar-subscripts]
 usedZiMu[a1]=1;   
            ^
/in/foo.cc:108:17: warning: array subscript has type 'char' [-Wchar-subscripts]
 if (!usedZiMu[b1])   
                 ^
/in/foo.cc:110:12: warning: array subscript has type 'char' [-Wchar-subscripts]
 usedZiMu[b1]=1;   
            ^
/in/foo.cc:113:17: warning: array subscript has type 'char' [-Wchar-subscripts]
 if (!usedZiMu[c1])   
                 ^
/in/foo.cc:115:12: warning: array subscript has type 'char' [-Wchar-subscripts]
 usedZiMu[c1]=1;   
            ^
# 状态 耗时 内存占用
#1 Accepted 1ms 200.0 KiB
#2 Accepted 2ms 204.0 KiB
#3 Accepted 1ms 208.0 KiB
#4 Accepted 1ms 204.0 KiB
#5 Accepted 4ms 304.0 KiB
#6 Accepted 3ms 192.0 KiB
#7 Accepted 45ms 308.0 KiB
#8 Accepted 12ms 192.0 KiB
#9 Accepted 221ms 308.0 KiB
#10 Accepted 1ms 196.0 KiB

信息

递交者
类型
递交
题目
P1129 虫食算
比赛
南京师范大学算法竞赛之2020年寒假战“疫”系列赛Round2 总第72期赛
语言
C++
递交时间
2020-02-11 16:49:20
评测时间
2020-02-11 16:49:20
评测机
分数
100
总耗时
297ms
峰值内存
308.0 KiB