QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#282234 | #1173. Knowledge Is... | zhicheng | AC ✓ | 173ms | 23868kb | C++14 | 1013b | 2023-12-11 16:41:31 | 2023-12-11 16:41:32 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
const int N=300010;
int f[N],ff[N];
struct ss{
int l,r,id;
bool operator<(ss b){
return l<b.l;
}
}p[N];
multiset<pair<int,int> >s,t;
int main(){
int n,m,ans=0,cnt=0;
scanf("%d%d",&n,&m);
for(int i=1;i<=n;i++){
scanf("%d%d",&p[i].l,&p[i].r);
p[i].id=i;
}
sort(p+1,p+n+1);
for(int i=1;i<=n;i++){
auto pos=s.lower_bound(make_pair(p[i].l,0));
if(pos==s.begin()){
t.insert({p[i].r,i});
f[i]=f[t.begin()->second];
f[t.begin()->second]=0;
s.insert(*t.begin());
t.erase(t.begin());
}
else{
ans++;
pos--;
f[i]=pos->second;
s.erase(pos);
t.insert({p[i].r,i});
}
}
for(int i=1;i<=n;i++){
if(f[i]){
f[f[i]]=++cnt;
f[i]=cnt;
}
}
for(int i=1;i<=n;i++){
if(f[i]<=m){
ff[p[i].id]=f[i];
}
}
for(int i=1;i<=n;i++){
if(ff[i]){
printf("%d ",ff[i]);
}
else{
if(cnt+1>m){
printf("0 ");
continue;
}
printf("%d ",++cnt);
}
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 5956kb
input:
7 5 9 10 7 9 3 4 9 10 2 6 8 9 5 8
output:
2 4 1 3 3 1 2
result:
ok answer = 7
Test #2:
score: 0
Accepted
time: 1ms
memory: 5960kb
input:
2 2 1 2 3 4
output:
1 1
result:
ok answer = 2
Test #3:
score: 0
Accepted
time: 1ms
memory: 5880kb
input:
2 1 1 2 2 3
output:
1 0
result:
ok answer = 1
Test #4:
score: 0
Accepted
time: 1ms
memory: 5908kb
input:
1 1 4 26
output:
1
result:
ok answer = 1
Test #5:
score: 0
Accepted
time: 0ms
memory: 6032kb
input:
500 258 1 3 3 5 2 4 3 5 4 5 4 5 1 4 1 2 3 5 2 5 2 5 4 5 4 5 4 5 2 3 1 4 1 4 1 4 4 5 4 5 2 3 4 5 3 5 3 5 1 5 1 4 2 5 1 5 3 5 3 4 4 5 2 3 3 5 3 5 4 5 2 3 1 5 1 5 2 3 2 3 3 4 3 5 3 4 1 3 1 2 1 5 4 5 2 3 2 4 1 3 4 5 4 5 4 5 1 3 3 5 4 5 3 5 1 5 1 2 1 2 3 5 3 5 4 5 3 4 3 5 2 3 2 5 2 4 2 5 3 5 2 3 1 5 4 5 ...
output:
66 119 120 121 32 31 122 100 123 124 125 18 25 24 6 126 127 128 20 53 9 51 129 130 131 132 133 134 135 136 38 3 137 138 13 19 139 140 18 17 141 142 143 63 101 144 16 16 145 62 4 3 103 60 146 93 147 148 118 96 149 150 96 151 152 12 153 154 155 156 11 157 106 158 159 52 109 160 161 111 112 162 95 114 ...
result:
ok answer = 376
Test #6:
score: 0
Accepted
time: 1ms
memory: 5900kb
input:
500 242 8 9 9 10 2 9 8 10 9 10 6 10 4 8 4 5 2 6 7 10 3 8 1 8 1 6 5 9 7 8 8 10 8 9 8 10 2 9 2 3 6 8 3 10 5 9 1 3 6 8 4 10 9 10 8 9 8 10 1 9 3 9 3 7 2 3 6 10 3 6 6 10 3 4 3 6 9 10 5 7 8 10 6 10 5 6 5 7 7 8 1 3 4 7 9 10 4 9 2 4 8 9 1 3 8 10 3 4 9 10 4 9 5 10 8 9 1 3 1 5 8 10 3 4 8 9 3 9 3 6 3 10 6 7 7 ...
output:
136 170 230 122 172 50 216 32 80 94 220 231 89 232 169 126 131 160 233 64 198 4 22 26 202 9 207 115 125 234 235 133 63 48 73 46 11 74 210 120 107 41 93 122 181 61 129 214 236 14 159 10 124 163 203 237 11 164 8 47 163 25 156 238 72 2 113 167 239 222 79 98 240 93 134 226 201 219 141 241 170 172 229 21...
result:
ok answer = 471
Test #7:
score: 0
Accepted
time: 0ms
memory: 3944kb
input:
500 250 50 84 36 68 94 98 13 88 4 62 45 74 80 89 56 87 65 89 44 52 69 78 29 76 61 90 91 99 16 98 69 92 50 77 86 95 73 79 83 90 78 89 1 79 81 86 14 37 91 94 27 48 11 73 94 97 49 80 15 60 26 39 34 76 69 77 22 72 6 78 92 96 46 83 83 94 62 95 77 80 32 72 46 90 41 88 47 91 68 75 14 36 26 43 14 87 49 74 2...
output:
56 111 217 196 100 135 163 75 105 65 114 144 90 205 2 115 242 192 128 173 152 161 164 31 208 60 137 224 54 89 37 142 248 129 155 211 50 171 94 145 127 48 39 51 228 28 44 193 210 39 55 161 177 118 73 157 226 95 240 158 40 127 162 5 231 58 195 120 200 17 132 52 220 222 33 121 12 215 156 72 173 24 169 ...
result:
ok answer = 500
Test #8:
score: 0
Accepted
time: 1ms
memory: 5972kb
input:
500 250 614 964 380 709 272 969 626 788 156 927 270 842 448 984 184 224 602 953 249 887 665 904 212 300 715 787 557 948 906 977 117 824 504 567 848 884 817 824 462 930 768 816 890 940 193 784 653 897 973 974 21 64 515 700 361 595 670 1000 854 943 530 739 816 828 918 979 270 354 288 369 56 697 622 92...
output:
86 191 23 243 6 21 51 14 83 17 105 35 241 70 203 168 73 174 162 54 145 195 154 99 239 1 177 82 107 178 203 161 209 40 236 111 88 222 16 78 20 229 166 137 122 60 175 165 245 56 27 159 182 64 232 110 151 188 37 86 182 113 6 67 31 149 176 15 112 87 84 10 194 71 131 220 187 38 42 43 141 164 135 23 100 1...
result:
ok answer = 500
Test #9:
score: 0
Accepted
time: 0ms
memory: 5884kb
input:
500 250 7369 7544 7194 8983 8758 9759 1077 5486 8604 9375 9468 9854 9259 9276 6147 7585 2527 2818 1034 2634 1382 3694 1863 8040 5952 6207 685 3506 3618 9242 1204 3382 569 8063 6515 6861 6025 7856 2053 7457 961 3813 87 9321 2787 9389 4754 8473 6781 7817 7113 9489 6831 9207 5210 9788 7003 8417 9361 99...
output:
189 106 171 190 162 217 202 191 13 8 207 139 71 17 18 89 142 109 228 116 20 209 11 34 224 101 90 43 98 212 123 29 111 35 108 192 144 216 1 166 24 205 247 82 87 136 58 18 208 183 75 41 211 43 249 174 161 229 48 4 119 64 163 180 83 143 27 189 7 153 173 98 30 117 198 196 22 14 46 65 124 201 169 76 85 7...
result:
ok answer = 500
Test #10:
score: 0
Accepted
time: 1ms
memory: 5888kb
input:
500 250 94664 97792 42412 79567 78199 93246 1309 6050 21787 62661 32852 47312 72165 96025 22335 87724 98737 98949 32333 45109 98197 98696 66004 84303 64971 93765 48220 78217 75132 77121 3250 99214 76296 83179 18937 19783 24224 29268 76617 77302 64571 88215 56891 67172 32945 97861 75 35393 74113 9254...
output:
229 44 154 6 173 53 116 12 244 210 243 99 96 250 239 1 145 17 19 246 93 107 24 32 129 94 67 175 231 87 10 211 247 176 55 63 98 183 124 23 102 177 114 51 237 20 193 33 215 6 144 190 156 52 11 14 188 219 137 80 56 186 217 77 232 46 192 250 177 187 135 76 159 220 84 223 216 201 216 208 39 161 27 130 24...
result:
ok answer = 500
Test #11:
score: 0
Accepted
time: 1ms
memory: 3992kb
input:
500 250 249258 633953 692064 923461 236526 494453 63236 665418 813697 915066 231324 853677 850867 946695 354813 439441 555846 920488 978644 998640 280905 357712 300337 869138 111591 375301 754196 825433 681966 906746 566646 913535 958025 996696 122927 989918 162477 948024 464228 474279 735561 874801...
output:
79 96 105 158 140 169 168 244 64 242 31 22 33 122 89 66 235 4 7 56 114 39 41 127 157 183 123 150 247 58 33 93 72 101 112 13 145 171 121 71 227 181 121 172 90 141 61 182 238 186 120 133 70 194 77 174 227 83 81 99 222 51 131 53 35 179 226 57 211 114 214 87 63 108 125 84 82 24 127 14 52 57 103 19 100 2...
result:
ok answer = 500
Test #12:
score: 0
Accepted
time: 1ms
memory: 5844kb
input:
500 250 6592945 8873042 9610368 9920200 3224618 6472104 7312354 9075859 366928 6614625 7107690 8990826 4712035 4850963 8634845 9127832 7054047 9358572 9187658 9589004 6621468 7586829 7375455 9328669 2076424 5016969 8848028 9107864 6625184 7368290 801465 9195989 3228163 3972918 3386844 9342995 366556...
output:
78 227 74 101 197 94 241 173 91 199 198 104 59 183 164 200 224 19 78 33 151 219 128 126 32 234 209 15 14 102 140 44 167 247 178 108 130 83 182 131 88 242 210 26 244 235 61 198 93 201 113 106 163 85 144 55 175 245 184 42 40 7 106 219 66 16 248 235 141 211 222 119 207 70 3 121 25 97 169 117 165 120 76...
result:
ok answer = 500
Test #13:
score: 0
Accepted
time: 1ms
memory: 3940kb
input:
500 250 80571694 85803063 51768736 93848632 66413497 76615996 83050382 99992350 8073944 91324998 18047715 58689728 8708611 51201572 29489394 73271018 24239602 65348190 64220050 71579063 50414980 65877100 86190696 92867069 34515283 94334986 8551872 68258618 18296336 36436754 94799273 95174013 8666001...
output:
147 53 232 155 202 225 52 178 86 158 101 167 23 95 26 219 172 233 156 42 47 50 75 42 77 236 76 168 246 124 60 103 159 199 13 43 153 218 210 11 56 35 146 228 143 119 122 41 208 55 142 8 71 74 160 217 10 102 152 117 157 177 32 172 89 97 3 78 29 113 211 59 29 242 161 216 94 54 170 124 136 8 88 243 238 ...
result:
ok answer = 500
Test #14:
score: 0
Accepted
time: 1ms
memory: 3860kb
input:
500 250 966174904 986708402 946554500 952001265 914838165 993300555 89795526 975540133 235762788 364735276 340662053 547524158 330027012 366955963 633114013 756706517 868314624 992777729 843328851 965147665 943958099 956095329 243336632 710281553 576757478 948905845 778782824 978759308 370097409 470...
output:
234 221 205 239 205 72 212 196 177 163 220 236 59 125 183 246 217 26 124 197 184 39 3 34 34 86 13 112 168 52 41 171 106 158 123 248 185 242 42 32 146 13 80 84 46 94 104 130 90 115 138 149 240 151 162 119 64 59 81 74 62 230 224 217 109 238 191 5 201 35 140 227 75 1 192 43 243 231 71 243 74 25 175 226...
result:
ok answer = 500
Test #15:
score: 0
Accepted
time: 1ms
memory: 3960kb
input:
500 67 1 2 1 2 2 3 1 2 2 3 1 3 1 3 2 3 2 3 1 2 1 3 2 3 1 2 1 2 2 3 2 3 2 3 1 3 2 3 1 2 1 3 2 3 2 3 2 3 2 3 1 2 2 3 2 3 1 3 2 3 1 3 2 3 1 2 1 2 1 2 2 3 1 2 2 3 2 3 2 3 1 2 2 3 1 3 2 3 1 2 1 2 2 3 1 2 1 3 1 2 2 3 2 3 1 3 1 3 1 2 1 2 1 2 1 2 2 3 2 3 1 2 2 3 1 2 1 3 1 3 2 3 1 3 1 3 2 3 1 3 1 3 2 3 1 3 1...
output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok answer = 67
Test #16:
score: 0
Accepted
time: 1ms
memory: 5920kb
input:
500 379 2 5 2 4 4 5 4 5 4 5 1 4 2 5 4 5 4 5 4 5 1 5 4 5 3 5 3 5 3 5 1 3 1 5 3 5 1 2 4 5 4 5 4 5 3 4 4 5 4 5 4 5 3 5 3 5 1 3 2 4 1 2 4 5 2 3 1 5 2 5 2 5 1 3 1 4 4 5 1 2 3 5 4 5 1 3 1 5 1 5 3 5 4 5 3 4 4 5 4 5 3 5 3 4 2 4 4 5 1 4 1 3 1 4 4 5 1 4 4 5 1 4 4 5 4 5 4 5 2 3 1 2 3 4 1 3 3 4 2 5 1 3 3 4 1 5 ...
output:
105 106 13 12 7 107 108 4 2 1 109 110 111 112 113 27 114 115 74 28 23 21 116 20 19 18 117 118 26 119 64 120 81 121 122 123 24 124 125 65 126 127 30 128 129 130 131 132 133 134 135 136 137 87 138 29 139 86 140 85 141 84 83 82 90 79 142 22 143 144 20 145 146 91 74 73 147 148 92 79 93 149 150 98 95 96 ...
result:
ok answer = 483
Test #17:
score: 0
Accepted
time: 1ms
memory: 3944kb
input:
500 273 1 9 7 10 1 2 2 9 5 6 9 10 8 10 5 6 2 3 3 10 4 8 4 7 9 10 8 9 1 9 1 4 3 5 9 10 9 10 1 6 2 10 7 9 8 9 9 10 5 8 7 10 4 8 5 6 8 9 1 2 1 5 6 8 7 10 9 10 3 7 7 9 3 8 1 9 2 9 3 6 5 10 4 5 5 9 3 9 5 8 1 8 5 8 7 10 7 8 9 10 1 8 7 9 5 9 7 9 7 10 9 10 1 8 2 4 7 8 1 8 3 6 4 7 6 8 7 10 2 7 9 10 2 3 6 8 1...
output:
222 70 7 223 104 192 116 66 41 7 203 134 191 117 224 22 54 190 189 101 225 71 122 188 195 72 204 65 118 3 52 178 74 187 138 76 207 226 227 80 27 48 36 228 191 220 192 78 167 186 221 69 41 81 82 185 229 20 165 230 82 137 182 83 147 184 9 183 2 90 26 5 53 183 62 97 106 115 143 111 31 84 55 51 151 29 1...
result:
ok answer = 494
Test #18:
score: 0
Accepted
time: 1ms
memory: 5964kb
input:
500 250 47 82 75 84 56 61 27 57 32 48 28 85 15 38 36 39 56 65 88 94 87 97 64 79 15 51 50 93 83 100 74 77 59 74 66 99 57 78 51 90 47 76 64 68 89 97 15 71 38 54 57 83 26 91 90 94 98 100 70 73 40 75 52 82 67 100 14 85 57 62 47 53 40 63 79 97 3 33 16 61 4 94 94 99 68 80 23 30 41 81 54 81 51 52 36 45 54 ...
output:
52 133 93 187 181 16 36 39 107 203 196 99 86 56 178 246 220 109 78 58 145 175 208 243 76 79 15 211 243 216 139 63 113 191 95 65 104 158 26 110 232 226 117 22 40 68 236 48 67 134 240 43 46 69 136 167 218 29 175 80 114 200 231 89 205 65 61 230 156 77 173 80 140 209 143 238 31 76 151 202 198 169 89 164...
result:
ok answer = 500
Test #19:
score: 0
Accepted
time: 1ms
memory: 3980kb
input:
500 250 151 592 747 974 832 938 56 960 567 882 851 900 338 901 168 265 916 964 581 880 177 284 456 921 298 540 378 651 190 785 908 992 180 371 271 823 245 983 328 603 211 425 561 996 61 134 820 934 934 975 595 945 896 982 245 443 208 487 567 945 999 1000 483 748 882 887 383 459 607 910 57 797 12 771...
output:
86 131 171 234 78 181 34 22 217 82 249 56 126 221 153 214 41 25 18 242 50 76 3 166 225 86 207 69 130 79 250 210 199 80 89 155 143 21 58 200 62 154 53 34 40 209 98 135 6 186 113 232 25 81 101 8 141 83 172 45 182 90 161 240 144 154 54 174 246 213 213 185 193 125 54 231 70 151 15 11 227 36 176 15 33 24...
result:
ok answer = 500
Test #20:
score: 0
Accepted
time: 0ms
memory: 5964kb
input:
500 250 8878 9054 7943 8545 9886 9945 6698 8053 3466 6453 8106 8870 7114 9642 4807 4824 2334 4079 2778 3817 5111 7104 1252 4542 3555 6851 3663 5645 5567 7655 324 2086 4056 8603 1406 7470 9064 9448 1484 5836 7466 7945 2607 3711 5253 6112 3192 4008 9549 9852 9198 9709 4169 8558 2268 7806 5575 6209 826...
output:
199 149 246 105 204 160 117 66 206 214 169 55 239 228 213 14 40 131 209 102 130 226 88 39 227 215 42 142 90 170 19 132 209 27 173 38 241 224 15 33 181 240 36 211 242 169 9 139 148 60 133 102 156 190 208 10 62 100 89 115 43 166 61 65 53 201 21 108 36 231 161 157 76 72 137 68 91 241 233 62 97 148 122 ...
result:
ok answer = 500
Test #21:
score: 0
Accepted
time: 1ms
memory: 5852kb
input:
500 251 46165 49590 70151 85269 27899 40324 62135 64549 79159 94410 75003 79189 50178 81874 56192 88209 21577 95025 84261 96039 18414 90970 81196 83290 83331 83488 14574 39965 4268 32434 88164 89600 12144 29112 870 72365 9975 51580 92179 98369 28511 57700 33237 75390 24902 28700 94544 95300 65682 97...
output:
220 92 195 106 144 123 50 60 9 175 6 162 171 36 226 200 17 109 52 221 63 227 165 232 85 184 157 209 87 97 173 27 140 234 164 118 228 153 123 157 245 93 11 3 56 46 75 46 101 115 223 38 35 60 99 133 240 163 179 15 247 33 230 176 21 19 177 113 179 192 249 53 220 106 14 128 241 84 51 246 44 103 84 166 5...
result:
ok answer = 500
Test #22:
score: 0
Accepted
time: 0ms
memory: 6032kb
input:
500 250 997100 999305 50160 723310 530874 700434 482814 725372 898138 942005 227563 606578 465297 983061 288595 865469 971584 983736 84196 662089 716660 851207 874207 995804 742642 760966 412491 418432 721831 897885 453604 941851 404413 589262 363242 694198 71736 189776 340057 706243 591745 899767 9...
output:
250 214 188 204 207 205 55 25 239 113 123 197 241 181 125 51 87 232 11 120 86 235 93 245 105 110 235 145 15 222 102 180 27 162 139 118 241 21 225 102 208 165 80 127 24 44 184 224 186 133 65 167 147 184 89 4 94 43 24 45 155 226 94 34 224 220 2 107 35 92 120 231 196 19 237 153 190 219 81 238 145 215 2...
result:
ok answer = 500
Test #23:
score: 0
Accepted
time: 0ms
memory: 5968kb
input:
500 250 816808 8979893 577273 5159166 6890110 9974354 7539249 9013575 7780990 9685125 284302 8308896 2859745 8347237 5896988 9556377 4465806 5463028 8279297 8819929 1361353 5720171 2467636 8115256 5879674 7044297 661648 5198202 4725290 5204346 2612798 8161805 9812485 9996590 2285372 4614496 1962475 ...
output:
201 203 102 124 134 163 16 71 60 159 64 240 158 79 184 248 241 47 7 136 28 98 152 249 216 169 27 157 9 219 145 13 7 208 169 144 124 2 26 209 106 153 93 118 167 190 84 233 129 46 77 123 132 246 229 42 81 133 24 250 193 132 131 160 231 95 139 199 57 11 159 34 235 94 14 206 189 224 82 54 195 42 15 217 ...
result:
ok answer = 500
Test #24:
score: 0
Accepted
time: 1ms
memory: 5980kb
input:
500 250 81661382 94717306 89850268 94839225 72615579 73753927 19190949 39608724 129611 33966748 36897319 96344937 77381982 94746565 49637131 94881993 71774738 87773217 5955861 68864001 55863683 69339123 25998069 29895468 85528105 96959461 12833512 31610705 4726009 31932075 18119656 87239085 31722731...
output:
165 205 204 40 197 34 148 58 130 223 144 22 189 25 27 196 25 69 150 221 66 11 182 171 224 217 121 138 122 53 31 109 246 195 186 99 202 64 1 40 244 76 183 91 217 118 170 95 89 45 73 174 184 230 46 65 109 124 110 170 214 173 14 211 151 92 7 55 38 240 93 129 15 95 227 52 230 228 222 199 191 219 118 173...
result:
ok answer = 500
Test #25:
score: 0
Accepted
time: 1ms
memory: 5992kb
input:
500 250 159147753 849387872 678679305 958626578 736410066 762171088 51820203 846735349 483826312 744440062 76859389 682174032 127183476 195547079 339099076 948562984 46616987 234754210 871306758 893541852 261351936 390635591 441516403 995769500 522385081 715755202 729932064 859205804 998688267 99968...
output:
178 113 213 179 199 176 9 22 10 187 40 45 146 128 248 166 110 133 125 50 96 235 27 46 144 230 153 130 70 237 183 224 81 19 219 160 172 224 206 233 129 196 97 130 38 147 30 151 103 102 216 182 24 147 169 89 7 2 94 73 174 197 81 241 19 166 45 158 23 225 123 188 149 155 25 92 47 18 180 62 44 3 93 12 70...
result:
ok answer = 500
Test #26:
score: 0
Accepted
time: 0ms
memory: 5860kb
input:
500 236 1 3 1 3 1 2 2 3 2 3 1 3 1 3 2 3 2 3 1 3 2 3 1 2 1 2 2 3 2 3 1 2 1 2 2 3 2 3 2 3 2 3 1 3 2 3 1 2 2 3 1 2 1 2 1 3 1 3 2 3 2 3 1 3 2 3 2 3 2 3 2 3 1 2 1 2 1 3 2 3 2 3 2 3 1 2 1 3 1 2 1 2 2 3 2 3 2 3 2 3 2 3 2 3 2 3 2 3 1 3 2 3 1 2 2 3 1 3 1 2 1 3 1 2 2 3 2 3 2 3 1 3 2 3 2 3 1 2 2 3 2 3 2 3 2 3 ...
output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 ...
result:
ok answer = 236
Test #27:
score: 0
Accepted
time: 0ms
memory: 3948kb
input:
500 450 1 5 4 5 4 5 3 5 2 5 3 4 4 5 4 5 1 3 1 4 4 5 3 4 3 4 3 4 3 4 2 3 4 5 4 5 1 5 3 4 2 3 3 4 1 3 2 5 2 4 4 5 1 3 1 2 2 4 3 5 4 5 2 5 4 5 4 5 2 3 1 5 1 4 2 5 2 3 4 5 2 4 1 3 2 4 1 5 4 5 3 5 3 4 4 5 1 3 4 5 4 5 3 5 2 3 4 5 3 4 2 4 4 5 1 4 2 3 1 3 3 4 1 4 2 4 4 5 2 3 1 5 4 5 3 4 1 2 2 4 2 4 4 5 1 3 ...
output:
106 20 21 107 108 109 22 23 14 110 24 111 112 113 114 90 25 26 115 116 88 117 11 118 119 27 8 42 120 121 28 122 29 30 98 123 124 125 99 31 126 7 127 128 32 129 130 33 13 19 35 131 93 36 132 133 37 134 95 10 135 136 137 38 105 138 39 139 66 140 141 40 12 142 79 143 6 144 41 145 146 147 148 42 43 44 4...
result:
ok answer = 500
Test #28:
score: 0
Accepted
time: 1ms
memory: 3924kb
input:
500 321 6 10 3 6 4 6 5 10 5 7 5 10 3 7 3 8 3 8 4 8 7 8 6 8 3 5 5 9 8 9 4 7 4 9 3 9 9 10 1 8 3 9 5 10 8 9 6 8 4 9 8 10 9 10 2 4 1 10 4 5 5 8 1 7 7 8 7 9 8 9 6 9 4 8 8 9 5 9 1 9 9 10 7 8 1 10 5 9 7 10 7 8 5 6 4 7 9 10 5 8 4 8 3 4 7 9 5 9 2 8 5 9 2 3 3 10 9 10 9 10 6 8 9 10 7 10 1 5 5 10 3 9 2 5 4 6 5 ...
output:
38 72 62 22 107 26 123 201 204 194 157 179 34 205 118 117 206 207 194 208 209 30 95 178 210 101 181 31 211 149 190 137 154 72 143 36 199 142 212 213 191 164 214 215 64 162 56 122 201 182 200 147 59 216 217 218 10 3 153 193 176 178 82 43 14 219 52 64 87 190 125 89 188 151 220 21 75 161 127 167 221 99...
result:
ok answer = 500
Test #29:
score: 0
Accepted
time: 1ms
memory: 3880kb
input:
500 282 8 65 78 90 26 99 97 99 94 95 1 56 62 73 41 87 46 51 70 78 81 99 15 52 98 100 39 54 31 53 20 34 9 77 75 84 2 29 4 79 92 96 6 34 23 28 4 7 11 65 3 90 63 69 48 72 82 95 41 93 47 53 65 92 46 76 39 87 25 60 87 97 18 53 10 18 68 100 31 69 38 74 15 57 40 54 16 33 46 68 77 78 42 88 45 72 14 47 2 10 ...
output:
199 150 21 239 231 127 198 41 157 246 160 129 245 216 70 224 147 132 25 156 219 34 23 1 100 214 171 186 171 40 136 95 228 37 89 191 75 19 107 235 204 124 153 33 231 141 44 117 62 6 42 66 168 161 39 248 18 187 33 102 247 187 198 80 64 109 146 184 166 126 23 112 130 106 91 9 144 116 200 210 152 123 56...
result:
ok answer = 500
Test #30:
score: 0
Accepted
time: 1ms
memory: 3940kb
input:
500 300 510 553 741 866 603 700 36 128 503 944 356 533 43 466 917 960 375 678 38 84 603 748 900 954 951 972 25 548 965 980 204 928 541 594 362 453 904 939 4 547 322 583 870 911 359 470 397 896 772 953 95 483 527 853 631 748 886 955 178 468 127 202 249 912 869 887 154 386 688 948 847 853 783 908 881 ...
output:
113 126 174 4 61 74 138 213 249 1 222 208 231 215 237 12 118 62 209 75 80 190 165 43 138 159 67 227 201 246 11 17 189 43 106 178 141 198 182 241 175 84 127 204 118 44 53 103 158 171 176 152 231 36 87 90 195 139 111 159 100 71 14 52 121 73 72 170 59 82 182 126 177 21 40 201 49 40 83 9 61 191 5 207 11...
result:
ok answer = 500
Test #31:
score: 0
Accepted
time: 1ms
memory: 3868kb
input:
500 324 9666 9764 5 7711 5764 6747 2737 5398 4206 7020 351 4635 4073 5399 3611 9328 1945 8418 7455 9537 4107 8882 1584 6200 3868 4517 9853 9898 2506 4277 4014 7539 3274 7131 4991 9996 9163 9430 3958 6082 4305 9426 1905 6005 545 3515 7652 9689 1027 1438 1658 2555 3483 3669 3645 9546 3339 6780 368 978...
output:
232 131 151 71 106 58 69 28 168 120 37 90 44 245 39 194 115 53 207 82 39 141 199 127 4 13 31 29 99 241 92 113 238 95 45 144 71 148 91 128 27 52 62 56 94 128 226 200 109 50 219 18 85 229 217 163 77 97 83 78 170 203 130 171 132 114 91 192 92 167 8 246 149 173 153 181 12 246 94 20 184 122 202 16 107 10...
result:
ok answer = 500
Test #32:
score: 0
Accepted
time: 1ms
memory: 5896kb
input:
500 470 48935 84694 99749 99923 67360 75782 2621 28649 97920 99396 43999 62734 31792 93093 27130 95814 86217 97217 96404 98372 24819 99995 19043 61210 48522 67115 9948 85463 68373 86119 41827 44815 3885 70986 61638 63427 71822 81341 44961 51570 35696 82618 54669 54869 24868 37898 67579 83939 10309 5...
output:
56 250 221 19 245 113 23 16 196 236 10 95 135 189 116 49 247 180 127 64 31 80 244 114 68 224 157 62 92 57 40 52 9 155 190 16 173 130 218 185 163 35 1 24 181 144 2 250 89 81 226 7 72 125 150 120 215 195 28 167 103 99 225 45 52 232 55 74 25 112 62 239 30 154 50 108 93 88 214 19 167 131 189 248 2 147 2...
result:
ok answer = 500
Test #33:
score: 0
Accepted
time: 1ms
memory: 5892kb
input:
500 365 45762 693754 534202 559740 475894 692574 187566 781410 918494 925845 248194 930644 769148 995474 849975 944570 274210 388210 809281 978707 881685 943753 593867 809666 941967 942436 917009 921677 623403 694445 14648 44821 973042 987690 275841 883296 587146 857139 601250 981414 602336 913679 2...
output:
106 236 159 148 215 13 142 186 42 161 198 75 229 213 161 2 239 17 73 77 78 56 226 148 103 62 194 204 40 202 39 66 207 152 89 75 179 86 64 224 164 104 68 158 1 217 202 25 34 41 80 21 181 197 122 99 184 136 141 69 92 146 247 101 126 51 114 228 218 149 162 48 157 37 5 58 243 63 49 178 43 222 59 58 241 ...
result:
ok answer = 500
Test #34:
score: 0
Accepted
time: 1ms
memory: 5892kb
input:
500 435 8942882 9009137 2960339 4249642 6469497 9548984 1335505 1977271 8656424 8708138 8855830 9941526 120428 6845949 4297409 6050960 4211118 5999754 5292184 6371662 1257452 1532520 4172544 8586887 420009 9449705 9256685 9947310 6863833 8506653 5057204 7529960 4548338 8379192 3876868 8854349 331804...
output:
205 53 112 19 192 199 129 130 99 109 9 51 1 217 130 200 61 45 40 44 17 145 83 49 73 154 134 149 135 228 159 123 234 55 194 38 34 153 187 66 242 135 144 65 106 143 66 51 132 171 242 189 222 207 120 195 241 248 232 147 161 37 27 88 203 126 47 185 46 198 30 28 27 41 92 244 148 188 104 137 53 105 55 43 ...
result:
ok answer = 500
Test #35:
score: 0
Accepted
time: 1ms
memory: 3848kb
input:
500 331 9630011 57589654 22572747 68645689 38328399 81622066 94933642 97311408 58050148 62455346 37318915 88117879 68029610 74080275 87750454 92553676 46660595 74511474 32473872 49596859 63350036 89789394 75407776 80074289 80027461 88388093 61349773 99476335 69370190 83482845 70440345 73157341 67787...
output:
138 100 34 222 93 32 201 189 214 72 86 128 154 82 105 185 212 18 158 106 248 81 62 136 50 108 39 157 25 47 135 230 167 184 112 109 79 149 95 58 166 33 118 87 219 78 70 188 143 148 84 155 52 170 197 53 59 244 115 227 235 42 114 99 124 182 25 170 67 60 238 182 110 221 149 175 126 80 108 94 8 83 242 18...
result:
ok answer = 500
Test #36:
score: 0
Accepted
time: 1ms
memory: 3808kb
input:
500 477 343566419 927547482 827556406 860923139 786265094 867699424 768873550 983848460 587486802 980298997 991532621 996136199 878431940 941182908 689945290 738517801 517657626 628309437 983790110 985304593 272482247 338862765 740802646 818566102 938911500 949187177 185204729 426499829 724561978 76...
output:
26 172 150 139 74 245 203 178 92 240 26 130 224 227 216 161 62 39 169 171 177 185 220 69 15 152 37 195 75 46 93 49 169 201 237 111 131 191 69 124 10 90 154 91 210 60 230 28 196 214 182 166 113 79 144 195 20 118 155 98 64 149 42 173 190 229 135 236 72 215 242 243 248 23 97 44 110 208 6 126 173 121 81...
result:
ok answer = 500
Test #37:
score: 0
Accepted
time: 1ms
memory: 5936kb
input:
500 500 2 3 1 2 2 3 2 3 1 2 1 2 2 3 1 3 2 3 2 3 2 3 2 3 2 3 2 3 2 3 2 3 2 3 1 2 1 3 1 3 2 3 2 3 2 3 1 2 1 2 2 3 1 2 1 2 1 2 2 3 2 3 2 3 2 3 1 3 1 3 1 3 1 3 1 2 2 3 2 3 2 3 1 2 2 3 2 3 2 3 2 3 2 3 2 3 1 2 1 2 2 3 2 3 2 3 1 2 2 3 1 2 2 3 2 3 1 2 1 2 1 2 1 2 1 2 2 3 1 3 2 3 2 3 1 2 2 3 2 3 2 3 2 3 1 2 ...
output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 ...
result:
ok answer = 500
Test #38:
score: 0
Accepted
time: 85ms
memory: 20760kb
input:
300000 167770 1 5 1 3 1 2 2 3 2 5 2 4 1 2 4 5 4 5 2 5 4 5 4 5 3 4 4 5 3 5 4 5 1 4 2 4 2 5 3 4 4 5 4 5 1 3 4 5 4 5 2 5 4 5 2 3 3 4 3 4 1 3 2 5 2 4 4 5 2 5 3 5 2 5 2 3 4 5 4 5 4 5 3 4 2 4 3 4 4 5 2 5 1 2 2 4 3 4 2 3 1 3 2 5 2 5 2 4 1 3 4 5 3 4 1 3 4 5 3 4 4 5 1 4 2 4 1 3 2 3 1 5 1 2 4 5 4 5 1 4 3 4 2 ...
output:
62462 16800 45618 53918 62463 62464 49783 2436 2438 62465 2440 2442 62466 2444 62467 2446 62468 62469 62470 62471 2447 2449 16805 2450 2451 62472 2453 53921 62473 62474 16788 62475 62476 2425 62477 62478 62479 53904 2415 2416 2418 62480 62481 62482 2420 62483 48768 62484 62485 53946 16795 62486 6248...
result:
ok answer = 230231
Test #39:
score: 0
Accepted
time: 98ms
memory: 17564kb
input:
300000 158833 1 7 8 9 6 8 4 5 7 8 6 7 2 9 3 10 7 9 4 8 9 10 5 7 9 10 8 10 2 4 7 8 1 5 6 10 9 10 5 9 3 6 6 7 8 9 4 8 2 9 5 6 2 9 7 9 6 9 5 6 5 7 1 10 5 6 4 6 4 9 4 10 1 7 5 10 7 8 2 4 3 6 5 9 8 10 8 10 7 10 4 8 8 10 6 8 7 10 1 7 9 10 1 7 9 10 3 7 2 9 2 8 9 10 6 7 9 10 2 5 2 7 2 3 5 7 1 7 8 10 4 9 9 1...
output:
96900 76744 113379 39468 64105 73152 133729 3604 64119 127760 103464 79777 103463 76742 14081 64081 38597 28819 103455 15781 64212 73138 76741 127847 133730 61469 133731 64086 28883 43608 79785 133732 43610 48647 133733 4161 96843 15838 64079 14073 49128 15841 76740 76739 64153 127458 76738 113427 6...
result:
ok answer = 292561
Test #40:
score: 0
Accepted
time: 110ms
memory: 16796kb
input:
300000 150009 55 66 55 72 76 99 74 95 20 64 60 85 52 62 54 100 62 73 30 62 60 96 99 100 66 76 10 23 4 20 59 76 67 76 54 95 2 93 18 56 98 100 59 64 63 100 16 29 95 97 40 83 84 93 41 84 37 92 34 51 53 100 98 99 80 88 18 34 68 76 20 74 54 55 16 78 38 55 86 89 8 47 18 81 66 75 60 69 22 66 44 89 19 71 4 ...
output:
72096 90806 80160 74213 55699 46589 142124 37995 99267 120417 46582 147589 120864 7997 5654 119295 121028 37914 131923 143862 143897 54458 51238 12644 135970 22003 104050 23765 19382 36481 37035 143948 90818 17198 121162 75759 40658 86462 148957 110105 132570 95216 114007 74594 76781 26845 143778 56...
result:
ok answer = 299930
Test #41:
score: 0
Accepted
time: 132ms
memory: 16780kb
input:
300000 150001 494 988 672 774 243 913 828 988 37 677 885 943 710 899 735 934 920 922 965 966 140 442 673 881 899 974 326 433 1 144 518 752 965 990 177 532 625 672 530 670 899 994 856 986 262 864 146 442 771 873 671 978 813 927 449 894 888 965 785 926 508 798 502 849 521 735 503 886 119 511 840 894 2...
output:
33612 130973 9566 98268 133137 115662 67472 72926 126165 139664 129817 60294 119856 26912 3278 114525 139578 63090 67082 65956 119831 106860 11014 27882 81751 59742 93896 28463 116595 85537 149366 34655 102533 34734 35927 101843 130589 139826 145490 59277 101828 85306 95359 22009 15346 128695 63322 ...
result:
ok answer = 300000
Test #42:
score: 0
Accepted
time: 161ms
memory: 16832kb
input:
300000 150000 3973 6094 9736 9998 70 8639 5326 8325 3999 7450 3662 6854 4709 4858 9516 9896 9504 9728 1704 4105 4802 6265 5454 9534 9173 9814 1798 4071 2241 3267 6925 9683 2779 4274 2065 9713 6068 8558 1614 8165 1662 4784 7247 9243 8942 9067 8742 9131 4327 8619 4359 4989 6812 8809 5706 7074 2583 708...
output:
49762 141935 109245 38743 110135 62998 79501 135262 134932 24703 65348 40461 125014 24347 16641 64291 26426 6886 49346 95009 146685 71014 118136 112259 26979 98728 62160 84976 125932 82166 52087 50478 129301 25869 74220 99702 40801 96165 77765 97022 28492 52889 140225 49312 130345 14006 28609 29996 ...
result:
ok answer = 300000
Test #43:
score: 0
Accepted
time: 162ms
memory: 16776kb
input:
300000 150000 12903 16631 31740 87010 65263 66809 76325 96234 6447 96997 93658 98279 37116 45312 40450 92176 39259 44730 68790 89767 37526 84109 33305 42208 63474 88851 92816 93071 32193 50697 34927 62503 48938 97474 32975 63610 1315 17769 30877 52937 60916 91584 14355 34674 63709 64927 6280 33513 5...
output:
4410 15844 65342 80135 622 130837 99676 24229 28691 63234 21246 26035 53680 128308 92503 52211 33514 105543 5068 78858 49706 18498 68252 100257 40240 12280 145628 42200 146276 141953 55581 50609 17832 48605 41996 87469 204 33442 49498 76342 51365 121587 14816 107468 140733 58045 38844 142165 107436 ...
result:
ok answer = 300000
Test #44:
score: 0
Accepted
time: 167ms
memory: 16800kb
input:
300000 150000 567775 666457 837755 984411 718168 903846 272041 566674 845286 892912 657558 706979 979998 984740 897850 920288 573988 604802 125953 702072 763586 844301 293648 334208 270686 660835 362992 482276 789500 805601 843735 845131 733248 894850 241109 377437 254656 819746 559713 638355 309262...
output:
94712 101331 69255 146476 103594 84329 144060 119344 48833 65861 79857 17323 58090 133543 86878 103131 72612 83921 10521 55105 57759 42458 27870 84533 101721 19049 53339 53993 141366 120319 91422 61338 149839 4575 61088 2685 57125 103014 14224 22029 24801 146660 115648 16512 73819 74210 100260 60849...
result:
ok answer = 300000
Test #45:
score: 0
Accepted
time: 165ms
memory: 16840kb
input:
300000 150000 7170989 7769844 956107 2663875 9166687 9506653 1888701 7639977 3302208 7630940 4857987 7312608 3733996 4738647 3006274 9521928 6370314 7064994 3306420 5033814 2310651 5271171 1032455 6819687 7079130 9908748 3293168 3641704 1367057 7494712 4640369 8126591 3301376 9160271 5655785 6679644...
output:
132982 11551 124878 79898 122308 99296 78278 14416 82642 132705 39938 62029 67110 20227 76246 30368 17021 64744 83698 67548 142889 124548 13846 17146 37306 129582 7767 34825 140222 135580 147631 131209 68221 135720 145562 36454 55874 110742 99348 89121 50699 7761 136446 114667 125639 58614 57576 546...
result:
ok answer = 300000
Test #46:
score: 0
Accepted
time: 169ms
memory: 16728kb
input:
300000 150000 11552304 25238941 57725800 74297686 59777617 68784124 34279072 42026700 59218385 84180847 89474693 95274286 95736555 96601153 35992390 95512251 71239164 91666139 97076370 97098897 40156523 62645281 32000954 57819471 60179257 88102512 5595628 31475314 55261116 84822976 71013050 92071206...
output:
145689 106937 72996 78212 47113 118385 137267 19851 68072 141139 119372 45056 48568 15811 41459 67585 144062 131671 89237 75936 74226 20374 84111 33310 36932 44098 147417 84581 61729 67730 32858 61432 107313 79723 11512 95232 15446 7018 108389 72585 115388 72588 53898 88726 47627 120327 111088 94125...
result:
ok answer = 300000
Test #47:
score: 0
Accepted
time: 173ms
memory: 16632kb
input:
300000 150000 654384400 971241348 70913001 607674248 792436692 958757039 493420264 606937015 872887558 973264081 626376272 682239078 582160167 908877630 658835446 733627713 385361776 871189995 334846500 367802854 124802907 643036263 443283183 775149618 514358696 672677144 480809185 562611368 6290012...
output:
57253 49549 87961 76710 112047 71340 45772 101564 22374 20631 146006 132252 67067 42918 145252 131836 49656 87621 38474 40228 88846 149063 52287 110887 38625 65772 88655 33928 54217 111053 11642 91173 42640 136385 96516 140845 111436 121826 101553 131368 72909 9207 63757 88656 96343 4324 30766 10099...
result:
ok answer = 300000
Test #48:
score: 0
Accepted
time: 91ms
memory: 23824kb
input:
300000 259601 2 3 1 2 2 3 1 3 1 3 1 3 2 3 2 3 1 2 1 2 2 3 2 3 1 2 1 3 1 2 1 2 2 3 1 2 2 3 2 3 1 2 2 3 2 3 1 3 1 2 2 3 2 3 2 3 1 2 1 3 2 3 2 3 1 2 1 2 2 3 2 3 2 3 1 3 2 3 1 2 2 3 1 2 1 3 2 3 2 3 2 3 1 2 2 3 2 3 2 3 2 3 1 2 1 2 2 3 1 2 2 3 1 2 2 3 2 3 2 3 2 3 1 2 2 3 1 3 2 3 2 3 2 3 2 3 1 2 2 3 1 2 1 ...
output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 ...
result:
ok answer = 259601
Test #49:
score: 0
Accepted
time: 92ms
memory: 20944kb
input:
300000 233601 3 5 3 4 1 3 1 4 2 3 2 5 1 2 3 5 4 5 2 4 4 5 3 4 1 2 1 5 2 4 1 4 2 3 2 3 4 5 4 5 2 5 2 3 2 3 2 5 2 3 2 5 4 5 2 4 2 4 3 4 3 5 3 4 2 4 4 5 3 4 2 4 3 4 3 4 4 5 4 5 1 5 1 3 2 4 3 5 2 4 4 5 1 3 2 5 4 5 3 5 4 5 2 3 3 5 1 5 2 3 1 5 3 5 3 5 3 5 3 5 3 4 4 5 2 5 3 4 2 5 2 3 2 3 2 3 3 5 2 3 1 3 4 ...
output:
62454 62455 12414 62456 58672 62457 40583 62458 62459 62460 62461 62462 31235 62463 62464 62465 58694 58695 62466 62467 62468 58661 58663 62469 58656 62470 62471 62472 62473 62474 62475 62476 62477 62478 62479 62480 62481 62482 62483 62484 62485 12959 62486 62487 62488 62489 13150 62490 62491 62492 ...
result:
ok answer = 296054
Test #50:
score: 0
Accepted
time: 94ms
memory: 17424kb
input:
300000 156917 6 9 5 7 7 9 6 7 4 6 3 8 3 4 1 2 3 9 1 5 1 3 5 9 6 8 6 9 6 10 5 10 8 10 8 10 6 7 9 10 8 9 2 6 7 9 8 10 4 10 9 10 4 8 4 9 3 6 9 10 1 2 4 8 2 6 4 5 7 9 5 7 5 9 4 8 9 10 8 9 5 7 7 8 7 9 7 8 9 10 5 9 2 10 6 8 4 10 8 9 1 7 3 6 6 8 9 10 4 8 2 7 4 10 1 4 6 7 9 10 4 8 8 10 1 5 1 7 3 9 4 8 8 9 3...
output:
24271 77446 44515 66929 62639 132767 18861 365 133688 35223 5797 19790 107685 40757 40666 19782 90159 90130 66970 103061 90122 52148 44525 90125 7454 103048 124403 133689 51909 103002 1055 124402 52143 33570 44509 77440 19797 124401 102998 90135 77461 105769 44506 105765 102987 19773 133690 107646 7...
result:
ok answer = 290604
Test #51:
score: 0
Accepted
time: 120ms
memory: 16756kb
input:
300000 150061 40 82 23 24 73 94 66 67 66 93 17 75 27 51 54 69 84 92 39 48 14 77 9 21 45 90 44 82 41 63 92 94 63 85 11 47 73 95 86 94 17 92 35 47 45 64 35 67 93 99 65 97 38 74 56 65 23 78 3 54 27 77 79 91 70 72 88 92 17 88 19 37 87 91 99 100 11 61 26 80 73 98 91 93 11 13 89 94 43 98 90 97 70 73 9 30 ...
output:
21757 8453 72367 67760 58110 78592 111619 74275 101497 32157 83949 6338 27834 25910 75502 125822 52786 30782 72428 108260 3505 118175 55344 143774 129129 56217 102445 56724 86544 40056 83499 86667 94330 116652 3515 147830 110689 147547 127648 146660 72239 125463 2208 119549 25757 121376 100821 13746...
result:
ok answer = 299989
Test #52:
score: 0
Accepted
time: 136ms
memory: 16844kb
input:
300000 149999 556 916 419 756 924 973 632 643 477 933 942 982 3 683 349 514 19 917 706 752 94 104 394 494 21 497 73 880 45 332 629 786 56 174 741 763 433 889 726 914 262 462 623 915 168 842 254 824 103 996 356 766 948 973 429 621 833 998 625 704 990 998 812 851 225 874 808 995 691 809 206 470 438 71...
output:
41293 116702 127149 56454 31481 132323 62079 118977 125042 114103 1660 33548 33948 113982 17075 139832 4776 122443 26808 70708 30008 51437 102385 10222 1561 124117 134235 51145 99510 82158 147249 93093 7945 91897 63452 118909 90349 149130 89729 61632 59847 53131 32354 91652 16865 77499 103751 2100 1...
result:
ok answer = 299998
Test #53:
score: 0
Accepted
time: 154ms
memory: 16660kb
input:
300000 150000 2952 4855 7982 9177 2483 6149 2332 8618 9598 9934 1792 4703 7046 9680 2410 6305 4047 4777 1499 4551 7242 7357 5766 9935 4189 4328 7115 9460 7695 9319 8328 8677 7785 9491 8174 8492 3883 5165 5277 9578 5928 9878 517 8949 2117 2724 5276 8352 6967 7641 1108 6809 6474 7064 4551 9396 6254 89...
output:
32914 89333 123855 8831 138079 113372 66490 53021 133234 29464 102992 44744 27042 67878 81318 99935 83776 95262 76056 38112 47035 118514 12025 38095 123207 61873 83593 29454 52138 107003 15175 68663 140831 19518 104062 17017 123803 65159 124066 87502 243 97336 107690 104341 71575 65933 115372 5235 1...
result:
ok answer = 299999
Test #54:
score: 0
Accepted
time: 163ms
memory: 16760kb
input:
300000 150000 90462 99554 55705 57142 94440 97633 58596 96591 75226 94006 13368 15518 98383 98654 84117 94919 40069 63073 8004 65091 4385 82911 66462 70822 34454 44857 22507 37602 4845 74109 10526 95149 16021 24471 9617 25356 49732 92684 82188 93045 52592 55281 96908 97689 23937 68454 38080 79677 47...
output:
121603 61906 133487 46177 77009 3883 145197 102512 149590 56323 98937 84453 134862 90686 74324 1737 9803 10521 34479 96724 82396 140791 62554 148310 98865 20058 28294 61791 91938 6565 146738 42257 30715 101728 7684 30166 91756 128467 138672 104173 13207 21799 103711 126745 149693 35729 134357 6044 1...
result:
ok answer = 300000
Test #55:
score: 0
Accepted
time: 154ms
memory: 16796kb
input:
300000 150000 978631 982929 101663 499756 759816 798998 803333 838120 636964 675643 641278 704471 862290 919804 49691 717850 467443 677929 21596 84237 577153 844013 916660 917560 774572 929040 515474 806479 665250 888570 521313 523790 783160 877043 712485 825311 160449 264011 9658 425587 999666 9997...
output:
143706 34641 79400 91529 114261 82932 109218 69497 69655 1071 44843 125317 83224 36541 59077 131458 85575 68304 146988 26218 149910 96766 130410 950 4320 77054 56962 123537 22520 6759 116381 126173 23306 10992 139337 98373 34454 86533 17906 85083 31442 146308 938 133633 100911 56561 59496 34545 4626...
result:
ok answer = 300000
Test #56:
score: 0
Accepted
time: 167ms
memory: 16788kb
input:
300000 150000 9913013 9932632 1886090 3278627 15598 6396576 2951139 7310476 2824123 6726030 1142999 9790240 7041910 8793346 959943 9716348 3016613 8956537 2336065 9073451 1035455 9348843 3377319 7740855 4388032 8560696 3406865 6461910 8772807 9823783 1946767 8036961 5505173 8732456 8493741 8609530 8...
output:
147359 16704 119547 72019 60067 2021 66242 1419 14358 8736 1661 130290 27734 104565 113132 91107 41152 104746 112091 110291 114052 3584 289 121419 15540 58306 120853 72874 117066 88333 33747 68435 24683 115505 77724 118893 31579 8616 139763 112517 5194 142001 132158 614 145307 110643 44022 104268 70...
result:
ok answer = 300000
Test #57:
score: 0
Accepted
time: 167ms
memory: 16836kb
input:
300000 150000 90841840 91559816 12499783 62748667 51355156 76943316 43673156 88083748 36949927 57673386 48735343 75253124 91558518 98845905 78717659 84832367 93306233 99008252 83511172 93934560 56671183 93733617 48444425 88876535 47109951 75003263 55556049 82291660 40401427 60213599 45748967 5257286...
output:
122504 84055 127417 27453 44820 114905 124655 86086 129911 100293 43358 32773 113009 41759 48507 37792 149468 56468 40931 104930 71664 565 66174 16564 51716 17914 135824 106644 30615 138616 52129 31630 15337 40105 26542 23736 21375 134962 125359 77378 121517 67613 22567 66522 52658 60797 64474 89121...
result:
ok answer = 300000
Test #58:
score: 0
Accepted
time: 172ms
memory: 16776kb
input:
300000 150000 957293988 962106030 736798587 808067623 782742114 966585014 742593057 923915720 679625821 902064761 877600863 924157346 873528366 936110266 677729400 918693297 577428362 992519997 350536068 564404168 538943592 889454752 438784335 746201316 501004965 684782755 185477041 538309098 524300...
output:
137239 73171 84783 74471 61285 113223 112041 60933 44638 42831 39456 109767 71422 77741 37574 6026 125812 8007 94480 127316 54456 102850 72819 50508 22024 131878 108654 24913 31474 118830 41805 128083 111763 82107 133443 113391 130829 42633 118798 50143 25141 51373 106882 2320 134777 41099 79142 513...
result:
ok answer = 300000
Test #59:
score: 0
Accepted
time: 84ms
memory: 23688kb
input:
300000 152784 2 3 1 2 1 3 2 3 2 3 1 3 2 3 2 3 1 2 2 3 1 2 1 3 2 3 2 3 1 3 1 2 2 3 2 3 2 3 1 2 1 2 1 2 1 2 2 3 1 3 1 2 2 3 1 2 2 3 1 2 2 3 1 2 2 3 1 2 2 3 1 3 2 3 2 3 2 3 1 2 1 3 2 3 2 3 1 3 1 2 1 2 2 3 2 3 2 3 2 3 2 3 1 2 2 3 2 3 1 3 1 2 1 3 1 2 2 3 2 3 1 2 2 3 1 3 1 2 1 2 2 3 1 2 2 3 1 2 1 3 2 3 2 ...
output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 ...
result:
ok answer = 152784
Test #60:
score: 0
Accepted
time: 87ms
memory: 20932kb
input:
300000 86194 1 2 3 4 4 5 1 5 4 5 2 4 4 5 2 4 3 5 2 3 2 5 2 4 4 5 3 4 4 5 1 4 2 5 3 4 1 3 2 4 3 4 3 5 1 5 1 4 3 5 3 4 1 5 2 4 2 4 2 3 1 2 3 4 4 5 3 4 4 5 4 5 4 5 4 5 3 5 1 3 3 4 4 5 4 5 1 4 4 5 4 5 3 5 3 4 2 3 3 5 1 2 3 5 2 4 3 4 1 4 4 5 4 5 4 5 4 5 2 3 1 3 2 4 1 4 1 2 3 4 4 5 2 4 2 4 1 3 4 5 3 4 3 4...
output:
36913 62547 62548 62549 62550 62551 62552 62553 62554 4916 62555 62556 62557 62558 62559 62560 62561 62562 12907 62563 62564 62565 62566 62567 62568 62569 62570 62571 62572 4920 40723 62573 62574 62575 62576 62577 62578 62579 62580 13005 62581 62582 62583 62584 62585 62586 62587 62588 4897 62589 314...
result:
ok answer = 148740
Test #61:
score: 0
Accepted
time: 87ms
memory: 17480kb
input:
300000 141964 7 9 7 9 9 10 5 10 7 10 1 3 3 5 4 10 2 6 9 10 6 9 1 3 8 9 2 8 5 8 8 10 7 10 9 10 7 8 6 8 4 10 7 10 2 5 9 10 1 7 2 9 8 10 3 5 8 10 5 10 6 10 6 10 9 10 1 6 9 10 9 10 6 8 6 9 7 8 9 10 4 9 2 6 1 6 2 6 5 7 8 10 9 10 7 8 6 9 9 10 1 6 1 3 8 9 8 10 6 9 2 5 5 8 2 5 5 10 3 7 3 4 4 9 5 9 5 10 7 9 ...
output:
42621 42617 103953 24452 42622 5185 37743 5233 54690 103947 36675 24043 78339 133778 116042 78336 42607 103977 106993 110043 5231 42657 31431 103964 96831 133779 78332 59650 78331 24365 36676 36677 103868 55141 103880 103879 110040 36678 106990 103910 133780 54681 55138 67086 75864 78333 103971 1070...
result:
ok answer = 275741
Test #62:
score: 0
Accepted
time: 122ms
memory: 16808kb
input:
300000 149911 43 56 67 78 30 90 55 80 24 77 80 88 2 10 96 97 86 98 19 67 37 84 91 97 62 82 53 63 66 93 22 75 64 73 74 88 92 94 91 92 29 100 90 98 37 99 96 100 63 78 59 82 68 92 70 85 66 91 97 100 61 68 63 90 82 93 40 76 99 100 20 21 97 100 50 76 81 86 70 84 54 94 13 100 24 85 94 99 68 79 94 98 19 88...
output:
42200 136693 12626 149846 83785 91379 1365 140069 108922 61251 18962 122879 49547 53228 57480 78575 100144 74298 126628 122804 12440 120529 19612 138517 135875 46181 60844 64325 57563 141737 70324 51779 95978 117766 147315 6173 143396 118952 93157 64857 38754 1844 7619 132101 144492 132121 4649 9277...
result:
ok answer = 299817
Test #63:
score: 0
Accepted
time: 130ms
memory: 16808kb
input:
300000 150000 754 812 673 775 487 552 507 917 210 819 374 736 487 994 397 873 928 980 319 571 408 853 4 496 747 810 131 486 916 956 7 834 699 862 353 697 732 822 898 934 257 595 50 643 707 785 837 931 920 951 822 958 653 780 60 226 937 987 35 519 381 534 179 883 109 813 128 364 628 678 247 491 221 3...
output:
77483 131742 107580 35338 6958 103040 32790 23160 128446 143288 24273 34062 75695 32958 125091 100521 65221 87167 72239 119488 47332 55035 139421 101404 126098 96568 135380 8222 131300 61911 97021 5042 94083 105774 69509 33420 22595 19915 99267 92971 14179 31237 40289 51580 142950 63706 96252 12164 ...
result:
ok answer = 299999
Test #64:
score: 0
Accepted
time: 151ms
memory: 16796kb
input:
300000 150001 7546 9936 1162 3146 6754 9649 857 2413 8510 9893 4716 7705 7716 8415 9164 9410 6835 7368 759 9400 9631 9856 3406 5719 3351 4571 8626 9185 3958 6558 5502 9720 8962 9031 6145 9485 5618 7486 3125 9283 5266 8779 6399 6741 4401 5218 1184 4132 7703 9952 1349 9292 3287 8449 5724 8357 2213 711...
output:
77410 15557 60447 9569 105213 126843 81664 124886 102070 898 138856 76595 138585 108662 56988 40852 118813 50095 110543 15376 37738 108313 37138 24995 81303 2845 16821 43841 67641 87797 30578 86589 103549 142351 85392 85400 13003 70221 88532 12197 2899 69838 12456 65263 24275 107888 68689 135027 476...
result:
ok answer = 300000
Test #65:
score: 0
Accepted
time: 162ms
memory: 16788kb
input:
300000 150000 42005 98322 36515 54982 22264 95585 64174 69821 55104 97778 87368 94373 7007 8996 31762 69343 49180 53546 37354 45525 72481 91425 91172 91934 392 96117 89666 96742 78212 94400 40210 51787 79757 90604 54590 58073 81825 88959 87777 95161 45753 55341 30650 33760 41139 89968 90264 98793 89...
output:
25857 41289 8080 80064 41459 112107 1198 64602 117226 80351 71007 123647 138339 119062 85186 37143 89604 139669 95705 113333 108062 18006 24942 120857 117936 44057 18050 84917 123494 56890 75200 116560 32414 20447 10111 126916 98194 51480 12083 44149 105934 105450 114656 8773 116642 148878 72237 566...
result:
ok answer = 300000
Test #66:
score: 0
Accepted
time: 162ms
memory: 16660kb
input:
300000 150000 105608 372730 450920 939814 392570 470982 831537 960525 739274 852533 205877 847538 328947 740925 299221 476303 764013 815537 148257 288101 440116 625446 852887 985940 771596 826542 644437 892788 117118 283300 5525 130199 802505 908649 605317 714932 57259 586892 934933 944093 803203 95...
output:
20829 28885 31157 99301 73780 6851 105985 31817 79880 139610 52189 105756 81858 55375 12815 2645 90609 88291 84880 130166 90823 140981 5040 27464 34571 56761 134475 143254 118859 58738 17027 105193 2422 34558 50530 108752 117175 108742 100583 49994 39152 94866 88377 77662 90182 25107 79081 128744 54...
result:
ok answer = 300000
Test #67:
score: 0
Accepted
time: 159ms
memory: 16656kb
input:
300000 150000 5452202 9947793 9940079 9977522 9867053 9970459 3301439 5116018 6793328 6959345 295436 7809391 8314322 8332834 284652 6795243 9328222 9619914 1773012 9267574 3339832 7591959 2932404 4146637 1537431 4874682 2542828 9607098 3766697 6739632 8821649 9809564 9012909 9387656 6364569 8263430 ...
output:
40377 148149 145971 117465 78033 84684 99522 87660 129789 4988 120592 25149 33057 10520 60581 114770 120478 53956 30514 49794 11073 15683 84528 117872 67600 12500 125384 114134 109732 111495 41266 122284 43919 118440 90380 99231 35270 78268 20701 12954 108864 76066 20776 36152 19107 83518 149534 114...
result:
ok answer = 300000
Test #68:
score: 0
Accepted
time: 163ms
memory: 16660kb
input:
300000 150000 29256543 66052315 81437971 88272697 30361131 48076722 16393921 38228960 5190763 66267381 87549810 93687917 77861257 84376100 29951389 73926657 30887064 87431784 98966017 99489059 19806040 55359526 881837 92289084 83937815 96494313 39963981 64355637 57275584 68809544 54889048 82463209 1...
output:
69046 94167 143817 21826 101205 112478 83628 73823 15011 146967 41447 126731 101593 69782 73554 40784 16821 7051 133332 73265 108176 10283 59971 146790 132107 66573 100614 120911 147742 83971 124742 44702 138488 112111 20909 31672 92021 97568 74199 72496 58176 67673 75759 8355 22040 44416 140800 129...
result:
ok answer = 300000
Test #69:
score: 0
Accepted
time: 161ms
memory: 16732kb
input:
300000 150000 97364729 815595008 542160770 603377615 577372596 773000925 493180194 604212827 148747585 765587621 781858891 841132159 825615549 958198318 853720291 982666126 443094830 832639056 265464744 612310444 430129832 962941028 720177015 997807318 606221899 916413997 266478160 776731954 4002806...
output:
94611 48276 129953 48387 80282 84635 97619 106104 27915 49667 26568 69556 48697 83171 38968 4420 60664 52004 123340 61034 130963 49659 72448 84652 121020 66768 63557 77149 70636 1717 4240 122136 135828 27964 49995 67835 38528 93115 73364 45142 36663 94109 106516 98025 137533 73338 68802 53416 4592 1...
result:
ok answer = 300000
Test #70:
score: 0
Accepted
time: 88ms
memory: 23764kb
input:
300000 192988 1 2 1 2 2 3 1 3 2 3 2 3 2 3 2 3 1 2 1 3 2 3 1 3 1 3 1 2 2 3 2 3 1 3 2 3 1 3 1 3 1 2 1 3 1 2 1 2 1 2 1 3 1 3 1 3 1 2 2 3 1 3 1 3 1 3 1 3 2 3 2 3 1 3 1 2 1 2 2 3 2 3 1 2 2 3 1 3 2 3 1 2 1 2 2 3 2 3 2 3 2 3 1 2 1 3 2 3 1 2 2 3 1 3 2 3 1 2 1 3 1 2 1 3 2 3 2 3 2 3 1 3 1 2 1 3 2 3 2 3 2 3 1 ...
output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 ...
result:
ok answer = 192988
Test #71:
score: 0
Accepted
time: 85ms
memory: 20808kb
input:
300000 234961 1 3 4 5 3 4 2 3 2 4 2 3 3 4 1 5 2 3 4 5 3 4 4 5 1 2 1 4 3 5 4 5 4 5 4 5 2 4 4 5 1 5 4 5 1 4 3 4 2 4 4 5 4 5 2 3 3 4 2 3 4 5 2 5 2 4 2 5 2 4 4 5 2 5 4 5 4 5 2 3 1 3 4 5 1 3 2 5 3 5 4 5 1 2 3 5 3 4 2 3 4 5 4 5 1 5 3 5 2 4 3 5 1 5 1 2 1 4 4 5 2 5 2 3 1 3 1 5 3 4 3 4 2 3 1 5 1 4 3 4 1 3 1 ...
output:
13964 22588 62573 54769 62574 54767 62575 62576 54764 22587 62577 22586 45867 62578 62579 22585 22584 22583 62580 22582 62581 22581 62582 62583 62584 22580 22579 54754 62585 54752 22578 62586 62587 62588 62589 22577 62590 22576 22560 54757 14729 22574 14728 62591 62592 22573 32542 62593 62594 54794 ...
result:
ok answer = 297533
Test #72:
score: 0
Accepted
time: 93ms
memory: 17424kb
input:
300000 144464 3 4 4 10 4 10 2 4 1 6 8 9 6 8 8 10 5 6 6 10 8 9 1 7 4 7 9 10 8 10 6 7 6 10 2 7 1 2 2 6 6 9 9 10 9 10 3 7 1 10 2 3 3 7 4 8 7 9 3 10 5 7 2 6 4 6 9 10 4 6 8 10 8 10 7 9 2 8 7 8 6 7 6 9 7 10 1 10 7 8 2 6 6 7 5 10 6 10 4 5 9 10 2 6 9 10 9 10 5 7 8 10 3 10 7 10 1 10 4 6 2 9 5 7 6 10 8 10 8 9...
output:
18566 7238 7240 20198 54859 66864 114632 67032 40686 26761 66977 96474 83781 106651 67127 73905 26634 93361 741 52933 26645 106647 106646 87576 133576 9945 87567 124549 60449 3298 75213 65608 46417 106641 62452 67131 67049 60469 133577 60459 73725 26205 60574 133578 60573 65610 74057 24086 26088 354...
result:
ok answer = 278039
Test #73:
score: 0
Accepted
time: 112ms
memory: 16836kb
input:
300000 150022 74 99 18 100 43 70 30 95 2 95 67 85 93 97 21 51 96 100 2 33 50 93 74 79 43 71 54 85 76 86 95 100 5 48 99 100 35 94 2 3 15 99 68 88 48 51 90 100 47 50 82 96 22 96 76 82 4 90 84 94 52 91 66 87 81 95 94 96 53 83 62 98 10 21 78 86 97 99 9 98 51 54 7 77 60 62 47 71 82 84 54 55 56 63 76 97 9...
output:
74339 3909 143757 13324 137991 58522 128715 133107 137872 16691 33762 144579 82305 38859 78123 136787 32520 147334 17154 35 2787 59914 90711 119770 33864 97273 6618 78258 122927 104190 35291 57928 94912 134770 36530 50707 6531 84407 142774 690 125599 84198 50879 138095 96486 68118 52835 78030 122173...
result:
ok answer = 299938
Test #74:
score: 0
Accepted
time: 137ms
memory: 16848kb
input:
300000 149998 846 912 507 874 872 908 926 962 959 961 791 821 840 964 858 889 833 959 897 978 734 817 686 915 292 679 418 592 247 966 975 984 16 33 62 987 397 560 239 859 363 777 861 945 823 946 145 540 682 838 782 824 206 417 368 819 53 829 345 789 38 344 889 980 260 476 253 382 188 754 898 954 346...
output:
104018 35322 111641 127826 137808 87240 102304 107564 100201 119211 72519 62509 61357 46994 9675 142466 146 528 42555 9051 132620 108316 96948 39838 61904 84643 25296 20314 99097 142013 95982 116976 31642 96014 77518 119450 91965 66953 125985 38335 51350 10546 107413 25524 60963 72384 131477 24820 5...
result:
ok answer = 299996
Test #75:
score: 0
Accepted
time: 157ms
memory: 16804kb
input:
300000 150000 3735 8768 3087 8764 3482 4806 5737 8689 9989 9992 9410 9674 3833 8798 6568 9556 1940 4565 6881 9857 1744 3824 4950 4980 3581 5547 5098 8827 9948 9992 2413 6458 9108 9257 4334 6121 4330 7925 2429 7742 3225 9979 6339 7770 1132 2452 7899 8950 5936 7534 4333 4780 4764 9001 385 2374 1066 92...
output:
21058 15025 32352 44208 149697 132390 21977 57414 29670 63307 21928 34357 41532 35759 148496 90281 123362 49988 145634 82971 16223 133337 10579 87315 115683 32070 31861 9340 1827 64891 50876 126047 47839 21838 140676 129756 34869 40865 129480 52436 117744 76963 83902 89876 62987 57933 21699 58906 14...
result:
ok answer = 300000
Test #76:
score: 0
Accepted
time: 158ms
memory: 16760kb
input:
300000 150000 49790 78377 97347 99479 72006 76581 43881 72339 81666 89279 2075 38244 89843 97604 77076 87731 28189 51164 28777 78100 53937 67907 22141 37944 11183 58352 78093 98649 95282 99006 99399 99405 4146 67855 59203 94723 66857 79990 74343 97034 11388 64823 57171 64530 54072 64158 36065 69808 ...
output:
137687 142078 124049 94072 94440 21695 119172 81332 121230 135554 68763 21388 45470 84061 135768 148165 61112 46675 59217 74583 55624 56764 144997 64831 97844 45738 6670 58010 122283 125894 48225 147639 36885 15159 131129 31484 41096 102427 28317 140989 54949 110608 123866 1396 134207 111838 97371 8...
result:
ok answer = 300000
Test #77:
score: 0
Accepted
time: 162ms
memory: 16716kb
input:
300000 150000 291766 999528 239706 390565 933299 995606 273097 763455 851446 888731 543833 767589 699748 927426 664379 691555 190026 914875 764030 851584 611326 958847 62849 849203 573123 905908 900958 929788 593543 736367 143467 888350 121565 426255 341185 707591 831864 839245 636104 681776 402398 ...
output:
13731 97937 130070 80043 105449 125440 65549 75368 5814 80176 49857 104804 44159 120319 103200 3278 77214 67152 99591 70718 108188 120359 113079 20808 95628 103970 94403 17301 130100 60325 45560 47701 28091 107140 34127 145033 6112 124759 19817 140655 98743 124163 87410 120968 110376 28359 76468 844...
result:
ok answer = 300000
Test #78:
score: 0
Accepted
time: 161ms
memory: 16796kb
input:
300000 150000 8227243 9686470 6719345 8881636 3775474 8198905 5364395 9947503 2981953 9696782 1329265 1565360 3644642 4928409 1716902 8967301 9699990 9988645 3821700 7387931 2856554 3399403 9842792 9957190 8991337 9997797 9923943 9959914 2779208 7972351 6971201 9876462 8441175 9612050 6121536 656518...
output:
96786 60180 21412 39084 14053 3872 70899 4655 140986 104619 17773 145237 119651 147687 148857 64992 103223 60449 45487 8874 142180 23138 118673 135665 125902 101990 81456 137637 101356 49920 33882 62694 72276 130114 37117 116455 88599 149940 12783 96243 101406 63341 38059 148561 8209 55555 80842 123...
result:
ok answer = 300000
Test #79:
score: 0
Accepted
time: 161ms
memory: 16704kb
input:
300000 150000 77560217 84821462 57863108 73308827 13349108 92483582 10831881 85670719 92153207 98497873 21826186 59894512 5351484 44192081 23323148 98213132 83517574 87114426 1026504 90841700 99023752 99694292 6764164 7844534 43604894 58538721 33421423 79957123 45276705 79665537 79467172 80182633 80...
output:
82979 100195 2728 107159 126549 135117 136809 8735 100827 122577 147041 1092 45823 17341 148402 88541 92149 39795 25082 141492 105229 107496 111247 95168 21855 89978 36357 94180 107153 5929 18573 122906 121129 105981 123886 20349 84685 132666 43438 109455 31422 9955 17041 8216 65538 21197 80370 1289...
result:
ok answer = 300000
Test #80:
score: 0
Accepted
time: 167ms
memory: 16772kb
input:
300000 150000 763814908 996726129 281635131 688248102 904370118 945799883 94949607 286111159 689327474 903697825 926497730 966723335 696541135 923862111 589032579 598315025 292449712 301680987 318552055 778181558 378162882 452092573 107483323 873580594 184668805 250494315 140236757 829538288 6751721...
output:
80140 63120 121533 13090 63337 128023 64795 142727 14432 135349 29129 112214 10179 99037 131005 50206 80973 106521 18297 46488 21111 121626 139451 58460 25477 13187 47313 112582 39395 67863 123405 65183 11347 37256 113012 37808 82071 18499 42521 72156 120604 41088 143382 84676 98498 21460 54741 6624...
result:
ok answer = 300000
Test #81:
score: 0
Accepted
time: 86ms
memory: 23684kb
input:
300000 233191 1 3 1 3 2 3 2 3 2 3 2 3 2 3 2 3 1 2 2 3 1 3 2 3 2 3 1 3 1 3 1 3 1 3 1 3 2 3 2 3 2 3 2 3 2 3 2 3 1 2 2 3 1 3 2 3 2 3 2 3 1 3 2 3 1 2 1 3 2 3 1 3 1 3 2 3 2 3 1 3 1 2 2 3 2 3 2 3 2 3 1 3 2 3 1 3 1 2 2 3 1 2 1 2 2 3 1 3 1 3 1 2 2 3 2 3 2 3 2 3 2 3 1 2 1 3 1 2 2 3 1 3 2 3 2 3 1 2 2 3 1 2 1 ...
output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 ...
result:
ok answer = 233191
Test #82:
score: 0
Accepted
time: 72ms
memory: 20776kb
input:
300000 24012 4 5 4 5 1 3 4 5 2 4 2 5 2 5 2 3 4 5 2 4 2 3 3 4 3 4 3 4 2 4 4 5 4 5 2 3 4 5 1 5 1 5 3 5 1 4 3 5 1 4 2 3 2 4 1 4 1 3 1 5 2 4 1 3 3 4 1 3 4 5 1 2 3 4 1 4 2 3 4 5 4 5 2 4 3 4 2 4 2 5 2 5 2 4 2 4 1 5 1 3 2 3 3 5 4 5 1 3 1 4 4 5 2 3 2 5 2 3 1 3 3 5 4 5 3 5 1 5 2 3 2 3 3 5 2 4 3 4 2 4 4 5 4 5...
output:
0 22612 17207 22611 0 0 0 0 22610 0 0 0 0 0 0 22609 22608 0 22607 0 0 0 0 0 0 0 0 0 17201 0 0 17202 0 17203 22606 0 0 0 0 22605 22604 0 0 0 0 0 0 0 0 17206 0 0 22603 17211 0 22602 0 0 0 17212 0 22601 0 0 0 0 0 0 0 0 22600 22584 0 22598 0 22597 22596 0 0 0 22595 22594 0 0 0 0 0 0 0 0 0 0 0 0 17209 22...
result:
ok answer = 48024
Test #83:
score: 0
Accepted
time: 95ms
memory: 17624kb
input:
300000 104991 7 8 5 10 2 4 3 4 3 9 2 9 3 4 7 9 6 9 3 10 4 8 7 8 9 10 6 8 2 8 2 10 3 5 3 10 5 9 4 10 7 8 7 10 3 9 3 10 1 2 3 4 9 10 3 9 7 9 1 5 1 7 1 8 8 10 6 9 7 10 9 10 9 10 2 5 6 10 7 10 9 10 8 9 4 8 6 8 1 9 9 10 1 5 6 10 4 7 5 8 3 9 6 7 6 7 8 9 5 9 4 7 5 10 9 10 8 10 8 9 9 10 9 10 9 10 9 10 7 8 5...
output:
60402 23565 13905 19453 0 0 17288 60362 38433 3213 0 60389 0 0 0 0 33972 3243 23548 6996 60313 60309 0 3236 2256 11034 0 0 60346 31457 95759 0 67035 38490 60332 0 0 38405 38450 60452 0 66756 0 0 0 0 38717 38342 83529 0 0 67791 67796 66746 23483 83535 23497 0 66761 66683 0 0 0 0 60418 23526 60403 350...
result:
ok answer = 209982
Test #84:
score: 0
Accepted
time: 108ms
memory: 16800kb
input:
300000 47061 70 94 30 50 45 100 36 88 32 91 25 54 9 27 61 65 41 64 65 69 8 68 81 89 46 90 17 31 15 24 93 97 65 78 15 31 94 100 78 79 33 35 19 75 3 62 93 95 15 58 71 84 61 64 26 73 19 72 60 100 81 96 81 88 54 91 15 37 23 46 63 67 4 40 88 100 57 63 13 86 9 23 87 88 58 100 30 67 27 90 65 83 38 92 48 72...
output:
0 34427 27257 18606 14606 0 10984 0 0 0 0 0 28348 14515 8762 0 0 14519 0 0 18269 0 0 0 0 0 0 0 0 0 0 0 38718 20190 30050 0 0 0 0 0 7800 0 44316 0 10032 0 20269 0 38760 33861 0 7279 38646 43167 0 0 0 0 0 0 0 0 0 23538 0 10272 40555 0 0 34400 39478 30205 12599 0 0 21124 2412 0 0 39302 0 0 0 0 0 0 0 21...
result:
ok answer = 94122
Test #85:
score: 0
Accepted
time: 126ms
memory: 16844kb
input:
300000 24043 284 933 365 927 559 679 102 483 407 653 677 969 463 602 814 900 375 498 620 698 637 793 824 998 213 383 100 496 725 872 52 612 35 947 749 882 724 920 212 665 421 711 675 904 730 890 84 519 508 893 515 984 82 958 975 989 586 750 757 965 34 601 469 593 412 766 389 653 666 884 851 923 616 ...
output:
12979 20226 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 987 0 0 0 0 0 0 0 0 0 0 53 0 0 0 0 0 0 0 0 0 0 0 2206 0 0 0 0 0 0 0 0 0 0 0 0 0 6213 0 0 0 0 0 0 0 8377 0 0 0 406 20254 0 17498 0 6993 0 0 0 0 0 0 0 0 0 7872 0 0 0 0 0 0 0 0 19431 0 0 0 0 0 0 0 0 0 0 0 8925 0 0 0 0 0 0 0 0 2650 19242 0 0 0 ...
result:
ok answer = 48086
Test #86:
score: 0
Accepted
time: 151ms
memory: 16812kb
input:
300000 39197 3464 9192 2491 4593 8097 9019 4096 9853 8425 8896 361 3624 3848 5908 5689 7816 4995 9362 3956 4144 2335 9360 7158 9342 3450 7596 6058 9998 1016 5957 4091 9487 4355 5263 2859 9771 9072 9331 8269 8799 1081 5503 5930 8840 5606 6760 4876 7444 9610 9801 5986 9429 9001 9776 3594 8009 156 9211...
output:
18508 30118 0 24847 0 20031 0 0 34903 0 9003 0 0 0 0 24786 38241 13205 0 0 0 0 0 0 0 0 0 19752 0 24434 0 0 0 0 38410 18309 0 0 0 0 29950 0 31623 11593 0 0 0 10403 0 0 31406 0 0 28220 0 11115 0 29930 14188 17903 0 0 0 15780 36838 24796 0 0 28650 0 0 0 0 0 0 0 0 0 0 21910 0 0 0 3810 0 11810 0 0 0 0 0 ...
result:
ok answer = 78394
Test #87:
score: 0
Accepted
time: 151ms
memory: 16840kb
input:
300000 12008 61060 93610 29964 39538 99379 99599 68300 85459 78526 92446 4557 64653 38330 54309 3419 86837 64888 74988 9351 68829 15679 22336 45276 86285 1753 67864 62960 77046 62686 94661 7937 11565 10790 12322 55724 71521 98415 99275 62100 78617 70531 89247 6543 29130 8246 50974 90235 99940 27517 ...
output:
0 0 0 0 0 0 0 0 0 0 8170 0 0 0 0 2083 2375 0 0 0 0 0 0 0 0 4302 0 0 0 0 0 0 0 0 0 0 0 0 0 6725 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6674 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10046 0 0 0 1321 0 0 3433 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3599 0 0 0 0 0 0 0 0 0 2205 0 0 0 0 0 0 0 ...
result:
ok answer = 24016
Test #88:
score: 0
Accepted
time: 157ms
memory: 16784kb
input:
300000 51943 922968 931060 676228 902422 706391 835341 377320 837379 728897 785928 945419 983794 728153 742025 530848 705151 193003 410603 795045 976129 628017 856937 286764 722057 45994 560645 835098 931094 935878 983991 440103 965747 474374 609564 522246 850694 287757 962939 754589 843217 262173 7...
output:
0 0 0 21451 0 0 0 0 24774 0 0 0 42475 0 0 27779 0 37457 13299 0 0 45785 22269 20823 47066 0 0 29831 0 9825 0 21849 0 34574 0 38347 0 40187 0 0 0 0 0 0 0 51746 30414 0 42530 7310 0 28342 0 48715 17965 42253 0 0 0 0 0 13912 33783 0 0 0 0 0 0 0 0 44068 26985 0 6035 0 32061 0 0 0 43681 0 0 0 0 44203 0 0...
result:
ok answer = 103886
Test #89:
score: 0
Accepted
time: 160ms
memory: 16784kb
input:
300000 92186 5881667 9245835 585950 1112181 2359288 4822085 582150 3868378 2463796 8615660 5466872 7826770 4190126 6736016 5587359 7790977 9047264 9662912 5210034 8575619 8929902 9587777 6225173 9633255 891946 1478964 2631518 3196046 9369588 9836606 2702532 7732659 2191361 2486418 4246739 6627269 63...
output:
46426 1901 32703 22416 9906 0 60295 0 0 37410 0 51607 3389 16007 0 0 10105 0 74213 25574 56842 71662 35373 70339 29588 34546 10191 8557 42354 0 0 0 0 80902 0 48423 11289 15540 43222 39808 41306 84729 0 0 51994 0 0 0 0 0 52860 56559 0 65213 0 64575 0 0 0 77525 60171 26154 0 9605 0 25875 0 0 8535 0 0 ...
result:
ok answer = 184372
Test #90:
score: 0
Accepted
time: 160ms
memory: 16800kb
input:
300000 5101 22533551 61918934 55282140 76435955 67436320 75349037 25838176 76449937 72274253 73479904 12520364 55901303 63268357 78610611 90446269 98394669 45735435 58300568 65549491 93811961 53562826 72410596 98875739 99970807 76621426 81931190 49609129 77583583 10142883 58372718 2868357 10564697 5...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1740 0 0 0 0 0 0 0 0 0 0 1766 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3486 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4311 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok answer = 10202
Test #91:
score: 0
Accepted
time: 157ms
memory: 16664kb
input:
300000 45343 161780904 410049562 283210989 686643566 75741737 207110089 133792723 222338922 681018503 797751796 882310807 893049049 7612807 793470558 622224492 928679497 145325156 991514099 270763472 617283828 259767717 509070778 918270298 952247865 656605285 954061584 531619154 652348482 693773286 ...
output:
24557 0 7150 7954 0 0 0 0 3257 0 0 0 0 0 0 16943 23575 25762 23083 38002 28705 36504 35993 0 31272 21045 0 15104 0 0 0 0 0 0 22584 0 0 0 35565 0 0 0 0 0 1874 0 0 37409 0 35179 0 35764 28445 0 0 0 8236 0 0 0 16005 0 0 38062 0 41013 0 0 0 18901 0 0 0 31570 1939 0 39773 0 5772 0 0 0 12934 0 0 0 22936 0...
result:
ok answer = 90686
Test #92:
score: 0
Accepted
time: 77ms
memory: 23820kb
input:
300000 1 2 3 1 3 2 3 2 3 1 2 2 3 2 3 1 2 2 3 2 3 2 3 1 3 1 2 1 2 1 2 2 3 1 2 2 3 2 3 1 3 1 2 1 3 1 2 2 3 2 3 1 2 2 3 1 2 1 2 1 3 1 2 2 3 1 2 2 3 2 3 1 2 1 2 2 3 2 3 2 3 2 3 1 3 2 3 2 3 2 3 1 2 1 2 2 3 2 3 1 3 1 3 1 3 1 3 1 3 2 3 1 3 1 2 1 2 2 3 1 2 2 3 2 3 2 3 1 2 2 3 1 2 1 3 2 3 1 2 1 2 1 2 1 3 1 3...
output:
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok answer = 1
Test #93:
score: 0
Accepted
time: 81ms
memory: 16696kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
61841 43665 21393 21265 21137 21009 20881 20753 20625 20497 20369 20241 20113 19985 19857 19729 21649 19473 19345 19217 19089 18961 18833 18705 18577 18449 18321 18193 18065 17937 17809 23697 25617 25489 25361 25233 25105 24977 24849 24721 24593 24465 24337 24209 24081 23953 23825 25745 23569 23441 ...
result:
ok answer = 300000
Test #94:
score: 0
Accepted
time: 87ms
memory: 16844kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
61841 43665 21521 21393 21265 21137 21009 20881 20753 20625 20497 20369 20241 20113 19985 19857 19729 21649 19473 19345 19217 19089 18961 18833 18705 18577 18449 18321 18193 18065 17937 17809 23697 25617 25489 25361 25233 25105 24977 24849 24721 24593 24465 24337 24209 24081 23953 23825 25745 23569 ...
result:
ok answer = 300000
Test #95:
score: 0
Accepted
time: 84ms
memory: 16836kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
61841 43665 21521 21393 21265 21137 21009 20881 20753 20625 20497 20369 20241 20113 19985 19857 19729 21649 19473 19345 19217 19089 18961 18833 18705 18577 18449 18321 18193 18065 17937 17809 23697 25617 25489 25361 25233 25105 24977 24849 24721 24593 24465 24337 24209 24081 23953 23825 25745 23569 ...
result:
ok answer = 300000
Test #96:
score: 0
Accepted
time: 81ms
memory: 16836kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
116529 90113 63361 63345 63329 63313 63297 63281 63265 63249 63393 63217 63201 63185 63169 63153 63137 63121 63105 63553 63697 63681 63665 63649 63633 63617 63601 63585 63569 63713 63537 63521 63505 63489 63473 63457 63441 63425 63409 63233 62753 62737 62721 62705 62689 62673 62657 62641 62625 62769...
result:
ok answer = 300000
Test #97:
score: 0
Accepted
time: 85ms
memory: 16788kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
116529 90113 63361 63345 63329 63313 63297 63281 63265 63249 63393 63217 63201 63185 63169 63153 63137 63121 63105 63553 63697 63681 63665 63649 63633 63617 63601 63585 63569 63713 63537 63521 63505 63489 63473 63457 63441 63425 63409 63233 62753 62737 62721 62705 62689 62673 62657 62641 62625 62769...
result:
ok answer = 300000
Test #98:
score: 0
Accepted
time: 80ms
memory: 16728kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
116529 90113 63361 63345 63329 63313 63297 63281 63265 63249 63393 63217 63201 63185 63169 63153 63137 63121 63105 63553 63697 63681 63665 63649 63633 63617 63601 63585 63569 63713 63537 63521 63505 63489 63473 63457 63441 63425 63409 63233 62753 62737 62721 62705 62689 62673 62657 62641 62625 62769...
result:
ok answer = 300000
Test #99:
score: 0
Accepted
time: 87ms
memory: 16720kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
16645 21 116677 116673 116669 116665 116661 116657 116653 116649 116645 116641 116685 116633 116629 116625 116621 116617 116613 116609 116605 116601 116597 116593 116733 116781 116777 116773 116769 116765 116761 116757 116753 116749 116745 116741 116737 116785 116729 116725 116721 116717 116713 1167...
result:
ok answer = 300000
Test #100:
score: 0
Accepted
time: 88ms
memory: 16836kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
16645 21 116677 116673 116669 116665 116661 116657 116653 116649 116645 116641 116685 116633 116629 116625 116621 116617 116613 116609 116605 116601 116597 116593 116733 116781 116777 116773 116769 116765 116761 116757 116753 116749 116745 116741 116737 116785 116729 116725 116721 116717 116713 1167...
result:
ok answer = 300000
Test #101:
score: 0
Accepted
time: 84ms
memory: 16712kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
16645 21 116677 116673 116669 116665 116661 116657 116653 116649 116645 116641 116685 116633 116629 116625 116621 116617 116613 116609 116605 116601 116597 116593 116733 116781 116777 116773 116769 116765 116761 116757 116753 116749 116745 116741 116737 116785 116729 116725 116721 116717 116713 1167...
result:
ok answer = 300000
Test #102:
score: 0
Accepted
time: 91ms
memory: 16792kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
16671 11 116645 116647 116649 116651 116653 116655 116657 116659 116661 116663 116665 116693 116669 116671 116673 116675 116677 116679 116681 116683 116685 116687 116689 116691 116667 116597 116599 116601 116603 116605 116607 116609 116611 116613 116615 116617 116643 116621 116623 116625 116627 1166...
result:
ok answer = 300000
Test #103:
score: 0
Accepted
time: 84ms
memory: 16788kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
16671 11 116647 116649 116651 116653 116655 116657 116659 116661 116663 116665 116693 116669 116671 116673 116675 116677 116679 116681 116683 116685 116687 116689 116691 116667 116597 116599 116601 116603 116605 116607 116609 116611 116613 116615 116617 116643 116621 116623 116625 116627 116629 1166...
result:
ok answer = 300000
Test #104:
score: 0
Accepted
time: 76ms
memory: 16708kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
16671 11 116647 116649 116651 116653 116655 116657 116659 116661 116663 116665 116693 116669 116671 116673 116675 116677 116679 116681 116683 116685 116687 116689 116691 116667 116597 116599 116601 116603 116605 116607 116609 116611 116613 116615 116617 116643 116621 116623 116625 116627 116629 1166...
result:
ok answer = 300000
Test #105:
score: 0
Accepted
time: 85ms
memory: 16704kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
16671 11 116647 116649 116651 116653 116655 116657 116659 116661 116663 116665 116693 116669 116671 116673 116675 116677 116679 116681 116683 116685 116687 116689 116691 116667 116597 116599 116601 116603 116605 116607 116609 116611 116613 116615 116617 116643 116621 116623 116625 116627 116629 1166...
result:
ok answer = 300000
Test #106:
score: 0
Accepted
time: 91ms
memory: 16836kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
99993 75008 50002 50001 50000 49999 49998 49997 49996 49995 50003 49993 49992 49991 49990 49989 49988 49987 49986 50012 50021 50020 50019 50018 50017 50016 50015 50014 50013 50022 50011 50010 50009 50008 50007 50006 50005 50004 49994 49966 49965 49964 49963 49962 49961 49960 49959 49967 49957 49956 ...
result:
ok answer = 300000
Test #107:
score: 0
Accepted
time: 83ms
memory: 16656kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
99993 75008 50002 50001 50000 49999 49998 49997 49996 49995 50003 49993 49992 49991 49990 49989 49988 49987 49986 50012 50021 50020 50019 50018 50017 50016 50015 50014 50013 50022 50011 50010 50009 50008 50007 50006 50005 50004 49994 49966 49965 49964 49963 49962 49961 49960 49959 49967 49957 49956 ...
result:
ok answer = 300000
Test #108:
score: 0
Accepted
time: 72ms
memory: 16776kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
99993 75008 50002 50001 50000 49999 49998 49997 49996 49995 50003 49993 49992 49991 49990 49989 49988 49987 49986 50012 50021 50020 50019 50018 50017 50016 50015 50014 50013 50022 50011 50010 50009 50008 50007 50006 50005 50004 49994 49966 49965 49964 49963 49962 49961 49960 49959 49967 49957 49956 ...
result:
ok answer = 300000
Test #109:
score: 0
Accepted
time: 91ms
memory: 16804kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
99993 75008 50002 50001 50000 49999 49998 49997 49996 49995 50003 49993 49992 49991 49990 49989 49988 49987 49986 50012 50021 50020 50019 50018 50017 50016 50015 50014 50013 50022 50011 50010 50009 50008 50007 50006 50005 50004 49994 49966 49965 49964 49963 49962 49961 49960 49959 49967 49957 49956 ...
result:
ok answer = 300000
Test #110:
score: 0
Accepted
time: 89ms
memory: 16732kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
99993 75008 50002 50001 50000 49999 49998 49997 49996 49995 50003 49993 49992 49991 49990 49989 49988 49987 49986 50012 50021 50020 50019 50018 50017 50016 50015 50014 50013 50022 50011 50010 50009 50008 50007 50006 50005 50004 49994 49966 49965 49964 49963 49962 49961 49960 49959 49967 49957 49956 ...
result:
ok answer = 300000
Test #111:
score: 0
Accepted
time: 95ms
memory: 16784kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
99993 75008 50002 50001 50000 49999 49998 49997 49996 49995 50003 49993 49992 49991 49990 49989 49988 49987 49986 50012 50021 50020 50019 50018 50017 50016 50015 50014 50013 50022 50011 50010 50009 50008 50007 50006 50005 50004 49994 49966 49965 49964 49963 49962 49961 49960 49959 49967 49957 49956 ...
result:
ok answer = 300000
Test #112:
score: 0
Accepted
time: 96ms
memory: 16716kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
99993 50002 50001 50000 49999 49998 49997 49996 49995 50003 49993 49992 49991 49990 49989 49988 49987 49986 50012 50021 50020 50019 50018 50017 50016 50015 50014 50013 50022 50011 50010 50009 50008 50007 50006 50005 50004 49994 49966 49965 49964 49963 49962 49961 49960 49959 49967 49957 49956 49955 ...
result:
ok answer = 300000
Test #113:
score: 0
Accepted
time: 92ms
memory: 16716kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
99993 50002 50001 50000 49999 49998 49997 49996 49995 50003 49993 49992 49991 49990 49989 49988 49987 49986 50012 50021 50020 50019 50018 50017 50016 50015 50014 50013 50022 50011 50010 50009 50008 50007 50006 50005 50004 49994 49966 49965 49964 49963 49962 49961 49960 49959 49967 49957 49956 49955 ...
result:
ok answer = 300000
Test #114:
score: 0
Accepted
time: 87ms
memory: 16840kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
50001 75009 50000 49999 49998 49997 49996 49995 50003 49993 49992 49991 49990 49989 49988 49987 49986 50012 50021 50020 50019 50018 50017 50016 50015 50014 50013 50022 50011 50010 50009 50008 50007 50006 50005 50004 49994 49966 49965 49964 49963 49962 49961 49960 49959 49967 49957 49956 49955 49954 ...
result:
ok answer = 299999
Test #115:
score: 0
Accepted
time: 103ms
memory: 23868kb
input:
300000 150000 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 ...
result:
ok answer = 150000
Test #116:
score: 0
Accepted
time: 86ms
memory: 16796kb
input:
300000 150000 1 2 2 300000 1 3 3 300000 1 4 4 300000 1 5 5 300000 1 6 6 300000 1 7 7 300000 1 8 8 300000 1 9 9 300000 1 10 10 300000 1 11 11 300000 1 12 12 300000 1 13 13 300000 1 14 14 300000 1 15 15 300000 1 16 16 300000 1 17 17 300000 1 18 18 300000 1 19 19 300000 1 20 20 300000 1 21 21 300000 1 ...
output:
1 150000 2 1 3 2 4 3 5 4 6 5 7 6 8 7 9 8 10 9 11 10 12 11 13 12 14 13 15 14 16 15 17 16 18 17 19 18 20 19 21 20 22 21 23 22 24 23 25 24 26 25 27 26 28 27 29 28 30 29 31 30 32 31 33 32 34 33 35 34 36 35 37 36 38 37 39 38 40 39 41 40 42 41 43 42 44 43 45 44 46 45 47 46 48 47 49 48 50 49 51 50 52 51 53...
result:
ok answer = 299999
Test #117:
score: 0
Accepted
time: 82ms
memory: 16656kb
input:
300000 150000 1 2 3 300000 1 3 4 300000 1 4 5 300000 1 5 6 300000 1 6 7 300000 1 7 8 300000 1 8 9 300000 1 9 10 300000 1 10 11 300000 1 11 12 300000 1 12 13 300000 1 13 14 300000 1 14 15 300000 1 15 16 300000 1 16 17 300000 1 17 18 300000 1 18 19 300000 1 19 20 300000 1 20 21 300000 1 21 22 300000 1...
output:
1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 53 ...
result:
ok answer = 300000
Test #118:
score: 0
Accepted
time: 104ms
memory: 17484kb
input:
300000 151658 8 10 9 10 1 6 8 10 7 10 3 9 8 9 9 10 3 5 1 8 9 10 7 8 3 4 8 9 5 6 8 9 1 8 3 5 7 10 2 5 9 10 2 4 1 9 2 3 7 10 3 7 8 10 4 7 9 10 4 5 2 10 2 4 6 10 6 10 3 4 2 3 1 2 9 10 7 8 8 10 7 10 9 10 6 10 1 7 3 7 8 10 3 6 9 10 6 10 5 8 7 9 3 10 1 4 8 9 9 10 4 7 3 9 4 6 1 7 2 10 7 9 3 4 2 3 2 6 6 10 ...
output:
99108 100378 55042 88645 62171 133357 88647 101600 39449 133358 101597 62159 11239 88655 61358 88658 133359 59420 62156 34362 101591 12464 133360 7521 62202 89240 88619 82849 101625 24540 133361 22436 32268 32269 18900 23348 240 101624 62196 88624 62184 101619 32270 96491 89255 88632 50241 101615 32...
result:
ok answer = 285014
Test #119:
score: 0
Accepted
time: 99ms
memory: 17532kb
input:
300000 161017 8 10 7 8 8 10 7 9 7 10 9 10 3 10 1 4 9 10 2 9 7 10 7 10 8 9 7 9 1 5 6 10 3 10 2 4 1 2 1 6 6 9 1 8 6 9 5 6 7 8 9 10 8 9 1 5 7 10 9 10 1 3 3 6 9 10 2 9 3 4 1 10 4 5 9 10 8 10 3 10 1 2 6 9 5 6 7 9 1 9 8 9 7 9 5 10 8 9 8 10 1 3 7 10 4 7 8 10 5 8 8 9 5 9 3 4 8 9 8 10 8 10 1 10 4 7 3 4 9 10 ...
output:
67411 103907 67680 48916 48909 105462 3644 23162 105461 133843 48873 48869 67700 48897 31651 40855 3645 20738 2165 55377 40842 133844 40866 61418 103891 105407 68495 31650 48954 105545 9668 64203 105543 133845 19469 133846 26174 105594 68329 3621 2452 40894 43959 48966 133847 68695 48930 16115 68558...
result:
ok answer = 294859
Test #120:
score: 0
Accepted
time: 93ms
memory: 17608kb
input:
300000 157295 1 2 3 7 5 6 8 9 3 9 4 6 4 7 8 9 2 7 9 10 1 6 8 10 3 4 9 10 9 10 2 3 2 4 9 10 4 6 9 10 5 10 6 10 9 10 4 5 8 9 3 10 1 9 2 10 2 4 5 8 4 6 9 10 5 8 1 5 1 9 1 7 5 10 6 9 3 4 2 5 8 9 8 9 1 10 2 9 9 10 2 3 8 9 3 4 4 7 5 8 9 10 5 10 5 9 5 8 2 7 9 10 4 8 4 9 5 8 5 8 9 10 2 4 7 9 4 10 5 10 5 7 2...
output:
1997 92351 60806 67828 133690 63792 85708 67823 95289 100756 55799 67818 11214 100668 100685 10644 20175 100682 63794 100748 23958 39861 101085 25936 67544 2481 133691 133692 18575 115683 47639 100903 115681 31682 133693 97196 23716 39827 19289 59201 68270 68357 133694 133695 100778 4203 67966 15890...
result:
ok answer = 290984
Test #121:
score: 0
Accepted
time: 99ms
memory: 17464kb
input:
300000 152600 6 10 6 7 1 2 1 6 4 7 3 7 3 10 8 10 1 10 6 10 1 8 6 7 9 10 1 2 5 8 8 10 9 10 7 10 5 9 3 10 3 4 2 5 2 9 6 8 6 8 3 4 1 8 7 8 5 8 8 10 9 10 2 3 4 6 6 8 1 10 3 4 4 7 6 10 6 10 5 10 4 10 7 8 5 8 8 9 2 3 4 5 1 10 7 10 2 10 5 10 2 6 9 10 3 5 3 6 3 4 7 10 9 10 1 2 5 7 4 8 5 9 9 10 9 10 4 10 9 1...
output:
28213 73800 138 55846 87969 88585 2989 95791 133719 28210 133720 73797 101101 699 116220 95860 101123 50690 23396 2997 17162 38152 133721 113909 113906 10938 133722 102887 116221 95830 101247 23713 49252 113904 133723 18676 87956 28206 28235 23395 3679 102889 116222 95621 3703 26942 133724 50688 133...
result:
ok answer = 286318