QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#725271 | #2716. Interval Collection | SimonLJK | 0 | 1326ms | 224268kb | C++17 | 1.5kb | 2024-11-08 16:56:08 | 2024-11-08 16:56:09 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
const int N=(1<<20)+99,inf=1e6;
multiset<int> lp,rp,msl[N],msr[N];
multiset<int>::iterator it;
#define ln node<<1
#define rn node<<1|1
#define mid (l+r>>1)
struct tree{
int ans;
int lmn,rmx;
}tr[N<<1];
int id[N];
void pushup(int node){
tr[node].ans=min(min(tr[ln].ans,tr[rn].ans),tr[rn].lmn-tr[ln].rmx);
tr[node].lmn=min(tr[ln].lmn,tr[rn].lmn);
tr[node].rmx=max(tr[ln].rmx,tr[rn].rmx);
return;
}
void build(int node,int l,int r){
tr[node]=(tree){inf,inf,-inf};
if(l==r){ id[l]=node; return; }
build(ln,l,mid); build(rn,mid+1,r);
return;
}
void upd(int tar){
int node=id[tar];
if(msl[tar].empty()) tr[node].lmn=inf;
else tr[node].lmn=*msl[tar].begin();
if(msr[tar].empty()) tr[node].rmx=-inf;
else{ it=msr[tar].end(); it--; tr[node].rmx=*it; }
tr[node].ans=tr[node].lmn-tr[node].rmx;
node>>=1;
while(node){
pushup(node);
node>>=1;
}
return;
}
char ch;
int l,r,ansl,ansr;
void solve(){
cin>>ch>>l>>r;
if(ch=='A'){
lp.insert(l); rp.insert(r);
msl[l].insert(r); msr[r].insert(l);
}
else{
lp.erase(lp.find(l)); rp.erase(rp.find(r));
msl[l].erase(msl[l].find(r)); msr[r].erase(msr[r].find(l));
}
upd(l); upd(r);
it=lp.end(); it--; ansl=*it;
it=rp.begin(); ansr=*it;
if(ansl>ansr) cout<<tr[1].ans<<'\n';
else{
it=msr[ansr].end(); it--;
cout<<*msl[ansl].begin()-(*it)<<'\n';
}
return;
}
int main(){
std::ios::sync_with_stdio(false);
cin.tie(0);
build(1,1,inf);
int T; cin>>T;
while(T--) solve();
return 0;
}
詳細信息
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 0
Wrong Answer
time: 19ms
memory: 130488kb
input:
500 A 85614 618681 A 96881 534557 A 371656 884110 A 55265 991070 A 135033 917439 A 467668 648254 A 810282 995373 A 578086 947503 A 63927 975158 A 142141 348881 A 372691 541176 A 409911 918917 A 594071 750141 A 26557 936338 A 194871 545990 A 584676 799137 A 153204 901288 A 22939 601013 A 102411 75491...
output:
533067 437676 787229 787229 787229 551373 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718 189718...
result:
wrong answer 7th lines differ - expected: '527705', found: '189718'
Subtask #2:
score: 0
Wrong Answer
Test #61:
score: 8
Accepted
time: 15ms
memory: 130376kb
input:
6 A 1 4 A 3 6 A 7 9 A 8 13 A 10 11 A 12 20
output:
3 5 6 6 4 4
result:
ok 6 lines
Test #62:
score: 8
Accepted
time: 19ms
memory: 130504kb
input:
3 A 1 9 A 6 15 A 5 10
output:
8 14 14
result:
ok 3 lines
Test #63:
score: 8
Accepted
time: 23ms
memory: 130444kb
input:
1 A 1 1000000
output:
999999
result:
ok single line: '999999'
Test #64:
score: 0
Wrong Answer
time: 35ms
memory: 131480kb
input:
12000 A 174045 346671 A 58746 969907 A 52277 860980 A 51687 822337 A 320881 593470 A 22653 724673 A 347122 956041 A 514874 780251 A 155146 643918 A 116754 682718 A 374599 823274 A 373533 892185 A 63743 897550 A 224312 990829 A 423470 808028 A 212113 622665 A 263437 824930 A 416679 820773 A 515191 97...
output:
172626 172626 172626 172626 419425 419425 652878 485126 485126 485126 485126 485126 485126 485126 485126 485126 485126 485126 484809 484809 484809 484809 484809 484809 484809 484809 484809 484809 484809 484809 484809 484809 484809 484809 484809 484809 484809 484809 484809 484809 484809 484809 484138...
result:
wrong answer 7th lines differ - expected: '781996', found: '652878'
Subtask #3:
score: 0
Wrong Answer
Test #133:
score: 0
Wrong Answer
time: 87ms
memory: 135116kb
input:
50000 A 407618 981209 A 14832 978274 A 21496 974294 A 159141 441444 A 103094 770273 A 133173 804558 A 243940 901651 A 590784 872146 A 158069 795070 A 114024 817376 A 7306 972394 A 156995 964178 A 126045 964369 A 23896 862655 A 405378 416054 A 634234 672082 A 369490 983098 A 83772 519426 A 699410 854...
output:
573591 966377 959713 822068 822068 822068 822068 409216 409216 409216 409216 409216 409216 409216 409216 266704 266704 266704 220208 220208 220208 220208 220208 220208 220208 122952 122952 122952 122952 122952 122952 122952 122952 122952 122952 122952 122952 122952 122952 122952 122952 122952 122952...
result:
wrong answer 8th lines differ - expected: '713005', found: '409216'
Subtask #4:
score: 0
Wrong Answer
Test #193:
score: 4
Accepted
time: 181ms
memory: 167952kb
input:
200000 A 1 7 A 8 14 A 15 21 A 22 28 A 29 35 A 36 42 A 43 49 A 50 56 A 57 63 A 64 70 A 71 77 A 78 84 A 85 91 A 92 98 A 99 105 A 106 112 A 113 119 A 120 126 A 127 133 A 134 140 A 141 147 A 148 154 A 155 161 A 162 168 A 169 175 A 176 182 A 183 189 A 190 196 A 197 203 A 204 210 A 211 217 A 218 224 A 225...
output:
6 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 1...
result:
ok 200000 lines
Test #194:
score: 4
Accepted
time: 169ms
memory: 167920kb
input:
200000 A 900009 900010 A 900007 900008 A 900005 900006 A 900003 900004 A 900001 900002 A 899999 900000 A 899997 899998 A 899995 899996 A 899993 899994 A 899991 899992 A 899989 899990 A 899987 899988 A 899985 899986 A 899983 899984 A 899981 899982 A 899979 899980 A 899977 899978 A 899975 899976 A 899...
output:
1 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
result:
ok 200000 lines
Test #195:
score: 4
Accepted
time: 352ms
memory: 205388kb
input:
400000 A 1 2 A 3 4 A 5 6 A 7 8 A 9 10 A 11 12 A 13 14 A 15 16 A 17 18 A 19 20 A 21 22 A 23 24 A 25 26 A 27 28 A 29 30 A 31 32 A 33 34 A 35 36 A 37 38 A 39 40 A 41 42 A 43 44 A 45 46 A 47 48 A 49 50 A 51 52 A 53 54 A 55 56 A 57 58 A 59 60 A 61 62 A 63 64 A 65 66 A 67 68 A 69 70 A 71 72 A 73 74 A 75 7...
output:
1 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
result:
ok 400000 lines
Test #196:
score: 4
Accepted
time: 321ms
memory: 205420kb
input:
400000 A 799999 800000 A 799997 799998 A 799995 799996 A 799993 799994 A 799991 799992 A 799989 799990 A 799987 799988 A 799985 799986 A 799983 799984 A 799981 799982 A 799979 799980 A 799977 799978 A 799975 799976 A 799973 799974 A 799971 799972 A 799969 799970 A 799967 799968 A 799965 799966 A 799...
output:
1 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
result:
ok 400000 lines
Test #197:
score: 4
Accepted
time: 424ms
memory: 224268kb
input:
499999 A 1 2 A 3 4 A 5 6 A 7 8 A 9 10 A 11 12 A 13 14 A 15 16 A 17 18 A 19 20 A 21 22 A 23 24 A 25 26 A 27 28 A 29 30 A 31 32 A 33 34 A 35 36 A 37 38 A 39 40 A 41 42 A 43 44 A 45 46 A 47 48 A 49 50 A 51 52 A 53 54 A 55 56 A 57 58 A 59 60 A 61 62 A 63 64 A 65 66 A 67 68 A 69 70 A 71 72 A 73 74 A 75 7...
output:
1 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
result:
ok 499999 lines
Test #198:
score: 4
Accepted
time: 413ms
memory: 224204kb
input:
499999 A 999997 999998 A 999995 999996 A 999993 999994 A 999991 999992 A 999989 999990 A 999987 999988 A 999985 999986 A 999983 999984 A 999981 999982 A 999979 999980 A 999977 999978 A 999975 999976 A 999973 999974 A 999971 999972 A 999969 999970 A 999967 999968 A 999965 999966 A 999963 999964 A 999...
output:
1 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
result:
ok 499999 lines
Test #199:
score: 4
Accepted
time: 432ms
memory: 133256kb
input:
500000 A 50 911 A 990 1785 A 1860 2691 A 7 29 A 34 44 A 45 46 A 2865 3234 A 1803 1842 A 47 48 A 1846 1856 A 1787 1802 A 1857 1859 A 931 982 A 1844 1845 A 2719 2824 A 30 33 A 2 4 A 2849 2855 A 2862 2864 A 5 6 A 920 925 A 983 988 A 2693 2718 A 927 930 A 915 916 A 918 919 A 912 914 A 2856 2859 A 2828 2...
output:
861 1735 1701 904 37 12 12 12 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
result:
ok 500000 lines
Test #200:
score: 4
Accepted
time: 280ms
memory: 131428kb
input:
500000 A 4 16 A 2 3 A 23 29 A 34 41 A 18 22 A 31 33 A 42 56 R 42 56 R 2 3 A 47 54 A 45 46 A 2 3 R 23 29 A 24 29 A 42 44 A 57 66 A 67 81 R 67 81 R 31 33 A 55 56 R 24 29 A 73 75 A 77 89 A 97 104 A 90 94 A 114 118 A 121 128 A 67 70 A 71 72 A 107 108 A 30 33 A 130 133 A 119 120 A 95 96 A 144 146 A 138 1...
output:
12 14 14 14 11 10 10 10 10 10 9 9 9 9 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
result:
ok 500000 lines
Test #201:
score: 4
Accepted
time: 263ms
memory: 131108kb
input:
500000 A 8 9 A 14 16 A 2 7 A 19 23 A 10 12 A 25 29 A 30 37 A 17 18 R 8 9 A 8 9 A 38 39 A 40 42 A 46 50 A 51 53 A 44 45 A 55 59 A 60 67 R 51 53 A 52 53 R 25 29 A 68 73 R 8 9 R 55 59 A 8 9 A 76 80 A 74 75 A 24 29 A 54 59 A 82 83 A 87 90 R 60 67 A 60 67 A 85 86 R 30 37 A 91 95 A 102 103 R 8 9 A 104 109...
output:
1 8 7 7 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 3 3 3 3 4 4 4 4 4 4 4 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
result:
ok 500000 lines
Test #202:
score: 4
Accepted
time: 430ms
memory: 136516kb
input:
500000 A 34 953 A 8 33 A 1098 1791 A 3 5 A 2355 2766 A 954 1093 A 3352 3687 A 1094 1097 A 2073 2233 A 2261 2321 A 6 7 A 2890 3049 A 3054 3331 A 2836 2876 A 2886 2888 A 3340 3345 A 3782 4574 A 4741 5342 A 2339 2349 A 1845 2023 A 4617 4707 A 4580 4597 A 2235 2246 A 4602 4604 A 3346 3348 A 2350 2352 A ...
output:
919 945 945 30 30 30 30 30 30 30 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3...
result:
ok 500000 lines
Test #203:
score: 4
Accepted
time: 278ms
memory: 131336kb
input:
500000 A 2 12 A 13 18 A 20 33 A 35 36 A 47 48 A 55 60 A 49 54 A 42 46 A 70 73 A 76 88 A 40 41 A 65 66 A 67 69 A 74 75 A 38 39 A 94 98 A 99 100 A 89 91 R 65 66 A 104 105 A 92 93 A 62 64 R 13 18 A 13 19 A 101 103 A 65 66 R 49 54 A 49 50 R 74 75 A 53 54 A 107 109 A 110 112 A 51 52 A 74 75 A 117 127 A 1...
output:
10 16 16 16 13 13 7 6 6 6 6 6 4 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
result:
ok 500000 lines
Test #204:
score: 4
Accepted
time: 266ms
memory: 131152kb
input:
500000 A 2 9 A 11 14 A 17 19 A 15 16 A 21 27 A 29 30 A 31 36 A 38 39 A 40 43 A 45 47 A 51 55 A 56 58 A 59 65 A 49 50 R 59 65 R 11 14 A 10 14 A 59 66 A 68 74 A 77 81 A 86 87 A 75 76 R 68 74 A 67 68 A 82 85 R 21 27 A 20 25 A 88 95 A 26 28 A 102 103 A 106 108 A 111 116 A 118 124 A 104 105 A 96 100 A 10...
output:
7 12 8 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3...
result:
ok 500000 lines
Test #205:
score: 4
Accepted
time: 440ms
memory: 137948kb
input:
500000 A 15 316 A 756 986 A 3 8 A 10 14 A 339 668 A 318 323 A 1300 1724 A 1928 2004 A 2208 2663 A 2743 3604 A 1119 1238 A 3625 4526 A 3609 3624 A 1868 1897 A 4997 5311 A 713 725 A 676 693 A 1056 1108 A 1905 1922 A 737 752 A 1736 1867 A 2060 2203 A 2022 2026 A 754 755 A 324 333 A 727 735 A 1731 1734 ...
output:
301 971 313 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 8 8 8 8 4 4 4 4 4 4 4 4 4 4 4 4 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
result:
ok 500000 lines
Test #206:
score: 4
Accepted
time: 288ms
memory: 131516kb
input:
500000 A 2 16 A 22 26 A 18 21 A 35 37 A 39 48 A 50 58 A 63 72 A 76 82 A 86 87 A 90 102 A 27 32 A 104 115 A 120 124 A 84 85 A 125 130 A 73 75 A 88 89 A 33 34 R 125 130 A 59 62 R 18 21 A 129 138 A 117 119 A 127 128 R 120 124 A 17 18 A 121 124 A 142 149 A 125 126 A 155 157 R 76 82 A 19 21 A 150 152 A 1...
output:
14 24 8 8 8 8 8 8 8 8 8 8 8 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...
result:
ok 500000 lines
Test #207:
score: 4
Accepted
time: 269ms
memory: 131164kb
input:
500000 A 2 8 A 11 14 A 16 18 A 19 25 A 9 10 A 26 31 R 16 18 A 15 17 A 33 37 A 42 43 A 44 47 A 49 53 A 38 40 R 38 40 A 38 39 A 40 41 R 9 10 R 40 41 A 54 56 A 40 41 A 9 10 A 57 64 R 11 14 A 65 70 A 12 13 R 57 64 R 38 39 A 72 77 A 80 82 R 80 82 A 78 82 A 38 39 A 57 64 A 84 89 R 72 77 A 71 75 A 90 97 R ...
output:
6 12 7 7 5 5 5 5 5 5 5 5 5 5 5 3 3 5 5 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3...
result:
ok 500000 lines
Test #208:
score: 0
Wrong Answer
time: 263ms
memory: 130964kb
input:
499999 A 1 2 A 101 102 A 201 202 A 301 302 A 401 402 A 501 502 A 601 602 A 701 702 A 801 802 A 901 902 A 1001 1002 A 1101 1102 A 1201 1202 A 1301 1302 A 1401 1402 A 1501 1502 A 1601 1602 A 1701 1702 A 1801 1802 A 1901 1902 A 2001 2002 A 2101 2102 A 2201 2202 A 2301 2302 A 2401 2402 A 2501 2502 A 260...
output:
1 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 101 10...
result:
wrong answer 160028th lines differ - expected: '101', found: '99'
Subtask #5:
score: 0
Wrong Answer
Test #213:
score: 0
Wrong Answer
time: 1326ms
memory: 177260kb
input:
500000 A 177873 500336 A 457824 814681 A 841342 988692 A 419772 679383 A 932 397613 A 112565 840517 A 21558 993484 A 388360 943423 A 51953 706434 A 444776 874634 A 672973 719874 A 324528 972601 A 711851 858636 A 219651 966235 A 89897 472254 A 40578 919362 A 340868 944392 A 163582 585658 A 637082 954...
output:
322463 636808 158658 158658 158658 158658 158658 158658 158658 158658 158658 158658 158658 158658 158658 158658 158658 158658 158658 158658 158658 158658 158658 131305 131305 131305 131305 131305 131305 131305 131305 131305 131305 131305 131305 131305 131305 131305 131305 131305 131305 131305 131305...
result:
wrong answer 3rd lines differ - expected: '530868', found: '158658'