/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int Check()':
/in/foo.cc:27:12: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(res[a1]!=-1 && res[b1]!=-1 && res[c1]!=-1)//3¸öÊý¶¼ÖªµÀ-----3¸öµã
            ^
/in/foo.cc:27:27: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(res[a1]!=-1 && res[b1]!=-1 && res[c1]!=-1)//3¸öÊý¶¼ÖªµÀ-----3¸öµã
                           ^
/in/foo.cc:27:42: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(res[a1]!=-1 && res[b1]!=-1 && res[c1]!=-1)//3¸öÊý¶¼ÖªµÀ-----3¸öµã
                                          ^
/in/foo.cc:29:15: warning: array subscript has type 'char' [-Wchar-subscripts]
    if( (res[a1]+res[b1])%n!=res[c1] &&//ÎÞ½øλ
               ^
/in/foo.cc:29:23: warning: array subscript has type 'char' [-Wchar-subscripts]
    if( (res[a1]+res[b1])%n!=res[c1] &&//ÎÞ½øλ
                       ^
/in/foo.cc:29:35: warning: array subscript has type 'char' [-Wchar-subscripts]
    if( (res[a1]+res[b1])%n!=res[c1] &&//ÎÞ½øλ
                                   ^
/in/foo.cc:30:12: warning: array subscript has type 'char' [-Wchar-subscripts]
     (res[a1]+res[b1]+1)%n!=res[c1])//Óнøλ
            ^
/in/foo.cc:30:20: warning: array subscript has type 'char' [-Wchar-subscripts]
     (res[a1]+res[b1]+1)%n!=res[c1])//Óнøλ
                    ^
/in/foo.cc:30:34: warning: array subscript has type 'char' [-Wchar-subscripts]
     (res[a1]+res[b1]+1)%n!=res[c1])//Óнøλ
                                  ^
/in/foo.cc:34:12: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(res[a1]!=-1 && res[b1]!=-1 && res[c1]==-1)//Èç¹ûÖ»ÖªµÀÆäÖÐ2¸ö
            ^
/in/foo.cc:34:27: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(res[a1]!=-1 && res[b1]!=-1 && res[c1]==-1)//Èç¹ûÖ»ÖªµÀÆäÖÐ2¸ö
                           ^
/in/foo.cc:34:42: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(res[a1]!=-1 && res[b1]!=-1 && res[c1]==-1)//Èç¹ûÖ»ÖªµÀÆäÖÐ2¸ö
                                          ^
/in/foo.cc:37:18: warning: array subscript has type 'char' [-Wchar-subscripts]
    sum1 = (res[a1]+res[b1])%n;
                  ^
/in/foo.cc:37:26: warning: array subscript has type 'char' [-Wchar-subscripts]
    sum1 = (res[a1]+res[b1])%n;
                          ^
/in/foo.cc:38:18: warning: array subscript has type 'char' [-Wchar-subscripts]
    sum2 = (res[a1]+res[b1]+1)%n;
                  ^
/in/foo.cc:38:26: warning: array subscript has type 'char' [-Wchar-subscripts]
    sum2 = (res[a1]+res[b1]+1)%n;
                          ^
/in/foo.cc:42:13: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (res[a1]!=-1 && res[b1]==-1 && res[c1]!=-1)//ºÍÓëÒ»¸ö¼ÓÊýÖªµÀ
             ^
/in/foo.cc:42:28: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (res[a1]!=-1 && res[b1]==-1 && res[c1]!=-1)//ºÍÓëÒ»¸ö¼ÓÊýÖªµÀ
                            ^
/in/foo.cc:42:43: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (res[a1]!=-1 && res[b1]==-1 && res[c1]!=-1)//ºÍÓëÒ»¸ö¼ÓÊýÖªµÀ
                                           ^
/in/foo.cc:45:17: warning: array subscript has type 'char' [-Wchar-subscripts]
    js1 = (res[c1]-res[a1]+n)%n;
                 ^
/in/foo.cc:45:25: warning: array subscript has type 'char' [-Wchar-subscripts]
    js1 = (res[c1]-res[a1]+n)%n;
                         ^
/in/foo.cc:46:17: warning: array subscript has type 'char' [-Wchar-subscripts]
    js2 = (res[c1]-res[a1]-1+n)%n;
                 ^
/in/foo.cc:46:25: warning: array subscript has type 'char' [-Wchar-subscripts]
    js2 = (res[c1]-res[a1]-1+n)%n;
                         ^
/in/foo.cc:50:13: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (res[a1]==-1 && res[b1]!=-1 && res[c1]!=-1)//ºÍÓëÒ»¸ö¼ÓÊýÖªµÀ
             ^
/in/foo.cc:50:28: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (res[a1]==-1 && res[b1]!=-1 && res[c1]!=-1)//ºÍÓëÒ»¸ö¼ÓÊýÖªµÀ
                            ^
/in/foo.cc:50:43: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (res[a1]==-1 && res[b1]!=-1 && res[c1]!=-1)//ºÍÓëÒ»¸ö¼ÓÊýÖªµÀ
                                           ^
/in/foo.cc:53:17: warning: array subscript has type 'char' [-Wchar-subscripts]
    js1 = (res[c1]-res[b1]+n)%n;
                 ^
/in/foo.cc:53:25: warning: array subscript has type 'char' [-Wchar-subscripts]
    js1 = (res[c1]-res[b1]+n)%n;
                         ^
/in/foo.cc:54:17: warning: array subscript has type 'char' [-Wchar-subscripts]
    js2 = (res[c1]-res[b1]-1+n)%n;
                 ^
/in/foo.cc:54: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:90:18: warning: array subscript has type 'char' [-Wchar-subscripts]
   jiahe = (res[a1]+res[b1]+jinwei)%n;//¼ÆËãºÍ
                  ^
/in/foo.cc:90:26: warning: array subscript has type 'char' [-Wchar-subscripts]
   jiahe = (res[a1]+res[b1]+jinwei)%n;//¼ÆËãºÍ
                          ^
/in/foo.cc:91:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   jinwei =( res[a1]+res[b1]+jinwei)/n;//¼ÆËã½øλ
                   ^
/in/foo.cc:91:27: warning: array subscript has type 'char' [-Wchar-subscripts]
   jinwei =( res[a1]+res[b1]+jinwei)/n;//¼ÆËã½øλ
                           ^
/in/foo.cc:92: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:119:14: warning: array subscript has type 'char' [-Wchar-subscripts]
    res[pos[k]]=i;//µÚk¸ö×ÖĸȡÊý×Öi
              ^
/in/foo.cc:122:14: warning: array subscript has type 'char' [-Wchar-subscripts]
    res[pos[k]]=-1;//µÚk¸ö×ÖĸÊÍ·Å
              ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:140:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (!usedZiMu[a1]) ///´ÓÉÏÍùÏÂ
                   ^
/in/foo.cc:142:15: warning: array subscript has type 'char' [-Wchar-subscripts]
    usedZiMu[a1]=1;
               ^
/in/foo.cc:145:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (!usedZiMu[b1]) 
                   ^
/in/foo.cc:147:15: warning: array subscript has type 'char' [-Wchar-subscripts]
    usedZiMu[b1]=1;
               ^
/in/foo.cc:150:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (!usedZiMu[c1]) 
                   ^
/in/foo.cc:152:15: warning: array subscript has type 'char' [-Wchar-subscripts]
    usedZiMu[c1]=1;
               ^
# 状态 耗时 内存占用
#1 Accepted 2ms 356.0 KiB
#2 Accepted 2ms 360.0 KiB
#3 Accepted 3ms 352.0 KiB
#4 Accepted 3ms 360.0 KiB
#5 Accepted 4ms 384.0 KiB
#6 Accepted 4ms 368.0 KiB
#7 Accepted 68ms 356.0 KiB
#8 Accepted 19ms 384.0 KiB
#9 Accepted 258ms 360.0 KiB
#10 Accepted 2ms 368.0 KiB

信息

递交者
类型
递交
题目
P1099 虫食算
语言
C++
递交时间
2018-09-28 00:43:54
评测时间
2018-09-28 00:43:54
评测机
分数
100
总耗时
370ms
峰值内存
384.0 KiB