记录详情

Accepted

foo.cc: In function 'bool judge()':
foo.cc:15:26: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(sum[calc[1][i]]>=0&&sum[calc[2][i]]>=0&&sum[calc[3][i]]>=0)
                          ^
foo.cc:15:46: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(sum[calc[1][i]]>=0&&sum[calc[2][i]]>=0&&sum[calc[3][i]]>=0)
                                              ^
foo.cc:15:66: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(sum[calc[1][i]]>=0&&sum[calc[2][i]]>=0&&sum[calc[3][i]]>=0)
                                                                  ^
foo.cc:17:36: warning: array subscript has type 'char' [-Wchar-subscripts]
             int temp=sum[calc[1][i]]+sum[calc[2][i]];
                                    ^
foo.cc:17:52: warning: array subscript has type 'char' [-Wchar-subscripts]
             int temp=sum[calc[1][i]]+sum[calc[2][i]];
                                                    ^
foo.cc:18:38: warning: array subscript has type 'char' [-Wchar-subscripts]
             if(temp%n!=sum[calc[3][i]]&&(temp+1)%n!=sum[calc[3][i]])return false;
                                      ^
foo.cc:18:67: warning: array subscript has type 'char' [-Wchar-subscripts]
             if(temp%n!=sum[calc[3][i]]&&(temp+1)%n!=sum[calc[3][i]])return false;
                                                                   ^
foo.cc: In function 'void search_3(int)':
foo.cc:26:28: warning: array subscript has type 'char' [-Wchar-subscripts]
     int temp=sum[calc[1][p]]+sum[calc[2][p]]+up[p+1];
                            ^
foo.cc:26:44: warning: array subscript has type 'char' [-Wchar-subscripts]
     int temp=sum[calc[1][p]]+sum[calc[2][p]]+up[p+1];
                                            ^
foo.cc:27:22: warning: array subscript has type 'char' [-Wchar-subscripts]
     if(sum[calc[3][p]]>=0)
                      ^
foo.cc:29:32: warning: array subscript has type 'char' [-Wchar-subscripts]
         if(temp==sum[calc[3][p]])search_1(p-1);
                                ^
foo.cc:30:39: warning: array subscript has type 'char' [-Wchar-subscripts]
         else if(temp-n==sum[calc[3][p]])
                                       ^
foo.cc:47:27: warning: array subscript has type 'char' [-Wchar-subscripts]
             sum[calc[3][p]]=temp;
                           ^
foo.cc:50:27: warning: array subscript has type 'char' [-Wchar-subscripts]
             sum[calc[3][p]]=-1;
                           ^
foo.cc: In function 'void search_2(int)':
foo.cc:59:22: warning: array subscript has type 'char' [-Wchar-subscripts]
     if(sum[calc[2][p]]>=0)search_3(p);
                      ^
foo.cc:67:31: warning: array subscript has type 'char' [-Wchar-subscripts]
                 sum[calc[2][p]]=i;
                               ^
foo.cc:70:31: warning: array subscript has type 'char' [-Wchar-subscripts]
                 sum[calc[2][p]]=-1;
                               ^
foo.cc: In function 'void search_1(int)':
foo.cc:84:22: warning: array subscript has type 'char' [-Wchar-subscripts]
     if(sum[calc[1][p]]>=0)search_2(p);
                      ^
foo.cc:92:31: warning: array subscript has type 'char' [-Wchar-subscripts]
                 sum[calc[1][p]]=i;
                               ^
foo.cc:95:31: warning: array subscript has type 'char' [-Wchar-subscripts]
                 sum[calc[1][p]]=-1;
                               ^

自豪的采用jd5进行评测(github.com/masnn/jd5)
# 状态 耗时 内存占用
#1 Accepted 4ms 304.0 KiB
#2 Accepted 3ms 268.0 KiB
#3 Accepted 3ms 252.0 KiB
#4 Accepted 3ms 300.0 KiB
#5 Accepted 3ms 260.0 KiB
#6 Accepted 7ms 300.0 KiB
#7 Accepted 19ms 300.0 KiB
#8 Accepted 90ms 300.0 KiB
#9 Accepted 4ms 256.0 KiB
#10 Accepted 195ms 304.0 KiB

信息

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