QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#523068 | #7364. 回文 | 369Pai | 0 | 477ms | 195364kb | C++20 | 7.6kb | 2024-08-17 19:28:17 | 2024-08-17 19:28:17 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 1e6 + 10 , Q = 5e5 + 10 , T = 21 * N , C = 26;
int n , m , q , len[N] , id[N] , rt[Q] , ans[Q];
struct Query{int l , r , id;}qu[Q] , tmp[Q];
vector<int>pos[C];
string t; char s[N];
class fastIO{private:char ibuf[50007],*p1=ibuf,*p2=ibuf,obuf[50007],*p3=obuf,sta[50];bool file_end=false;char get(){return p1==p2&&(p2=(p1=ibuf)+fread(ibuf,1,50007,stdin),p1==p2)?(file_end=true),char(EOF):*p1++;}void put(const char x){p3-obuf<50007?*p3++=x:(fwrite(obuf,p3-obuf,1,stdout),p3=obuf,*p3++=x);}public:explicit operator bool(){return!file_end;}size_t flush(){size_t f=fwrite(obuf,p3-obuf,1,stdout);p3=obuf;*p3=0;return f;}fastIO&operator>>(char&t){for(t=get();!isgraph(t);t=get());return*this;}template<typename any>typename std::enable_if<std::is_same<any,char>::value,any>::type tpval(){char t;for(t=get();!isgraph(t);t=get());return t;}fastIO&operator>>(char*t){char c;for(c=get();!isgraph(c);c=get());for(;isgraph(c);c=get())*t=c,t++;*t=0;return*this;}fastIO&operator>>(std::string&t){t.clear();char c;for(c=get();!isgraph(c);c=get());for(;isgraph(c);c=get())t+=c;return*this;}template<typename any>typename std::enable_if<std::is_same<any,std::string>::value,any>::type tpval(){std::string t;char c;for(c=get();!isgraph(c);c=get());for(;isgraph(c);c=get())t+=c;return t;}template<typename any>typename std::enable_if<(std::is_signed<any>::value&&std::is_integral<any>::value&&!std::is_same<any,char>::value)||std::is_same<any,__int128_t>::value,fastIO>::type&operator>>(any&t){t=0;bool y=0;char c=get();for(;!isdigit(c);c=get())if(c==45)y=true;for(;isdigit(c);c=get())t=t*10+c-48;if(y==1)t=-t;return*this;}template<typename any>typename std::enable_if<(std::is_signed<any>::value&&std::is_integral<any>::value&&!std::is_same<any,char>::value)||std::is_same<any,__int128_t>::value,any>::type tpval(){any t=0;bool y=0;char c=get();for(;!isdigit(c);c=get())if(c==45)y=true;for(;isdigit(c);c=get())t=t*10+c-48;if(y==1)t=-t;return t;}template<typename any>typename std::enable_if<(std::is_unsigned<any>::value&&std::is_integral<any>::value&&!std::is_same<any,char>::value)||std::is_same<any,__uint128_t>::value,fastIO>::type&operator>>(any&t){t=0;char c=get();for(;!isdigit(c);c=get());for(;isdigit(c);c=get())t=t*10+c-48;return*this;}template<typename any>typename std::enable_if<(std::is_unsigned<any>::value&&std::is_integral<any>::value&&!std::is_same<any,char>::value)||std::is_same<any,__uint128_t>::value,any>::type tpval(){any t=0;char c=get();for(;!isdigit(c);c=get());for(;isdigit(c);c=get())t=t*10+c-48;return t;}template<typename any1,typename any2>fastIO&operator>>(std::pair<any1,any2>&t){return*this>>t.first>>t.second;}template<typename any1,typename any2>std::pair<any1,any2>tpval(){return std::pair<any1,any2>(tpval<any1>(),tpval<any2>());}template<typename any>fastIO&read(any&t){return*this>>t;}fastIO&read(char*t){char c;for(c=get();!isgraph(c);c=get());for(;isgraph(c);c=get())*t=c,t++;*t=0;return*this;}template<typename any,typename...args>fastIO&read(any&t1,args&...t2){return(*this>>t1).read(t2...);}fastIO&operator<<(const char t){put(t);return*this;}fastIO&operator<<(const char*t){for(;*t;t++)put(*t);return*this;}fastIO&operator<<(const std::string&t){for(const char it:t)put(it);return*this;}template<typename any>typename std::enable_if<(std::is_signed<any>::value&&std::is_integral<any>::value&&!std::is_same<any,char>::value)||std::is_same<any,__int128_t>::value,fastIO>::type&operator<<(any t){if(!t){put(48);return*this;}int len=0;if(t<0)t=-t,put(45);while(t)sta[len++]=char(t%10+48),t/=10;while(len--)put(sta[len]);return*this;}template<typename any>typename std::enable_if<(std::is_unsigned<any>::value&&std::is_integral<any>::value&&!std::is_same<any,char>::value)||std::is_same<any,__uint128_t>::value,fastIO>::type&operator<<(any t){if(!t){put(48);return*this;}int len=0;while(t)sta[len++]=char(t%10+48),t/=10;while(len--)put(sta[len]);return*this;}template<typename any1,typename any2>fastIO&operator<<(const std::pair<any1,any2>&t){return*this<<t.first<<' '<<t.second;}template<typename any>fastIO&write(const any&t){return*this<<t;}template<typename any,typename...args>fastIO&write(const any&t1,const args&...t2){return(*this<<t1).write(t2...);}~fastIO(){fwrite(obuf,p3-obuf,1,stdout);}}fio;
struct Segtree
{
int tot;
struct Node{int lc , rc;}tr[T];
#define lc(p) (tr[p].lc)
#define rc(p) (tr[p].rc)
int update(int s , int p , int l = 1 , int r = n)
{
int q = ++tot;
tr[q] = tr[p];
if(l == r)return q;
int mid = (l + r) >> 1;
if(s <= mid)lc(q) = update(s , lc(p) , l , mid);
else rc(q) = update(s , rc(p) , mid + 1 , r);
return q;
}
bool query(int s , int e , int p , int l = 1 , int r = n)
{
if(!p || (s <= l && r <= e))return p;
int mid = (l + r) >> 1;
if(s <= mid){if(query(s , e , lc(p) , l , mid))return 1;}
if(mid < e){if(query(s , e , rc(p) , mid + 1 , r))return 1;}
return 0;
}
}sgt;
void Calc(int l , int r , int ql , int qr)
{
if(l > r || ql > qr)return ;
// cerr << "Calc " << l << ',' << r << " " << ql << ',' << qr << "\n";
if(l == r)
{
for(int i = ql ; i <= qr ; i++)
{
auto [x , y , id] = qu[i];
ans[id] = l;
}
return ;
}
int mid = (l + r + 1) >> 1 , hd = ql , tl = qr;
// cerr << " mid = " << mid << "\n";
for(int i = ql ; i <= qr ; i++)
{
auto [x , y , id] = qu[i];
int L = x + mid - 1 , R = y - mid + 1;
// cerr << "\t(" << x << ',' << y << ' ' << id << "): [" << L << ',' << R << "]" << (L > R ? 0 : sgt.query(L , R , rt[mid])) << "\n";
if(L > R || !sgt.query(L , R , rt[mid]))
tmp[hd++] = qu[i];
else tmp[tl--] = qu[i];
}
for(int i = ql ; i <= qr ; i++)qu[i] = tmp[i];
Calc(l , mid - 1 , ql , hd - 1);
Calc(mid , r , tl + 1 , qr);
}
signed main()
{
fio >> t >> q; n = t.size();
if(count(t.begin() , t.end() , 'a') == n)
{
for(int i = 1 ; i <= q ; i++)
{
int l , r; fio >> l >> r;
fio << r - l + 1 << "\n";
}
return 0;
}
for(int i = 1 ; i <= n ; i++)
pos[t[i - 1] - 'a'].push_back(i);
for(int i = 1 ; i <= n * 2 ; i += 2)
s[i] = t[i / 2] , s[i + 1] = '#';
s[n = n * 2 + 1] = '#';
int L = n , R = 1;
for(int i = 1 ; i <= q ; i++)
{
int l , r; fio >> l >> r;
char ch = t[l - 1];
if(ch == t[r - 1])
{
vector<int>&vc = pos[ch - 'a'];
auto il = lower_bound(vc.begin() , vc.end() , l);
auto ir = upper_bound(vc.begin() , vc.end() , r);
if(ir - il == r - l + 1)
ans[i] = r - l + 1;
}
if(!ans[i])
{
qu[++m] = {l * 2 - 1 , r * 2 + 1 , i};
L = min(l * 2 - 1 , L);
R = max(R , r * 2 + 1);
}
}
if(m)
{
for(int i = 1 , l = 0 , r = 0 ; i <= n ; i++)
{
if(l <= i && i <= r)
len[i] = min(r - i , len[l + r - i]);
while(i - len[i] > 1 && i + len[i] < n && s[i - len[i] - 1] == s[i + len[i] + 1])
len[i]++;
if(i + len[i] > r)l = i - len[i] , r = i + len[i];
}
// for(int i = 1 ; i <= n ; i++)cerr << s[i];
// cerr << "\n";
// for(int i = 1 ; i <= n ; i++)cerr << len[i] << " \n"[i == n];
for(int i = 1 ; i <= R - L + 1 ; i++)id[i] = L + i - 1;
sort(id + 1 , id + (R - L + 1) + 1 , [&](int x , int y){return len[x] > len[y];});
int md = len[id[1]] + 1;
for(int i = md , j = 1 ; i >= 0 ; i--)
{
rt[i] = rt[i + 1];
for(; j <= R - L + 1 && len[id[j]] >= i ; j++)
rt[i] = sgt.update(id[j] , rt[i]);
// cerr << "d = " << i << ":";
// for(int j = 1 ; j <= n ; j++)cerr << sgt.query(j , j , rt[i]) << " \n"[j == n];
}
// auto t1 = chrono::steady_clock::now();
Calc(0 , md , 1 , m);
// auto t2 = chrono::steady_clock::now();
// cerr << (t2 - t1) / 1ms << "ms\n";
}
for(int i = 1 ; i <= q ; i++)
fio << ans[i] << "\n";
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Pretests
Final Tests
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 9832kb
input:
kmojliclywcyevunhgfnumdzvncnmzbkxjsrkzlyguvjwqmyamvwvidqvfcwnkoolupcrjhynrnlmncqwntqaqtnwqcnmlnrnyhjrcpulooknwcfvqdivwvmaymqwjvugylzkrsmlabbmjltopjasklgawfdbosdlmwahaygutogtvoenkxddmehwokwybkpireouiqqlsfbuqslxjlusnwkzgadxtagewjlchtcezugeguzecthcljwegatxdagzkwnsuljxlsqwlkpvoajknflirxpqcxmyhcgimr 293 ...
output:
101 75 83 63 3 2 101 3 3 3 41 3 1 41 3 25 2 1 63 47 3 63 33 1 101 83 3 41 13 63 63 5 2 2 3 1 3 1 1 3 2 63 25 17 15 101 2 33 63 71 101 49 39 2 101 101 3 73 1 63 3 33 87 1 2 63 101 2 3 3 63 3 63 65 63 3 101 63 41 3 3 5 73 9 1 27 63 39 29 17 1 3 3 2 3 101 1 101 1 5 3 63 1 1 33 77 101 89 31 43 101 17 59...
result:
wrong answer 11th lines differ - expected: '39', found: '41'
Test #2:
score: 0
Wrong Answer
time: 1ms
memory: 9956kb
input:
vesjaxxsumewkbahmdfohuzggavsskdplrjqgonwnvtqhqdvxwdvbbvdwxtostthmmzqckepyglcysblxcbcxlbsyclgylyqtthedcqvuoghiyfekmaycoiiumirusuzosmaijqpgrwgcnxtojzyxpnjzyzjnpxyzjotxncgwrgpqjiamsozusurimuiiocyamkefyihgouvpxqdkybihtpmfqfzlwzylmtpgzvzhcrygruvzztttbofobtttzzvurgyrchzvzgptmlyzwlzfqfmpthibykdqxpegpbglnzk...
output:
81 101 73 49 43 61 101 81 87 101 3 21 101 21 101 101 45 101 61 65 23 21 15 101 27 101 21 77 101 27 3 55 101 29 10 23 89 21 23 41 69 1 3 21 101 21 101 3 3 1 57 10 53 7 101 21 35 3 63 43 15 77 21 10 101 89 101 101 1 6 101 3 101 2 101 101 101 47 3 1 3 101 3 61 3 23 101 1 21 101 101 101 1 21 101 1 3 101...
result:
wrong answer 3rd lines differ - expected: '71', found: '73'
Test #3:
score: 0
Wrong Answer
time: 0ms
memory: 12716kb
input:
anuahqplebjsacgumhxqolpgrxqcqzlhxrdthilfysevwdukoaksysixdggqzfjifopilugpdlrihgriaedgcjljuzdyqnyplpovdlvsitjcizogkcjkipzwnbdugpkkcghcpcioksqbnvfeggpzdfcxddppanaqnjdrtczcurvgdhnhuuxmktusuykwqrpjgauznlzcgxahiumnbeendsvdoflmuqaylnmsxgfdelfljnvlkeftwsvqhrxpnyjfwohdomcrqcxhvfvksfkjaihqiksfwdlopmwyhagelhju...
output:
5 1272 594 117 5 5 1666 5 1666 956 1666 5 1438 1666 1666 4 544 258 928 1666 3 5 3 669 5 1666 3 796 1666 4 1666 5 1666 3 1272 1666 746 1272 1666 864 436 590 289 1666 764 578 4 1506 5 1272 1328 638 5 1666 1272 5 3 1666 1064 606 166 752 1272 5 4 1666 806 1666 5 1272 3 5 1666 3 1666 82 5 4 5 1272 298 16...
result:
wrong answer 40th lines differ - expected: '862', found: '864'
Test #4:
score: 0
Wrong Answer
time: 4ms
memory: 12116kb
input:
mfvckuykhckfuqmontrmfcfttxsqnaenocsvdxafpwkpftcwtqwgtsihvaquaudwebxmdijlcrenvivcwbwccmjyxmgmuhdkesgmkcbasghbbwlutayipathsvawcdkkmbdkdiurfsytgjasgsrebgtyjlclkycanipjqlpvxtusmetaxpkwvgilcqnspilinqanxofgxjwqzphraildqdewozyndxbekdknrvbdjgwwvulxfdaqpsziqmrtvlzcabcnouwilynyrbzktbfsfaepmyfjbwuuhvxihiyjicox...
output:
3 1193 698 130 859 3 698 903 5 1665 698 698 93 389 698 625 698 3 3 1665 4 3 1239 437 765 1665 76 539 1665 5 698 5 3 178 625 698 393 698 698 698 3 106 318 1033 653 625 713 1665 698 401 698 1305 1033 5 1097 3 1351 625 121 1393 698 3 625 5 196 698 698 698 321 625 3 423 698 3 698 698 747 1665 885 5 29 6...
result:
wrong answer 4th lines differ - expected: '128', found: '130'
Test #5:
score: 0
Wrong Answer
time: 4ms
memory: 13068kb
input:
piliegnejflgljiidtifmgpcwttkfqexweatzcfecoyuyzpyayapbnenfvjbimyuttkjimtuzpoyhfugdivlxyebblrvgkwowzftkjxjopepbcdkcrioyjjscqnvycmaicuijcdkzizgtyskrkgyflmfvtntfnuikjqyblajyhygopbgpmxruwkkkuqszuuxhorfzsyzgpnxcuifrlvieeeavsrrgthetamjemxekupmclxitasqoqrokhtvomrjlksomhagdxyarqqoqhzuiqlhinhizujhkziqnabxnguz...
output:
4 96 1667 3 1667 1 791 791 605 3 3 1409 96 3 4 1667 583 4 321 757 1667 1321 791 565 727 1667 791 903 1667 1223 791 182 1667 1667 1667 1565 5 291 96 179 121 3 1045 4 1249 847 1667 1667 1667 755 96 9 1667 182 291 97 182 791 205 96 182 265 1667 1667 529 291 1447 1667 1667 1667 1 1667 791 281 291 1667 7...
result:
wrong answer 9th lines differ - expected: '603', found: '605'
Test #6:
score: 0
Wrong Answer
time: 2ms
memory: 11084kb
input:
syucmgkigdlpevdxsshewqirqqcdljqjgaugkvzplmidhvwxeuhuzmzscczopnaviqlgnavpezpquyupilccvjsqfxjmpcsefwerqlgfitezkaffvdwlyhilzflbjecsikzvyecgpjkucqukkrauolgzffotznjxmbvcmsuzrwstehxgqzygfjfybzmyuoxvshelxlpzfxwalgxzlwvhsbaikzsgjkzvzjmlbhgubzcunksleqdgulmysfjashpwjymspmtoxiwaiimcbdqbbudlwbptrusyumtszzwbpmgg...
output:
495 495 3 7 741 741 1541 1541 495 741 1233 187 7 5 741 5 741 1223 741 551 495 1541 495 741 1541 1053 741 495 1231 741 495 1541 1081 691 1541 277 1261 4 385 4 495 4 495 741 4 807 7 1095 547 741 4 845 741 741 741 7 1405 7 5 453 7 7 495 741 741 371 4 7 399 741 741 283 495 495 3 1541 4 3 4 741 577 4 3 1...
result:
wrong answer 11th lines differ - expected: '1231', found: '1233'
Test #7:
score: 0
Wrong Answer
time: 18ms
memory: 25220kb
input:
acfojkhxkvgskemxswoddjrxylgurlpfkpkhssmaqavonpjkhozprsffoslcluvabbpmynaucitshgbfrhilbxuyvdeilculqepksnsosdruqnzkrismdmpypuwigcwmlrynryysiazxaikbsvsxhwobtxuriupwxfmotimszqrfqqcfcukzmghijkeibpndndbodgzpuzqyznrjpzykhzmgrcxhexbsjmanfybqvojzbwpyttmrneejcpdncuzcjdmgxevqmbltpkotcywnfglumjpldxytuaahbgdcnges...
output:
5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 5771 ...
result:
wrong answer 1st lines differ - expected: '5769', found: '5771'
Test #8:
score: 0
Wrong Answer
time: 34ms
memory: 28408kb
input:
aaxvxlcltrlilgqvklenrxdcqzouiizataquwymdxtkzyenpdefayzmwugrysrxpwznxpesvcglwqokoajclkeiadelfupalmwhpceexzuzethlcuidgwekhrzvacntvtfmlqptdszlphlewmmwzwcdmjwpefntdlcdrrhejjhakjpkglpbyooqkdhkzrswpmlseuqobyzrquhtdqlbfegkolncwaqoyxrmelvysykpsschwcghzecwneoklalscjqgxoqilbisabofjebktbbzomfupjqcupolpowbtazlq...
output:
3297 12041 5 7 11679 1437 12041 5 87 14909 141 5 9 12041 15141 1159 5 12041 14913 12743 16665 7 16665 12041 5 3 7 5403 7 16665 16665 12041 8961 12041 5 5 11759 12041 7313 16665 12041 16665 4495 2954 11105 16665 7857 8511 12041 2954 1351 14139 2954 12041 16665 5 6633 4971 13329 7 2954 16475 5 16665 1...
result:
wrong answer 5th lines differ - expected: '11677', found: '11679'
Test #9:
score: 0
Wrong Answer
time: 34ms
memory: 28016kb
input:
bydjourdrgeaxhanforissxtcbtoqpcslsmsuipplgpyitlspqplflboqptqnahqwzchrjhifexlgnmbsehwkwjzojfwvhmmuatwkozdvqwxcorhmhirdgzkztmzegneseslmxuuoifnakuwsycrcgkzpnspyvvfrcbutiknycrvsqgglsvritrrmilxhhrtclxzslysblwsimexxkodgizphdapogypdudlssdispudgxhnfidsyivbvgamsujzzelovuilauyzmstgpgqipmhnbqskffrjjfnzhotbnlzk...
output:
10655 5 9093 6 16665 7 9295 12693 6 6 16665 16665 6 5009 2040 753 12693 12693 2189 7343 6 16665 8431 12693 3687 7 12693 16665 7471 7 7 9289 12693 12693 4786 4786 12693 16665 4786 16665 3185 16665 10381 6 4786 12693 12279 2477 7 5 12693 3925 12693 6 4786 887 5427 5 6 16665 12693 11703 4681 4786 16665...
result:
wrong answer 3rd lines differ - expected: '9091', found: '9093'
Test #10:
score: 0
Wrong Answer
time: 23ms
memory: 30108kb
input:
hsfcfbhlqerzkkwsyslalaslnahwpqqhkflavreluedfhcprzyfaipqyzaupdypfannefsdhimxnxoxbaqfktuqcgkjhskocyzeyyvbimybpixxgygccyqjcysqsylrhqrblfqrvheoolimkvqejywdjeuzbhhqdafuybfkarmacprqkqadbrfsrehhthtginqqhwdukdzjfrtgyepxmrnpmrokehpzxtnbigekjlvwkeofqrayiodxshtdbiisdyrboacqktisjtdkfuzmuzrmhgdqewukdcufjrqtskxjk...
output:
10616 8341 978 13844 6132 152 978 978 7182 7 9922 8063 5 152 12438 7 11894 5 978 152 5510 6386 5 7173 16664 5 1356 978 5 16664 13082 978 7869 6078 5 5 5 16664 152 11518 5 11356 16664 7 5 14120 13922 2550 2265 5 3865 978 8341 14294 7 1145 4 5 6340 8341 4 5 13622 5 16664 8341 152 16664 3186 978 5 5 11...
result:
wrong answer 5th lines differ - expected: '6130', found: '6132'
Test #11:
score: 0
Wrong Answer
time: 35ms
memory: 25272kb
input:
uqgylihdxuhtoedyzgzsnwjfaxxdrbadecbkxhbwvzztggrcvorlbgdobvnlswamdnehzepqdqeajrhfwkavapzqvbivztnsqtqnjxjejpgokdyyfxrsuxblzpftwbdkxvrczcerpjadlkqxieyslegpwgwuvzixavdbbtzcvuvnyjpjqvzfzcdnypukljhlspedodczoamlqokdljxdwtonfavmwxemmwicpfbcxfriiqymwizfjghzskzsxyzpluyjwvwyjjzjdddhoflaizakyjzmjmucfxrowqmiiiqp...
output:
5370 6 6 3 10494 14090 3 5 9804 2462 5 17758 5 17758 17758 17758 6686 12532 17758 16620 5 5 13894 302 5 17758 17758 17758 12582 15748 6686 5 1634 17758 1264 12772 5 5 5 978 17758 4 5 17758 492 12486 17758 5 7248 5 5 17758 5 5 1786 5 5 5 2530 17758 5 2058 5726 390 5 840 17758 6686 5 5 5 17758 17758 1...
result:
wrong answer 18th lines differ - expected: '12530', found: '12532'
Test #12:
score: 0
Wrong Answer
time: 30ms
memory: 26580kb
input:
senpfhuxjnjduvkehgshpecrhtmrsjqaeosajatkkrtdwodqmsfmvoxyipcqjddyxbrroqpkhujinzclqudwqhehxvbpsdqnxzhkjoipcqkqddetmordwjpsuqzoerllzmzbwuorrbmwbzjoycmpeyotbhcwdxygeeqgxbwcqlrywyruatywmmvgckvaowvjpeegwhzarnabqopxpkbtrkhyqauthnzkdmmfdxxfawxygtuzmmbdzhxhstkgtjgzaprjstmssfpczmyyqryfxycoimzobpbihnnmsocfegkc...
output:
5 7 8596 12104 5 7 7 5 7 5 13534 7570 2650 5 5 22964 7 4 5 8624 7 5 11326 5 5 7 5 3644 16368 5 7 7634 15868 7 10216 5 7 7 7 7 7 11442 5 384 23390 5 22920 24996 5 7 6482 8238 11560 5 7 7 6 7 6444 7 6 7 5 7 4280 7 5 684 13156 5 3002 5 7 7 7 14064 5 5 5 5420 5 14088 2900 5 5 7 7114 5 19688 8098 5 5 192...
result:
wrong answer 12th lines differ - expected: '7568', found: '7570'
Test #13:
score: 0
Wrong Answer
time: 30ms
memory: 30444kb
input:
nwsiebavjnlnjifvaylnhfzybafysczcmrzplqehpgkavzaddjbltazcotufbdzxetxrwhshlxgoqdvbwrkeqkhsbujudbcjhahwkbluvnvdvdxnwocvdkjilwcziqdivzvdlbfwzdenmqlienvoqveubtdoszndqutfsguooniomoyblyxteyhpwommzvnumpwmzqafvfgmnokjwwnkdofoikamvlrxrfkvmrxmsrknmojvaumkrsrlgnpriipbnsbqvglegyhjdefpjngwtbknuivlyftjlsxgffnsjvib...
output:
5 2502 5830 2502 10753 2502 10753 759 9947 3992 2502 2502 4987 2502 10753 3723 10753 3491 759 7 10753 5 5830 5830 7 5 5830 7517 7 5830 2502 5 2430 10753 10753 10753 2502 10753 10753 2502 835 7299 5 6371 2502 5 10753 10753 5 2 5830 5 10753 6891 10753 5 7 5830 10753 10753 5481 5 2502 3016 8619 2502 25...
result:
wrong answer 10th lines differ - expected: '3990', found: '3992'
Test #14:
score: 0
Wrong Answer
time: 30ms
memory: 30512kb
input:
uoqxubtwiuvrweemnisntsggdzuataqgegovblspuctnszgscxridxjlgibfbtdetqrhkfzzvbkbufeisycazjudefsyvgraenfjynszhdjtzidepogsvltustouvnviyrdsncubobnlkruzcsxsabwayfldakyslzfprixpbgpzlfneokxjtnmgtwipkddbmmeahowhndbnuymxryrkgolobkenugcpyfcelqpnpwwphnufpjcxwjyxlcsutfogqlepvyfcjohvhqivjefwtkwubjgtlsabqnpdpixgnrvw...
output:
5 5 1762 5 5271 1431 104 6190 3087 3087 6146 5 3087 3087 3087 4423 3087 1615 5 5 5 4 5 3087 3087 6266 5271 5271 3087 5271 3259 104 5 104 1367 5 3087 3087 5 3087 7 3087 4404 2088 18 3087 3087 3087 5 5271 6124 5 5 5271 3087 3087 3087 5271 5 4 5271 5 5271 3087 3087 4669 4 3087 1741 4 104 2088 3723 3087...
result:
wrong answer 6th lines differ - expected: '1429', found: '1431'
Test #15:
score: 0
Wrong Answer
time: 395ms
memory: 194032kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaakkeiauuzvxheynhjstrlmdjuyadlukikotjzhqkfxlyabcfwkdyqkgsrkeqcpingbwuhlvlqcwrnotohwdcteumlrepoccfdfznrdltjbjkjzqkdiglyqxwbukxvlivpbhdtzdxsiaqyoqsykspneectkcrlupikmvnqqtbvicmjgwzonahfpytentjnwqunjlpalkwpcskwlqcarzzlktnklalcmplozonpmfpysuyqviwslsfhnzcbplzhyhs...
output:
6415 87365 63381 101787 32697 51103 112675 68004 32697 15241 112675 112675 113201 112675 32697 6 131991 112675 131991 131991 112675 81803 16620 112675 7923 32697 44197 9 23038 7 7 32292 68004 112675 68004 131991 131991 78277 131991 7 6 112675 53843 112675 112675 112675 32697 32697 89749 22391 131991...
result:
wrong answer 3rd lines differ - expected: '63379', found: '63381'
Test #16:
score: 0
Wrong Answer
time: 404ms
memory: 194132kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaytvhrajhtxhttnnlmeqimzzsjscccivbyritmiznnvgksdehrtmiwacnbixkxnjytuzimzssogvxaemlcpkdtimzfxqreghsbnsqpkwcfepbisgnmispquhyzeqapvpjdfjelclvezqsdjxndhuwxloghiljexxirocvfcpgrilpxspmzjkvhyifkptzguxohzyyjuxqahbblayluiktzmrsgrhthdypkigvjqngfuwkchfepqfvhyuyunfrhluvcdyhvbpktdfoyy...
output:
1180 166667 37263 91053 161107 60813 26966 166667 91053 134753 5 7 92133 7 25522 5887 91053 91053 91053 9451 1811 8 8 138551 91053 7 9451 26966 109627 8 8170 91053 26966 8 139411 91053 26966 112669 26977 95389 4483 12706 7 7 166667 91053 91053 141687 7 136179 9451 7 7 15758 240 19319 1180 46695 1666...
result:
wrong answer 3rd lines differ - expected: '37261', found: '37263'
Test #17:
score: 0
Wrong Answer
time: 437ms
memory: 194884kb
input:
aaaazkvsgnabokhungreeglngwrtynocgzehwlqgkiiiqdloxdezdcdbhriugyqfqhhaproemijuhymtacrerxmwdzzputjzucaygdskcwpvxdvuafnpfttarbksdowftsieylqlmpcvyrvhtdorechiduhgxkicaicbrcploefuuzmucorweejnscoepoijalirxzxrxbkksvuimwavmhxhhwndfkwocguaojzgtpxwtjmlrkbpbwvjtcilnyjjkmymvwaylhgmobosditopkpmmsawqlricifwcnwvxqac...
output:
7 108750 4 108750 25990 1744 45892 157572 102272 24334 29726 46692 84934 97702 69076 10620 24876 7 1744 7 88258 108750 8 12190 6 157572 65204 63344 20778 63342 81078 1744 33466 108750 9 118778 4650 8 8 133528 8 132560 66666 13254 108750 157572 7 137210 140694 117626 79790 77820 105380 97702 7 97702 ...
result:
wrong answer 5th lines differ - expected: '25988', found: '25990'
Test #18:
score: 0
Wrong Answer
time: 477ms
memory: 194496kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaebhhrvkfkvewwgcwzupqagltrbvbpsmrzhqqrzpphdatdovtqcskottjjaijncilycjoqvhjbvaorrczwefumogmkipliwrjgjcmcksniyjpowbzpezlmkkiivhadolbahzjlelwurmdhfktndmcqndtbimufcsilykijsbmlqrxlfkimnzghkxgtqgznzgcgmrkygvzbdizbraghkncugpszudehqyuhkywdzdbitixbamapwgzbzknwypluul...
output:
166667 166667 7 34771 7 166667 24821 76849 166667 46449 48105 108561 4533 86705 46255 149297 7 7 68287 27051 166667 44129 166667 6 112091 64755 166667 7 7 162111 44129 7 32989 146667 166667 5 7 7 142777 7 4533 47363 7 7 7 163333 161803 7 52177 166667 73871 119295 166667 7 35455 7 22301 7 30601 67519...
result:
wrong answer 4th lines differ - expected: '34769', found: '34771'
Test #19:
score: 0
Wrong Answer
time: 430ms
memory: 194160kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaalvgbspddxrtwkccxskalmiaahvuaaevjkzxskmumnesqsjfqlgkanmmdinkbiabnrmvocequrnicjqzdatwwdzpgyoumwymnsjnklvbjrswytpqejlgxcmoaqqvpihlghjrsyvcoxhvprkfusafjsdrgopnfufkoopyqetppxuciqcwjxldgtwcthdepfcxdvrrhxcxdmsjnukgpdgkknnwzwmtavzvynhsapujivwmjlsaybeuaftemhzpmuexavqmhvpfou...
output:
21967 106292 111780 8 132222 34382 30545 138939 30545 47965 61241 165947 63749 99510 13661 6 166667 30545 166667 6316 158617 7 151115 166667 132222 132222 7 96228 5 5 30545 132455 30978 132222 6 166667 28297 132541 86888 30545 8 7 46688 8 166667 30545 30545 113063 30545 166667 13697 7 7 132222 42148...
result:
wrong answer 2nd lines differ - expected: '106290', found: '106292'
Test #20:
score: 0
Wrong Answer
time: 405ms
memory: 195364kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaairvzomrstpfklvpyiboqxtnqbjazhstswwhmrdgbzsstvkrtencmmeqjfclkztnlsrrghcfrfrivxfrrpnwehishsneqljlmqwkugitnkuotmncikpvxzvgxcvdppekdbomsvqupgpjdcowzqfoxcivupvucxstsjlrlylvlzmqcxtqdwztpxmzetubgxllckejlkwjytrvdwmimdencuffcdifrllsoihxnbhoyy...
output:
7 5 7 133041 6061 55837 133041 55837 7 55837 61643 53009 5 30555 133041 133041 115561 133041 132639 7 133041 55837 44822 1541 133041 133041 1553 6 1541 64617 33703 5 4015 132121 6 133041 1541 44822 44822 36613 55837 133041 90093 133041 1541 1541 1541 9 2511 133041 133041 82999 6 133041 7 55837 5 133...
result:
wrong answer 11th lines differ - expected: '61641', found: '61643'