QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#284413 | #5687. 速战速决 | simonG# | AC ✓ | 41ms | 16320kb | C++14 | 1.4kb | 2023-12-16 13:25:54 | 2023-12-16 13:25:55 |
Judging History
answer
#include<bits/stdc++.h>
#define il inline
#define re register
#define ll long long
#define pb push_back
using namespace std;
const int N=1e6+10;
#define gc() getchar()
il int rd(){
int x=0,f=1;
char ch=gc();
while(!isdigit(ch)){if(ch=='-')f=-1;ch=gc();}
while(isdigit(ch))x=(x<<3)+(x<<1)+(ch^48),ch=gc();
return x*f;
}
int n;
int a[N],cnt[N],vis[N];
vector<int>q;
int insert(int x){
int p=rand()%n+1;
while(p==q.front()||!cnt[p]||p==x)p=rand()%n+1;
--cnt[p],vis[p]=1,q.pb(p);
return p;
}
void delet(){
++cnt[q.back()],vis[q.back()]=0,q.pop_back();
}
void Main(){
n=rd();
for(int i=1; i<=n; ++i)a[i]=rd();
srand(time(0));
if(n==1){
puts("-1");
return;
}
for(int i=1; i<=n; ++i)++cnt[a[i]];
for(int i=1; i<=n; ++i)cnt[i]=2-cnt[i];
for(int i=1; i<=n; ++i){
if(cnt[i]==2){
printf("%d\n",n);
printf("%d ",i);vis[i]=1;q.pb(i),--cnt[i];
q.pb(a[1]),vis[a[1]]=1;
for(int j=2; j<=n; ++j){
if(vis[a[j]]){
printf("%d ",q.front());
while(!q.empty())delet();
}else{
printf("%d ",insert(a[j]));
}
q.pb(a[j]),vis[a[j]]=1;
}
exit(0);
}
}
printf("%d\n",n+2);
printf("%d ",a[n]);
for(int i=1; i<n; ++i)printf("%d ",a[i]);
printf("%d %d",a[1],a[1]);
}
signed main(){
// freopen(".in","r",stdin);
// freopen(".out","w",stdout);
int T=1;
while(T--)Main();
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 22ms
memory: 8788kb
input:
249665 195633 37425 205189 128330 159707 98406 111454 30346 158516 121742 107964 50039 201395 16843 182333 60177 195166 188257 172666 71779 157060 237654 123572 145065 57507 152240 187931 5706 191077 214174 70950 71272 172767 61529 85258 74139 44633 181186 223348 222711 19237 239887 20487 84130 1392...
output:
249665 2 25568 198896 72395 237978 123645 219811 140090 153202 207749 240254 188600 234410 24112 216458 249451 127085 197218 113336 93271 25836 159177 99826 63500 37998 112578 234667 23162 68914 7915 35102 57226 31647 43763 56753 120137 182023 239563 237373 239348 218236 69943 237701 48230 13871 101...
result:
ok Correct.
Test #2:
score: 0
Accepted
time: 35ms
memory: 12952kb
input:
289892 233602 170432 186700 23520 1359 74354 61778 97676 141808 279091 86618 107162 187289 270874 5771 92359 256248 59758 201034 111974 157736 29506 210946 178606 275526 119662 142498 119239 245490 9443 240901 72345 207797 759 91770 131534 189757 72201 5921 152878 237072 146758 101282 50083 61126 26...
output:
289892 245154 109127 101491 236569 261007 66605 109016 145932 209990 161066 86433 80191 255779 18377 148137 100794 12080 116695 264993 241539 271208 20671 39083 86901 110877 61673 50261 194439 266043 132680 282415 63631 278094 130301 10307 249209 196905 119323 141536 153290 26784 227968 233481 28958...
result:
ok Correct.
Test #3:
score: 0
Accepted
time: 36ms
memory: 11196kb
input:
292190 145417 283887 12115 4326 45188 164129 14638 269369 233283 201793 241021 17606 90840 34917 16328 180328 261955 172583 181417 7942 223673 262641 28684 237776 243658 74833 205577 122527 28528 249819 73252 270152 117871 31565 204148 216504 192924 29203 143059 154759 104752 69112 166848 232567 962...
output:
292190 2 209502 180471 246193 177847 255541 6004 286047 153839 106565 149692 220215 203140 98033 224774 86665 139183 201375 258959 232674 266626 177403 41290 223060 253605 136841 247461 228981 290680 61835 86482 59941 206571 17137 181416 77640 166222 215864 123180 278284 137512 32212 53482 80714 285...
result:
ok Correct.
Test #4:
score: 0
Accepted
time: 39ms
memory: 16320kb
input:
289638 179249 177210 122624 75928 106218 13899 249362 245081 212282 3125 52160 49231 77788 143892 158982 277667 242837 199352 19097 201259 164534 261237 201825 180668 58106 141543 286211 251784 6410 112507 51157 93955 107491 250456 58875 36203 234469 45239 283807 106103 197348 238937 162203 287869 1...
output:
289638 1 45819 243542 276583 99728 270888 253422 55991 161353 95063 151524 51572 117956 208593 88484 251592 78380 142654 41451 3030 52785 132821 208642 251217 97604 128105 246672 91910 186243 227921 237816 134718 168164 54493 43355 115333 132503 11551 118363 18984 210317 81432 173342 14003 102817 16...
result:
ok Correct.
Test #5:
score: 0
Accepted
time: 22ms
memory: 12796kb
input:
261175 113751 113751 247389 247389 106728 106728 249714 249714 128388 128388 216271 216271 163974 163974 245217 245217 246248 246248 51361 51361 176423 176423 19217 19217 197524 197524 251874 251874 112335 112335 160213 160213 60037 60037 250967 250967 187608 187608 214950 214950 208541 208541 25669...
output:
261175 2 2 231993 113751 209187 247389 77136 106728 86104 249714 146454 128388 116866 216271 240444 163974 51864 245217 62764 246248 29396 51361 143156 176423 172848 19217 143048 197524 241508 251874 144 112335 252906 160213 82185 60037 188716 250967 120925 187608 76558 214950 38800 208541 252185 25...
result:
ok Correct.
Test #6:
score: 0
Accepted
time: 31ms
memory: 14128kb
input:
235687 63799 71109 20584 139647 35537 3706 218536 48564 213438 186010 156300 113267 147774 194058 51317 150706 90938 10941 6713 175756 29369 170762 71917 56104 19923 152417 157391 24269 651 205117 57134 130459 204707 14596 183539 32848 219225 58014 162840 153464 135755 16381 91308 77955 176504 66784...
output:
235687 200863 227045 226016 228868 93760 81969 15658 202693 42236 207110 84628 54465 119161 8457 149173 18496 163919 166026 60422 151083 227030 41795 23478 130475 60879 209661 156540 147517 14896 154837 122481 122986 6804 209105 116166 100563 55386 131823 67568 193918 103246 12804 12695 83015 21261 ...
result:
ok Correct.
Test #7:
score: 0
Accepted
time: 37ms
memory: 14656kb
input:
286065 210717 98065 272406 215134 231139 267285 38811 254951 247150 55368 273010 247371 85937 256408 11755 96321 53159 66358 234133 68621 160218 285535 185357 247070 261590 43071 54158 13202 281537 21836 3621 234524 109158 188905 62618 144070 211133 129125 262129 85892 198535 174556 2297 62475 19242...
output:
286065 21 78065 5541 232847 271189 123550 24239 21596 19483 281384 58400 55528 26702 107536 176251 77420 157703 189006 135639 28839 124136 140213 140583 261130 242919 224955 30872 60353 263718 45476 67979 67072 93768 3517 131778 149296 30218 239313 45788 88950 30667 186692 56425 194676 246549 251737...
result:
ok Correct.
Test #8:
score: 0
Accepted
time: 28ms
memory: 8828kb
input:
296716 132049 132049 256044 256044 110447 110447 263700 263700 36769 36769 171894 171894 60205 60205 227616 227616 286799 286799 281611 281611 124684 124684 284840 284840 213378 213378 140028 140028 7425 7425 154415 154415 71482 71482 156517 156517 295706 295706 142794 142794 10192 10192 132364 1323...
output:
296716 1 1 276385 132049 212315 256044 275351 110447 21195 263700 58267 36769 156796 171894 39856 60205 28291 227616 120012 286799 44311 281611 199359 124684 98523 284840 227755 213378 155039 140028 167367 7425 30146 154415 101929 71482 88635 156517 146901 295706 10561 142794 221939 10192 110880 132...
result:
ok Correct.
Test #9:
score: 0
Accepted
time: 0ms
memory: 5744kb
input:
1 1
output:
-1
result:
ok Correct.
Test #10:
score: 0
Accepted
time: 1ms
memory: 7956kb
input:
2 1 1
output:
2 2 2
result:
ok Correct.
Test #11:
score: 0
Accepted
time: 1ms
memory: 7952kb
input:
4 1 1 4 2
output:
4 3 3 3 3
result:
ok Correct.
Test #12:
score: 0
Accepted
time: 1ms
memory: 7952kb
input:
5 2 4 3 4 3
output:
5 1 5 5 1 2
result:
ok Correct.
Test #13:
score: 0
Accepted
time: 2ms
memory: 7792kb
input:
170 170 120 157 41 148 30 14 132 155 139 91 72 110 74 112 52 68 69 106 62 141 123 70 53 129 96 134 167 87 48 28 12 37 96 118 127 119 110 128 5 51 38 60 98 23 112 137 11 73 74 47 35 105 101 67 129 10 28 46 10 20 138 36 97 44 63 162 109 168 5 80 66 100 168 124 25 121 98 103 53 22 73 21 84 44 164 12 12...
output:
170 3 49 59 165 33 65 62 47 116 149 123 94 122 130 139 42 88 35 117 3 51 93 152 118 50 33 170 141 133 36 45 69 106 62 115 95 68 78 27 28 77 69 164 32 159 20 26 130 154 49 120 76 123 85 26 132 154 96 5 68 98 141 24 165 73 143 64 50 40 28 85 4 15 115 65 40 75 90 88 24 165 41 14 82 125 44 85 153 120 55...
result:
ok Correct.
Test #14:
score: 0
Accepted
time: 38ms
memory: 14260kb
input:
298282 111238 21426 241947 111803 215806 257154 180196 187662 265628 113962 69090 19116 218515 256928 214215 246498 208920 166101 33496 99919 228275 241615 680 47148 193116 62529 290930 107840 27286 163363 140988 112469 35229 87471 231114 282993 90834 143707 256766 641 40265 127700 233599 188382 258...
output:
298282 1 287519 244791 85131 148647 7273 12676 91813 145567 135890 254816 136572 250064 295214 109313 2014 1992 46309 47689 79645 14686 167874 22592 90099 265783 183359 275574 275665 269611 260024 226144 1965 60276 71545 258030 73536 255349 183654 36712 131132 185658 53055 2194 163922 289905 131422 ...
result:
ok Correct.
Test #15:
score: 0
Accepted
time: 2ms
memory: 7824kb
input:
7028 890 4919 5516 4507 881 1936 1250 6879 4020 5347 3632 2088 5719 6828 551 5743 3912 6283 4373 3916 3021 5444 433 604 2506 6891 4206 287 3619 3247 1250 3358 1476 917 1539 2040 5753 2814 1672 5945 6116 1111 1466 6149 4596 2993 3646 3255 4591 1004 4842 2980 1872 4229 5947 6638 5634 3936 4390 6775 79...
output:
7028 3 6227 517 4322 700 1120 2667 1539 2012 564 772 5055 1288 546 3318 3797 1353 3389 6120 5718 54 6828 6384 5338 5946 4537 5621 2299 5800 4025 3 5835 1868 6036 6398 2640 3123 6745 6128 2094 679 3447 5344 827 2538 6544 1652 519 1007 4916 185 2424 4865 342 3636 3427 4586 4563 2434 3015 4616 2732 536...
result:
ok Correct.
Test #16:
score: 0
Accepted
time: 4ms
memory: 7920kb
input:
32718 16672 3857 28075 31442 14228 19512 993 27269 22217 2896 23349 9568 19344 3385 7921 12538 17485 22980 27110 24464 12290 15835 22520 3365 13285 31694 5529 27028 21009 19947 9552 5335 19363 17106 17913 7719 27902 25714 23157 7832 29338 13282 28188 10767 9027 11009 12352 20744 3915 8839 5517 9251 ...
output:
32718 2 30596 26317 23069 11395 29060 9506 3213 29315 7584 4750 4426 19909 28504 15349 2112 9325 14219 27932 21262 14062 26050 11186 31644 4784 32417 28843 26500 26632 11962 1920 27846 16388 16829 18631 20886 18012 31862 29823 32215 25036 24729 19866 3985 31051 25007 30834 21958 13618 11295 13140 20...
result:
ok Correct.
Test #17:
score: 0
Accepted
time: 21ms
memory: 7800kb
input:
249939 116706 120073 87891 238536 248923 178942 236407 175545 209802 92808 226143 235269 231651 150564 19412 193312 9344 201164 177304 66666 141887 219987 202707 120853 204395 46154 215762 14059 119025 174198 230364 145992 235982 84009 202274 123063 134691 54501 126175 1720 182402 196639 82163 23284...
output:
249941 155443 116706 120073 87891 238536 248923 178942 236407 175545 209802 92808 226143 235269 231651 150564 19412 193312 9344 201164 177304 66666 141887 219987 202707 120853 204395 46154 215762 14059 119025 174198 230364 145992 235982 84009 202274 123063 134691 54501 126175 1720 182402 196639 8216...
result:
ok Correct.
Test #18:
score: 0
Accepted
time: 20ms
memory: 12016kb
input:
262408 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 1...
output:
262410 122857 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 9...
result:
ok Correct.
Test #19:
score: 0
Accepted
time: 1ms
memory: 7968kb
input:
1168 632 604 584 718 309 868 1075 26 798 350 661 882 118 608 1098 941 820 849 43 1072 586 831 156 1091 1026 1095 153 705 1162 190 233 406 334 840 1111 455 628 591 181 510 271 836 619 205 783 804 790 148 927 931 218 489 802 452 258 805 96 1157 555 759 440 434 617 127 735 755 685 137 794 771 973 785 1...
output:
1170 454 632 604 584 718 309 868 1075 26 798 350 661 882 118 608 1098 941 820 849 43 1072 586 831 156 1091 1026 1095 153 705 1162 190 233 406 334 840 1111 455 628 591 181 510 271 836 619 205 783 804 790 148 927 931 218 489 802 452 258 805 96 1157 555 759 440 434 617 127 735 755 685 137 794 771 973 7...
result:
ok Correct.
Test #20:
score: 0
Accepted
time: 34ms
memory: 13900kb
input:
300000 104295 48676 395 395 273643 68529 62334 62334 146939 291394 182029 146939 219449 130707 130707 225020 198772 282573 38527 190585 282573 9721 9721 78157 78157 44428 77693 44428 187455 76599 187455 239996 239996 230137 202169 230137 269585 269585 257894 257894 177938 134861 95517 134861 246402 ...
output:
300000 4 147184 76756 4 100681 265201 8645 395 64814 140325 279381 62334 258874 105534 146939 268522 65824 286223 15715 220690 130707 53738 282573 194449 9721 204048 58665 78157 200702 199410 44428 112083 187455 257379 294125 239996 132604 230137 178777 269585 218584 33191 2337 257894 206900 134861 ...
result:
ok Correct.
Test #21:
score: 0
Accepted
time: 35ms
memory: 9140kb
input:
300000 87002 285451 161600 161600 285451 290676 288087 166754 288087 290676 54689 54689 219596 115692 115692 42659 93485 93485 147006 140572 59474 140572 147006 219300 176128 99511 176128 219300 117804 172670 172670 117804 189707 91911 179972 91911 254263 281118 281118 268480 268480 290250 13021 130...
output:
300000 2 48435 244349 2 25327 8645 260486 197201 161600 64814 140325 288087 279381 258874 54689 105534 286223 115692 141385 220690 154907 93485 53738 194449 126639 58665 140572 130918 199410 112083 176128 257379 95142 178777 16010 172670 101125 218584 91911 33191 281118 2337 139273 268480 120595 163...
result:
ok Correct.
Test #22:
score: 0
Accepted
time: 29ms
memory: 14392kb
input:
300000 112999 72586 108286 72586 112999 20881 20881 224942 172419 170284 170284 172419 88064 86223 86223 88064 153765 170621 213836 213836 170621 153765 98041 98041 61745 28149 5574 61745 28149 5574 90390 162637 194064 194064 2592 234404 90390 142072 173605 267231 267231 68638 173605 142072 197824 3...
output:
300000 2 79086 133197 2 136750 96904 72586 94090 66109 46889 20881 36561 257292 191349 170284 58662 90182 254581 264160 86223 31363 177510 291995 213836 182838 10096 59672 98041 148597 296245 93148 249251 140017 61745 63395 255784 210364 51482 166691 71100 194064 74839 293324 52996 39886 208493 5873...
result:
ok Correct.
Test #23:
score: 0
Accepted
time: 35ms
memory: 14008kb
input:
300000 212412 202528 109689 219686 219686 202528 212412 298389 215032 215032 48782 253326 212566 212566 253326 48782 181793 181793 85358 85358 107085 152733 131633 134140 107085 243759 152733 131633 134140 240845 45475 234872 242812 242812 234872 45475 240845 187548 51249 187548 51249 137738 277850 ...
output:
300000 1 79086 20221 46889 1 58662 90182 254581 264160 219686 66875 31363 177510 215032 182838 140693 10096 212566 5534 181793 296245 93148 69076 268174 85358 140017 63395 255784 202532 51482 166691 193591 92364 107085 71100 74839 191553 293324 143545 242812 39886 297857 58739 116262 187548 270763 2...
result:
ok Correct.
Test #24:
score: 0
Accepted
time: 33ms
memory: 10912kb
input:
300000 112542 130897 148582 5771 5771 148582 130897 232285 78322 60911 233311 254507 299395 152670 200813 232285 78322 60911 233311 254507 299395 152670 200813 69442 69442 201471 69034 270365 225839 131571 225839 270365 69034 188076 96199 50969 208116 4324 143204 124928 215229 132229 188076 96199 50...
output:
300000 2 117160 142349 100805 2 167915 129447 207522 259849 526 143941 264422 131638 135976 131185 5771 274151 123709 80769 248570 184040 81986 285499 52569 232285 30033 27730 278699 195645 108146 69442 188728 281695 87630 24124 295906 272693 179945 166735 149170 205636 149718 225839 97507 261714 21...
result:
ok Correct.
Test #25:
score: 0
Accepted
time: 34ms
memory: 9132kb
input:
300000 179741 243130 281430 74491 13391 223051 192090 128383 153327 137170 198445 210063 224906 83630 23956 201656 28271 277409 179741 243130 281430 74491 13391 223051 192090 128383 153327 137170 198445 210063 224906 83630 23956 201656 28271 277409 271734 87773 269885 13663 30764 88206 91123 124511 ...
output:
300000 2 117160 38212 25076 128781 142349 100805 226131 167915 207522 526 143941 264422 131638 131185 119928 80769 248570 2 104168 285499 226926 30033 27730 281207 195645 71845 32668 36267 287845 87630 24124 84750 166735 76860 65880 278711 156606 205636 187873 33558 69824 94052 133299 298248 246047 ...
result:
ok Correct.
Test #26:
score: 0
Accepted
time: 41ms
memory: 8804kb
input:
300000 139446 61864 68262 149230 149373 279654 17726 230439 297464 142781 167021 124753 91655 290220 59543 16277 52572 271693 278606 49886 184692 180209 214393 276580 59459 46417 142105 23181 59049 66183 220591 184915 171415 112565 125304 155622 117616 229964 57093 254362 113285 202551 200476 185347...
output:
300000 1 280667 207586 149805 88509 77889 81527 181627 287101 296846 22872 298906 188899 210342 102552 150700 290895 55204 108911 207188 262789 267649 175238 289099 172083 228322 160433 265684 4214 128304 195355 282813 186228 236771 204219 253766 64270 270458 271718 129149 116391 270208 216488 24630...
result:
ok Correct.
Test #27:
score: 0
Accepted
time: 32ms
memory: 14492kb
input:
300000 146270 82100 178709 216673 243441 48813 85256 178122 50067 292908 21770 238549 237442 3666 36724 36896 36896 36724 3666 237442 238549 21770 292908 50067 178122 85256 48813 243441 216673 178709 82100 146270 131878 99772 287809 178518 62603 262348 115777 55322 226610 274742 233620 136818 289446...
output:
300000 1 271895 88507 233203 250537 47354 280611 99456 212789 288815 185620 222231 288136 238701 101501 234560 1 164598 112877 198481 131405 291523 14100 299725 294414 101225 87187 257491 3034 181175 230344 8614 169054 253611 275477 27748 70713 287505 179689 174102 4366 33141 177640 45776 181242 189...
result:
ok Correct.
Test #28:
score: 0
Accepted
time: 36ms
memory: 14224kb
input:
300000 110731 96171 106010 274368 65451 282684 150154 154863 86678 82340 192026 28631 111490 87537 282850 293573 109287 234161 114226 198876 222954 269690 71677 295044 171910 69378 2018 149024 268028 49018 260414 18125 119076 293176 1401 4168 30842 43974 127995 83144 129178 16744 196739 289093 20671...
output:
300000 1 271895 88507 250537 47354 99456 198549 212789 288815 185620 261891 238701 239915 234560 164598 38978 112877 2023 159511 22960 198481 27818 244998 14100 190071 217132 95237 299725 101225 87187 257491 142198 251785 3034 294052 233363 44228 278101 177532 192745 169054 27748 123976 70713 287505...
result:
ok Correct.
Test #29:
score: 0
Accepted
time: 41ms
memory: 14420kb
input:
300000 117340 164310 228941 59929 237075 132796 74500 119548 257687 159245 275273 80604 274625 160131 251183 296436 295760 261689 261722 30567 78952 115057 169224 262964 123745 295097 44645 115835 68392 208097 251172 269656 206631 212262 225567 69391 30532 150991 204868 289913 68581 65524 269749 226...
output:
300000 1 163157 207845 269225 293314 42576 222426 88735 177397 203080 39035 143450 174735 173625 119235 2702 37643 286168 79954 48134 204150 233710 58990 234093 182808 65019 19183 62965 284782 224908 259578 23069 259395 103022 108719 223523 195415 183904 88051 283063 270891 258399 101277 149831 2576...
result:
ok Correct.
Test #30:
score: 0
Accepted
time: 37ms
memory: 9084kb
input:
300000 77216 220675 295264 63122 6416 23297 51573 277084 9199 122718 254742 291056 278759 283686 188924 106312 104415 178991 187715 187842 268917 12556 289206 19697 169649 108051 34277 235627 62667 186920 141327 134122 73807 123311 276920 91403 270180 224464 126439 129366 124951 52620 236470 51568 2...
output:
300000 1 240382 75958 4770 119434 293588 11017 24684 273556 211797 33973 59205 167248 16065 172798 174640 106595 163778 226028 219615 51392 48255 299040 221525 57265 153941 176232 201593 153845 233975 150567 57998 251195 109390 230832 195438 132218 114919 40387 281445 213439 283477 35923 31383 10611...
result:
ok Correct.
Test #31:
score: 0
Accepted
time: 35ms
memory: 14264kb
input:
300000 69435 276305 282600 72533 5595 43926 8159 32663 166037 140551 182918 262539 91727 152596 87673 115269 234444 2064 196526 154369 257447 1718 160251 217956 175780 72827 259805 270978 85755 290185 265631 176805 250468 11778 230030 103813 92069 159527 50435 166481 281508 143280 241306 286223 2067...
output:
300000 7 75958 269928 64411 228865 11017 167346 273584 215422 33973 247217 16065 174640 183016 106595 91569 226028 236785 51392 24947 176403 214461 73944 57265 153941 243091 201593 57998 109390 230832 50688 195438 275689 288192 106501 132218 270095 188862 270134 40387 213439 283477 35923 48208 10611...
result:
ok Correct.
Test #32:
score: 0
Accepted
time: 35ms
memory: 14864kb
input:
300000 7853 31576 143740 234534 249276 155910 30243 176859 137139 217249 114263 115321 92819 120238 165379 297566 253326 56876 35804 243226 139973 129810 130504 225845 85157 74352 8254 190823 91009 176512 24014 197598 183052 249393 47971 50594 25419 167090 115187 178927 236088 192639 35626 110419 44...
output:
300000 1 67545 241000 296403 14064 268436 37672 112910 151146 18356 96957 206683 268440 105874 135209 12926 52525 65424 85420 222775 289274 32115 219689 75952 8708 104476 149239 287894 284883 157779 9231 128038 160765 109813 162536 248939 26007 10689 291694 13971 84942 17288 253017 69824 122609 1967...
result:
ok Correct.
Test #33:
score: 0
Accepted
time: 33ms
memory: 11556kb
input:
300000 210519 215064 27536 130938 205393 237716 56324 205305 53414 180660 232743 113165 205162 279753 131419 109634 272098 230080 267341 80729 17970 231980 25101 191866 10904 227704 232085 98687 3458 80568 74803 195202 183328 86446 289829 238400 112166 290179 186375 151597 156556 31981 38614 10386 5...
output:
300000 1 296051 285446 296403 168644 14064 33197 268436 112910 56991 138655 96957 136106 268440 135209 99974 225328 292872 222775 289274 219689 75952 8708 104476 29975 149239 287894 284883 84850 157779 9231 75514 144440 128038 160765 112192 162536 291694 274474 283997 251205 13971 17288 253017 69824...
result:
ok Correct.
Test #34:
score: 0
Accepted
time: 36ms
memory: 11660kb
input:
300000 106853 172663 79240 269125 92322 264619 78326 24974 89874 186660 260690 289912 48683 227423 170283 184949 30266 291878 243517 68126 245756 26864 46929 258879 3954 63520 266659 191506 262682 13887 201560 88033 82464 217113 100939 26888 192659 76146 255311 234245 33872 246373 285912 125393 2397...
output:
300000 1 176986 93964 7747 125176 52038 125580 157472 194834 152919 275356 20385 162896 261251 125415 62105 175787 31124 259440 26774 116856 5898 127172 168699 231991 103432 5814 298265 147197 61652 36811 116059 94515 185692 76412 277032 273922 77353 183531 130354 247079 146781 202334 185401 104446 ...
result:
ok Correct.
Test #35:
score: 0
Accepted
time: 38ms
memory: 10744kb
input:
300000 174057 170300 127967 188195 297107 239176 86934 110664 58756 117772 263470 88238 79584 102229 51562 191283 179587 208265 231071 228223 159988 22135 31929 219854 295292 209495 110702 140954 43380 201827 180246 217621 16872 95634 24962 72260 32223 274853 166960 284066 94545 43583 269303 137265 ...
output:
300000 1 14323 199715 178512 232326 31728 294772 297351 75059 299356 212132 242309 47907 289159 37373 208199 2058 287044 159769 269626 217718 275836 64489 79986 141861 296815 28065 236917 207938 287499 78395 115056 115982 214558 285450 120068 49155 257353 219326 212910 78466 158452 253373 190564 186...
result:
ok Correct.