QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#136011#6386. DollsWawi41 106ms7116kbC++201.6kb2023-08-06 17:55:452023-08-06 17:55:48

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-08-06 17:55:48]
  • 评测
  • 测评结果:41
  • 用时:106ms
  • 内存:7116kb
  • [2023-08-06 17:55:45]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

struct cp{
    bool operator()(pair<int,int> a,pair<int,int> b) const{
        return a.first < b.first;
    }  
};

void solve(){
    int n; cin >> n;
    vector<pair<int,int>> arr(5e5 + 20);
    int curr=0;
    for(int i=0; i < n;i++){
        int x; cin >> x;
        if(arr[x].first==0){
            arr[x].first=1;
            curr++;
            if(arr[x-1].first && arr[x+1].first){
                curr--;
                if(arr[x-1].second ==0 && arr[x+1].second==0) curr++;
                arr[x-1].second=0;
                arr[x+1].second=0;
            }
            else if(arr[x-1].first){
                if(arr[x-1].second){
                    curr--;
                    arr[x-1].second=0;
                } else{
                    arr[x].second=1;
                    arr[x-1].second=1;
                    if(x!=1 && arr[x-2].second==0){
                        arr[x-2].second=1;
                    }
                }
            } else if(arr[x+1].first){
                if(arr[x+1].second){
                    curr--;
                    arr[x+1].second=0;
                } else{
                    arr[x].second=1;
                    arr[x+1].second=1;
                    if(arr[x+2].second==0){
                        arr[x+2].second=1;
                    }
                }
            } else{
                arr[x].second=1;
            }
        }
        cout << curr << ' ';
    } 
}

int main(){
    ios::sync_with_stdio(false);
    int t=1;
    // cin >> t;
    while(t--){
        solve();
    }
}

详细

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 3ms
memory: 6940kb

input:

190
57 94 24 27 110 44 72 82 55 7 9 43 22 86 95 84 125 16 75 28 46 10 14 131 112 132 33 53 103 139 118 126 137 13 140 77 25 23 47 116 68 150 81 97 165 58 88 63 42 89 123 11 113 83 124 130 80 35 143 155 153 48 8 136 104 101 90 37 21 99 142 34 64 115 109 26 92 144 61 51 114 49 148 96 60 30 54 134 141 ...

output:

1 2 3 4 5 6 7 8 9 10 11 11 12 13 13 14 15 16 17 17 18 18 19 20 21 21 22 23 24 25 26 26 27 27 27 28 28 28 28 29 30 31 31 32 33 33 34 35 36 36 37 38 38 38 38 39 40 41 42 43 44 45 45 45 45 46 47 48 49 50 50 50 50 50 50 51 52 53 54 55 56 56 57 57 57 58 58 59 59 60 60 61 61 61 61 62 63 63 64 65 66 66 66 ...

result:

wrong answer 1st lines differ - expected: '1 2 3 4 5 6 7 8 9 10 11 11 12 ...7 77 77 77 77 77 77 77 77 77 77', found: '1 2 3 4 5 6 7 8 9 10 11 11 12 ... 90 90 90 90 90 90 90 90 90 90 '

Subtask #2:

score: 14
Accepted

Test #22:

score: 14
Accepted
time: 3ms
memory: 6996kb

input:

3922
1195 63679 1195 96797 63679 60311 456263 228361 96797 270167 60311 169529 60311 60311 456263 270167 169529 375829 169529 169529 270167 375829 60311 228361 1195 375829 96797 375829 375829 96797 375829 169529 456263 375829 1195 375829 456263 96797 169529 228361 63679 270167 212365 456263 270167 9...

output:

1 2 2 3 3 4 5 6 6 7 7 8 8 8 8 8 8 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 ...

result:

ok single line: '1 2 2 3 3 4 5 6 6 7 7 8 8 8 8 ... 10 10 10 10 10 10 10 10 10 10 '

Test #23:

score: 0
Accepted
time: 18ms
memory: 6972kb

input:

37546
255823 496819 131877 21777 481397 180879 90117 66725 83377 206249 93703 442885 435091 246437 179919 223849 27443 74433 142363 142363 16575 201329 389035 88823 155627 408387 435091 309967 88823 22319 432337 270795 18657 27443 281699 498715 246849 304111 308965 369639 390257 220525 419229 369639...

output:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 19 20 21 22 23 24 25 25 26 26 27 28 29 30 30 31 32 33 34 35 36 37 38 39 39 39 39 40 41 42 43 43 43 44 44 45 45 46 47 48 48 49 50 51 52 52 52 52 53 53 54 55 55 55 55 56 57 57 57 57 57 58 58 59 59 59 60 61 61 62 62 63 63 63 63 64 64 64 64 64 65 65 66 67 ...

result:

ok single line: '1 2 3 4 5 6 7 8 9 10 11 12 13 ...00 100 100 100 100 100 100 100 '

Test #24:

score: 0
Accepted
time: 30ms
memory: 7048kb

input:

41860
276641 406759 283073 345379 165557 31359 390947 187927 340289 129395 49647 335337 276755 50995 268817 195463 51921 278123 222361 266371 113513 143919 260233 160821 303295 411785 13473 259459 224893 146469 413425 247107 131953 97541 379057 430675 317003 429927 38801 344173 145729 137651 491731 ...

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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 75 76 77 77 78 79 80 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 ...

result:

ok single line: '1 2 3 4 5 6 7 8 9 10 11 12 13 ...99 999 999 999 999 999 999 999 '

Test #25:

score: 0
Accepted
time: 78ms
memory: 6972kb

input:

98645
228089 101335 314019 349183 189145 106465 335897 227559 270541 83385 203093 453645 99857 42445 253521 211599 483607 160005 7323 359547 403049 301349 308095 164043 283581 243259 447263 429937 53907 67983 160567 446337 236571 74009 346389 421001 437029 369567 269085 484797 452647 295649 192387 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 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 1...

result:

ok single line: '1 2 3 4 5 6 7 8 9 10 11 12 13 ... 4963 4963 4963 4963 4963 4963 '

Test #26:

score: 0
Accepted
time: 50ms
memory: 6960kb

input:

37938
371865 311299 439211 57651 243619 275237 67255 417339 27961 292385 198517 138551 249959 198517 131583 470467 15027 144577 101869 212217 109183 495243 331507 100433 488509 215543 343675 156405 169655 283539 483755 238379 464877 138551 216991 355465 174199 424417 463555 117557 197285 104851 9678...

output:

1 2 3 4 5 6 7 8 9 10 11 12 13 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 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 65 65 66 67 68 69 70 71 72 73 74 75 75 76 77 78 79 80 81 82 83 84 84 85 86 86 87 88 89 90 91 92 93 94 95 96 ...

result:

ok single line: '1 2 3 4 5 6 7 8 9 10 11 12 13 ...49 549 549 549 549 549 549 549 '

Test #27:

score: 0
Accepted
time: 62ms
memory: 6936kb

input:

98592
116133 244261 349815 491501 218293 603 349619 464539 429783 387709 389157 499477 136739 48071 457169 264275 397795 47163 491491 432311 491491 317795 360071 211263 454581 277439 2803 324687 406151 275683 396913 389157 85773 475245 2911 90231 429399 361879 257399 407629 350913 367041 98407 15607...

output:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 20 21 22 23 24 25 26 27 28 29 30 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 55 56 57 58 59 59 60 61 62 63 64 65 66 67 68 68 69 70 71 72 73 74 75 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 90 91 91 92 92 93 94 ...

result:

ok single line: '1 2 3 4 5 6 7 8 9 10 11 12 13 ...49 649 649 649 649 649 649 649 '

Test #28:

score: 0
Accepted
time: 61ms
memory: 6936kb

input:

64877
200321 203705 132935 6479 361745 132257 315203 224257 418049 51043 389507 27795 290325 69833 193285 116341 329025 364671 335887 279251 96755 6329 499601 449985 418891 462195 404295 338799 307309 43833 335857 351519 466465 381491 232083 496047 142741 172985 392001 488517 351519 43081 42587 2553...

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 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 1...

result:

ok single line: '1 2 3 4 5 6 7 8 9 10 11 12 13 ... 9789 9789 9789 9789 9789 9789 '

Test #29:

score: 0
Accepted
time: 97ms
memory: 6936kb

input:

86957
322751 66535 298877 11917 498879 84941 366627 147349 168351 21637 261557 174833 33771 170737 432793 163883 238023 300433 39315 44309 95213 459309 345731 376823 1813 282669 179685 402567 267345 180923 334641 351463 172709 126575 106739 370099 159455 142601 33959 262491 420225 320817 411159 3437...

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 single line: '1 2 3 4 5 6 7 8 9 10 11 12 13 ... 82421 82422 82423 82424 82425 '

Test #30:

score: 0
Accepted
time: 69ms
memory: 6960kb

input:

74315
450381 315661 190847 95339 119573 398563 128317 89533 145013 106335 321273 345231 111069 369235 346197 169383 297957 35339 394309 96145 155481 42591 102923 121267 292159 418543 245191 461041 117699 419991 115683 283105 439665 138993 53819 386019 70339 88581 344609 251317 444817 206855 251055 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 single line: '1 2 3 4 5 6 7 8 9 10 11 12 13 ... 45240 45240 45241 45241 45241 '

Test #31:

score: 0
Accepted
time: 86ms
memory: 7000kb

input:

77662
298925 89327 252173 152445 432475 203675 310619 339357 188615 455979 240305 181673 113859 450661 466577 192157 105081 462889 101139 305705 71269 256935 245765 81435 464931 255945 415019 384231 364155 421677 488103 352859 180851 161651 13701 472159 417545 427241 316135 252955 145387 204873 4023...

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 single line: '1 2 3 4 5 6 7 8 9 10 11 12 13 ... 61139 61140 61140 61141 61142 '

Test #32:

score: 0
Accepted
time: 90ms
memory: 6996kb

input:

85651
43153 494803 147033 350157 286127 65207 447251 312119 484979 355199 420853 353143 205283 87617 264841 480939 246909 319937 122111 288691 440675 68267 317747 345829 190049 312201 293505 23119 108421 243437 94483 348163 309841 22709 235827 118391 269391 337247 20117 66757 255509 58667 355205 129...

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 single line: '1 2 3 4 5 6 7 8 9 10 11 12 13 ... 68434 68434 68435 68435 68435 '

Test #33:

score: 0
Accepted
time: 65ms
memory: 6920kb

input:

98467
287285 432145 473079 153163 309243 116271 84327 17907 119055 92927 24305 225385 4061 153569 340891 455081 266195 239133 374875 166663 42673 450249 58969 85715 496763 104353 377995 370817 422377 361345 33953 248741 134531 361689 204521 228563 334477 171343 294857 419279 367341 384247 281501 426...

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 single line: '1 2 3 4 5 6 7 8 9 10 11 12 13 ... 71946 71946 71947 71948 71949 '

Subtask #3:

score: 27
Accepted

Dependency #2:

100%
Accepted

Test #34:

score: 27
Accepted
time: 82ms
memory: 6952kb

input:

84502
62 13 21 38 23 89 77 51 50 37 39 61 75 1 22 74 73 15 14 29 14 21 23 77 51 75 23 1 37 77 14 15 51 38 89 22 14 61 39 39 21 51 61 23 61 89 22 73 13 22 21 23 75 21 13 13 23 61 15 62 21 29 38 39 15 89 51 37 77 73 22 73 23 1 77 61 1 50 21 23 38 22 73 61 23 39 89 23 38 61 23 73 13 62 74 29 37 75 75 2...

output:

1 2 3 4 5 6 7 8 8 8 9 9 10 11 11 11 12 13 13 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 ...

result:

ok single line: '1 2 3 4 5 6 7 8 8 8 9 9 10 11 ... 14 14 14 14 14 14 14 14 14 14 '

Test #35:

score: 0
Accepted
time: 16ms
memory: 6996kb

input:

42670
82 130 186 198 79 89 33 66 42 78 102 90 34 35 171 185 158 67 107 54 30 91 138 41 173 174 118 83 162 123 149 117 55 53 46 179 187 175 145 103 33 82 103 42 158 41 34 82 198 91 162 67 138 173 30 34 158 186 118 162 174 78 130 46 149 103 55 107 173 118 198 34 175 123 130 90 33 145 187 174 55 145 18...

output:

1 2 3 4 5 6 7 8 9 9 10 10 10 11 12 12 13 13 14 15 16 17 18 18 19 19 20 20 21 22 23 23 23 24 25 26 27 28 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 29 2...

result:

ok single line: '1 2 3 4 5 6 7 8 9 9 10 10 10 1... 29 29 29 29 29 29 29 29 29 29 '

Test #36:

score: 0
Accepted
time: 52ms
memory: 7116kb

input:

64239
13933 17394 3662 13509 9653 15545 7139 11690 13029 11225 7093 9995 6957 2413 6810 8789 8338 1481 10497 8947 7581 12041 9767 16755 13478 1089 11219 6503 16390 7027 2678 6830 5557 10995 12975 7998 5382 3483 925 13233 5071 5773 10698 14019 446 7079 6549 12562 9522 16609 12551 5909 8546 5878 9154 ...

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 90 91 92 93 94 95 96 97 98 99 100 101 1...

result:

ok single line: '1 2 3 4 5 6 7 8 9 10 11 12 13 ... 2837 2837 2837 2837 2837 2837 '

Test #37:

score: 0
Accepted
time: 67ms
memory: 6972kb

input:

93909
5249 102250 75746 148589 72542 71502 93311 123258 5725 28769 149227 117823 91665 158451 107717 176451 73851 2394 41321 56157 91350 19927 30414 114089 126495 163942 124365 70018 30150 152358 937 161545 133057 25754 72307 51245 99507 84513 108955 155166 128791 62962 30271 103001 178591 79971 139...

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 single line: '1 2 3 4 5 6 7 8 9 10 11 12 13 ... 28338 28338 28338 28338 28338 '

Test #38:

score: 0
Accepted
time: 74ms
memory: 6944kb

input:

73789
49262 2406 7269 133962 6375 147867 181675 85474 61866 172667 22503 93299 28630 46011 130889 113074 161750 67291 153501 22193 4279 68394 37437 114086 182375 53050 204114 11654 148346 15982 123817 68402 86081 121594 27746 166573 16797 210283 154819 70494 59609 196050 205966 79877 25853 79207 145...

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 single line: '1 2 3 4 5 6 7 8 9 10 11 12 13 ... 35537 35537 35537 35537 35537 '

Test #39:

score: 0
Accepted
time: 45ms
memory: 6992kb

input:

91195
240329 257383 33165 80842 224839 92787 163301 134153 252167 222733 228807 142426 198327 209894 173401 251934 248395 254521 6878 24022 191081 182674 84454 223355 107617 143033 174958 253366 156557 52874 24955 86254 164607 42471 231247 246830 229455 164665 70823 140494 56747 105623 45806 187162 ...

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 single line: '1 2 3 4 5 6 7 8 9 10 11 12 13 ... 42557 42557 42557 42557 42557 '

Test #40:

score: 0
Accepted
time: 99ms
memory: 7044kb

input:

98555
87406 228250 98861 218917 253369 307113 220158 122130 185002 217265 28802 136007 160915 246682 154979 292106 193889 108221 236954 44858 83141 237845 64629 270187 218765 285321 228575 312234 301361 45005 142886 229725 244966 124293 136283 83283 125078 111098 132758 133759 1821 85113 113273 5692...

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 single line: '1 2 3 4 5 6 7 8 9 10 11 12 13 ... 49662 49662 49662 49662 49662 '

Test #41:

score: 0
Accepted
time: 67ms
memory: 6964kb

input:

83268
45246 261542 252842 175575 199457 298015 68699 344067 136019 187858 35779 163442 224030 5089 135430 246663 272494 311893 243919 3486 212557 193913 97550 76981 281302 145818 296177 217613 93786 41634 90699 270095 259349 173997 280359 66446 257369 24642 195489 356310 145501 77810 108794 289807 4...

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 single line: '1 2 3 4 5 6 7 8 9 10 11 12 13 ... 56894 56894 56894 56894 56894 '

Test #42:

score: 0
Accepted
time: 71ms
memory: 6980kb

input:

96824
171386 187586 17821 171065 345543 265883 148442 126981 370003 95881 172283 171347 186878 374701 390199 134663 394798 195697 22597 23695 336045 66782 173914 128701 137406 342922 100118 312750 215994 17345 146085 200451 90407 261371 310089 251854 260030 316810 213271 176853 312463 88759 64070 78...

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 single line: '1 2 3 4 5 6 7 8 9 10 11 12 13 ... 63853 63853 63853 63853 63853 '

Test #43:

score: 0
Accepted
time: 77ms
memory: 6996kb

input:

95675
332025 66501 62274 40846 184011 375430 200451 272327 43974 295143 371039 294547 393850 101446 318886 355513 16097 355258 142227 98675 156194 387807 142646 419535 138365 33790 371813 50131 328129 182978 371875 74615 71821 86962 102514 88367 210029 361630 106203 115670 154859 67341 93067 402667 ...

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 single line: '1 2 3 4 5 6 7 8 9 10 11 12 13 ... 67374 67374 67374 67374 67374 '

Test #44:

score: 0
Accepted
time: 76ms
memory: 6940kb

input:

99526
211654 341874 27506 65907 389067 291291 70927 1774 131313 142523 325551 344557 253683 238166 155943 389059 162366 197387 199242 277481 95859 402274 254930 366245 2455 303509 112215 252382 122967 334043 290578 14054 84830 213795 255662 16219 103067 143153 94185 282874 182514 44715 151158 106317...

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 single line: '1 2 3 4 5 6 7 8 9 10 11 12 13 ... 70282 70282 70282 70282 70282 '

Test #45:

score: 0
Accepted
time: 46ms
memory: 6976kb

input:

99605
74969 355153 238894 108047 336425 125499 157570 306250 58127 239643 18778 96146 283465 14830 354978 391879 208458 105514 426042 314597 204561 241221 325777 356269 208670 212311 107673 310630 152285 313139 238361 18611 341395 79258 431483 54951 354379 10734 422817 141467 240823 300875 384962 14...

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 single line: '1 2 3 4 5 6 7 8 9 10 11 12 13 ... 70737 70737 70737 70737 70737 '

Test #46:

score: 0
Accepted
time: 106ms
memory: 7048kb

input:

100000
175482 195667 16798 78747 208419 380805 247299 222689 150869 174679 233171 406469 262127 17494 128775 153709 47199 20465 345526 219178 397009 412159 52950 374142 100178 294918 205458 295346 69699 291758 404774 23513 428118 136369 233825 370282 140130 134390 51185 428987 311433 360203 440058 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 single line: '1 2 3 4 5 6 7 8 9 10 11 12 13 ... 70957 70957 70958 70958 70958 '

Subtask #4:

score: 0
Skipped

Dependency #1:

0%