/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In instantiation of 'void SuffixArray<size>::sais(T, int*, int, bool*, int*, int*, int) [with T = char*; long unsigned int size = 200005ul]':
/in/foo.cc:72:9:   required from 'void SuffixArray<size>::init(T, int, int) [with T = char*; long unsigned int size = 200005ul]'
/in/foo.cc:87:26:   required from here
/in/foo.cc:46:31: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
             x=(~x&1 ? x>>1 : x-1>>1),sa[sz+x]=cnt-1;
                              ~^~
/in/foo.cc: In instantiation of 'void SuffixArray<size>::inducedSort(T, int*, int, int, int, bool*, int*, int*, int*) [with T = char*; long unsigned int size = 200005ul]':
/in/foo.cc:33:9:   required from 'void SuffixArray<size>::sais(T, int*, int, bool*, int*, int*, int) [with T = char*; long unsigned int size = 200005ul]'
/in/foo.cc:72:9:   required from 'void SuffixArray<size>::init(T, int, int) [with T = char*; long unsigned int size = 200005ul]'
/in/foo.cc:87:26:   required from here
/in/foo.cc:14:39: warning: array subscript has type 'char' [-Wchar-subscripts]
         for (int i=0;i<len;i++) bucket[s[i]]++;
                                 ~~~~~~^
/in/foo.cc:17:46: warning: array subscript has type 'char' [-Wchar-subscripts]
         for (int i=sz-1;i>=0;i--) sa[--cntbuf[s[p[i]]]]=p[i];
                                        ~~~~~~^
/in/foo.cc:20:51: warning: array subscript has type 'char' [-Wchar-subscripts]
             if (sa[i]>0&&!type[sa[i]-1]) sa[cntbuf[s[sa[i]-1]]++]=sa[i]-1;
                                             ~~~~~~^
/in/foo.cc:24:52: warning: array subscript has type 'char' [-Wchar-subscripts]
             if (sa[i]>0&&type[sa[i]-1]) sa[--cntbuf[s[sa[i]-1]]]=sa[i]-1;
                                              ~~~~~~^
/in/foo.cc: In instantiation of 'void SuffixArray<size>::sais(T, int*, int, bool*, int*, int*, int) [with T = int*; long unsigned int size = 200005ul]':
/in/foo.cc:52:13:   required from 'void SuffixArray<size>::sais(T, int*, int, bool*, int*, int*, int) [with T = char*; long unsigned int size = 200005ul]'
/in/foo.cc:72:9:   required from 'void SuffixArray<size>::init(T, int, int) [with T = char*; long unsigned int size = 200005ul]'
/in/foo.cc:87:26:   required from here
/in/foo.cc:46:31: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
             x=(~x&1 ? x>>1 : x-1>>1),sa[sz+x]=cnt-1;
                              ~^~
# 状态 耗时 内存占用
#1 Accepted 7ms 2.336 MiB
#2 Accepted 5ms 2.367 MiB
#3 Accepted 4ms 2.344 MiB
#4 Accepted 8ms 4.25 MiB
#5 Accepted 3ms 2.352 MiB
#6 Accepted 3ms 2.344 MiB
#7 Accepted 2ms 2.355 MiB
#8 Accepted 3ms 4.371 MiB
#9 Accepted 3ms 2.375 MiB
#10 Accepted 2ms 2.375 MiB
#11 Accepted 3ms 2.355 MiB
#12 Accepted 4ms 2.348 MiB
#13 Accepted 5ms 2.25 MiB
#14 Wrong Answer 24ms 4.375 MiB
#15 Wrong Answer 15ms 3.375 MiB
#16 Wrong Answer 29ms 4.082 MiB
#17 Wrong Answer 27ms 4.66 MiB
#18 Wrong Answer 31ms 4.461 MiB
#19 Wrong Answer 25ms 4.125 MiB
#20 Wrong Answer 42ms 4.5 MiB

信息

递交者
类型
递交
题目
P1567 子串计数
语言
C++
递交时间
2018-04-25 10:22:32
评测时间
2018-04-25 10:22:32
评测机
分数
65
总耗时
253ms
峰值内存
4.66 MiB