QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#189934#175. Distribution CenterKKT89AC ✓31ms5456kbC++171.2kb2023-09-28 01:36:502023-09-28 01:37:00

Judging History

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

  • [2023-09-28 01:37:00]
  • 评测
  • 测评结果:AC
  • 用时:31ms
  • 内存:5456kb
  • [2023-09-28 01:36:50]
  • 提交

answer

#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <queue>
#include <cstdio>
#include <ctime>
#include <assert.h>
#include <chrono>
#include <random>
#include <numeric>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
using namespace std;
typedef long long int ll;
typedef unsigned long long ull;

mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
ll myRand(ll B) {
    return (ull)rng() % B;
}

pair<int,int> bs[200000];

int main(){
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    //freopen("input.txt", "r", stdin);
    //freopen("output.txt", "w", stdout);
    int n,m; cin >> n >> m;
    for(int i=0;i<n;i++){
        bs[i].first=bs[i].second=i;
    }
    vector<pair<int,int>> v(m);
    for(int i=0;i<m;i++){
        cin >> v[i].first >> v[i].second;
    }
    sort(v.begin(), v.end());
    for(int i=0;i<m;i++){
        int x=v[i].second;
        bs[x-1].first=bs[x].first;
        bs[x].second=bs[x-1].second;
    }
    for(int i=0;i<n;i++){
        if(i)printf(" ");
        printf("%d",bs[i].first-bs[i].second+1);
    }
    printf("\n");
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3704kb

input:

4 3
1000 1
2000 2
3000 3

output:

2 3 4 4

result:

ok single line: '2 3 4 4'

Test #2:

score: 0
Accepted
time: 1ms
memory: 3704kb

input:

4 3
1 1
3 2
2 3

output:

2 4 4 2

result:

ok single line: '2 4 4 2'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3700kb

input:

10 9
100 1
200 2
300 3
400 4
500 5
600 6
700 7
800 8
900 9

output:

2 3 4 5 6 7 8 9 10 10

result:

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

Test #4:

score: 0
Accepted
time: 0ms
memory: 3704kb

input:

10 9
100 9
200 8
300 7
400 6
500 5
600 4
700 3
800 2
900 1

output:

10 10 9 8 7 6 5 4 3 2

result:

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

Test #5:

score: 0
Accepted
time: 1ms
memory: 3668kb

input:

10 9
100 1
200 9
300 2
400 8
500 3
600 7
700 4
800 6
900 5

output:

2 3 4 5 10 10 5 4 3 2

result:

ok single line: '2 3 4 5 10 10 5 4 3 2'

Test #6:

score: 0
Accepted
time: 0ms
memory: 3756kb

input:

10 9
100 5
200 4
300 6
400 3
500 7
600 2
700 8
800 1
900 9

output:

6 6 5 4 3 3 4 5 6 6

result:

ok single line: '6 6 5 4 3 3 4 5 6 6'

Test #7:

score: 0
Accepted
time: 0ms
memory: 3696kb

input:

10 9
100 5
200 5
300 5
400 5
500 5
600 5
700 5
800 5
900 5

output:

1 1 1 1 2 2 1 1 1 1

result:

ok single line: '1 1 1 1 2 2 1 1 1 1'

Test #8:

score: 0
Accepted
time: 0ms
memory: 3668kb

input:

10 9
100 3
200 7
300 3
400 7
500 3
600 7
700 3
800 7
900 3

output:

1 1 2 2 1 1 2 2 1 1

result:

ok single line: '1 1 2 2 1 1 2 2 1 1'

Test #9:

score: 0
Accepted
time: 0ms
memory: 3716kb

input:

10 1
1 1

output:

2 2 1 1 1 1 1 1 1 1

result:

ok single line: '2 2 1 1 1 1 1 1 1 1'

Test #10:

score: 0
Accepted
time: 0ms
memory: 3704kb

input:

10 1
99999 1

output:

2 2 1 1 1 1 1 1 1 1

result:

ok single line: '2 2 1 1 1 1 1 1 1 1'

Test #11:

score: 0
Accepted
time: 0ms
memory: 3700kb

input:

10 1
99999 9

output:

1 1 1 1 1 1 1 1 2 2

result:

ok single line: '1 1 1 1 1 1 1 1 2 2'

Test #12:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

10 1
99999 1

output:

2 2 1 1 1 1 1 1 1 1

result:

ok single line: '2 2 1 1 1 1 1 1 1 1'

Test #13:

score: 0
Accepted
time: 6ms
memory: 4492kb

input:

100000 1
1 1

output:

2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok single line: '2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 ...1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1'

Test #14:

score: 0
Accepted
time: 6ms
memory: 4516kb

input:

100000 1
1 99999

output:

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok single line: '1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2'

Test #15:

score: 0
Accepted
time: 0ms
memory: 3692kb

input:

3 3
1 1
2 2
3 1

output:

3 3 3

result:

ok single line: '3 3 3'

Test #16:

score: 0
Accepted
time: 20ms
memory: 4616kb

input:

100000 99999
51613 84082
3120 88303
90089 57457
82323 36322
70283 14461
57039 21902
1889 47425
24817 74343
16707 92550
68705 50984
48233 97331
71828 11049
54114 50408
70869 31674
66207 34421
27037 98704
78946 43983
55067 54465
21770 59612
70078 44815
6577 9451
19827 45213
97393 71038
73270 28359
848...

output:

2 3 3 1 2 2 1 2 2 1 2 3 3 2 2 1 2 3 3 1 2 2 2 2 5 5 5 3 3 2 2 1 4 4 4 6 6 3 3 1 2 4 4 2 1 2 2 3 5 5 5 4 4 3 3 4 4 3 3 1 3 3 3 2 3 4 4 2 3 3 1 1 3 3 3 3 1 2 2 2 3 3 1 2 2 1 3 3 4 5 5 3 3 3 3 3 3 2 2 2 3 3 3 1 2 3 3 2 2 1 1 2 2 4 4 4 4 2 2 2 3 3 3 4 4 5 5 4 4 5 5 3 3 2 2 2 2 2 1 1 2 4 4 6 6 2 1 2 2 1 ...

result:

ok single line: '2 3 3 1 2 2 1 2 2 1 2 3 3 2 2 ...3 3 2 2 2 4 4 2 4 4 4 4 1 2 2 1'

Test #17:

score: 0
Accepted
time: 23ms
memory: 4716kb

input:

100000 99999
55166 92759
72522 49885
91041 58065
66993 66182
43574 13072
14303 96636
99816 62582
11472 23014
58951 73219
97311 22857
90111 66157
75965 87228
6559 34243
27082 91164
19075 40719
15122 44390
29597 53930
72409 77490
53229 97220
57721 30998
48941 48864
36905 31190
57930 41914
17608 37013
...

output:

1 1 2 4 4 4 4 5 5 5 2 1 3 3 3 3 1 2 2 2 4 4 5 5 1 4 4 4 2 1 2 2 1 3 3 2 2 2 1 5 5 5 3 2 2 3 3 3 3 3 2 2 2 2 5 5 4 3 2 1 2 5 5 5 2 2 2 3 3 2 1 2 2 2 2 2 3 3 1 4 4 3 3 3 1 1 3 3 3 2 5 5 3 3 1 1 2 3 3 3 3 3 3 2 7 7 5 4 3 3 1 1 1 1 2 2 3 4 4 3 2 2 1 1 2 2 1 2 3 4 4 3 3 3 2 2 2 4 4 3 3 2 2 2 3 3 3 3 3 3 ...

result:

ok single line: '1 1 2 4 4 4 4 5 5 5 2 1 3 3 3 ...1 2 2 2 2 2 2 2 2 4 4 4 4 1 1 1'

Test #18:

score: 0
Accepted
time: 23ms
memory: 4632kb

input:

100000 99999
90524 19551
22558 32618
68813 64252
16920 55138
12203 48432
63682 78033
25679 88807
63813 13043
5225 71666
41660 75998
41742 69664
1327 68028
54129 72146
74027 70683
90386 75937
91238 29387
94741 46117
67054 71884
89067 10678
33334 52819
40957 30637
76665 45119
82561 63947
88913 9262
89...

output:

2 3 3 3 3 2 2 2 3 3 3 5 5 5 1 1 2 2 1 3 3 3 2 3 6 6 3 2 2 2 1 2 3 3 1 1 1 1 2 5 5 5 3 4 4 1 1 1 2 2 2 4 4 3 3 2 2 1 3 3 3 3 2 2 2 2 3 3 4 4 4 4 6 6 4 3 3 1 1 2 3 7 7 4 4 2 2 2 2 4 4 2 2 4 4 2 1 2 2 2 4 5 5 6 6 3 3 3 1 3 3 4 4 2 1 1 4 4 3 2 2 2 2 2 3 5 5 5 5 1 1 1 2 3 3 3 3 2 3 3 3 3 3 2 2 5 5 5 3 1 ...

result:

ok single line: '2 3 3 3 3 2 2 2 3 3 3 5 5 5 1 ...3 3 2 2 2 2 2 2 2 3 6 6 3 3 2 2'

Test #19:

score: 0
Accepted
time: 23ms
memory: 4632kb

input:

100000 99999
543 67313
25302 10820
96818 55943
93056 11560
18430 99912
57690 81618
76070 82520
27356 17350
69373 83120
7365 45807
32486 99269
42497 12475
38724 78609
61643 7661
7377 96220
24286 20060
22480 46923
78528 81808
56076 88563
15556 46741
79155 25811
10117 92209
858 59339
74258 5138
51569 6...

output:

1 1 2 2 2 2 3 3 3 1 3 3 4 4 2 2 3 3 2 3 3 4 4 2 2 3 3 2 2 2 2 2 4 4 2 3 3 4 7 7 5 3 3 2 3 3 1 1 3 3 2 2 3 3 2 2 1 1 1 1 2 3 3 2 2 1 1 1 1 1 2 2 3 5 5 4 3 3 3 3 3 3 1 3 3 3 1 2 2 3 3 3 2 2 3 3 3 3 2 2 1 6 6 5 5 4 4 3 3 2 4 4 4 4 4 3 3 3 3 2 1 1 3 3 4 4 2 5 5 3 5 5 2 1 2 2 2 2 2 2 3 3 4 4 2 3 3 3 3 6 ...

result:

ok single line: '1 1 2 2 2 2 3 3 3 1 3 3 4 4 2 ...3 3 3 2 2 1 2 3 3 3 3 2 2 2 2 2'

Test #20:

score: 0
Accepted
time: 20ms
memory: 4672kb

input:

100000 99999
7098 91097
88439 4005
35386 17063
1917 86090
75130 33504
24994 29576
9742 2520
4850 95850
45396 22236
8128 54143
59380 56300
36614 98596
86849 36366
88456 60769
87897 49385
84069 25417
55256 53221
91762 39312
32211 50146
1976 92941
52689 62647
99133 58312
60382 73765
57160 91362
81033 5...

output:

1 3 3 5 5 3 6 6 6 3 4 4 1 3 3 2 2 2 3 3 3 3 3 3 1 3 3 4 4 3 3 2 1 2 3 3 2 2 1 2 2 1 1 1 2 2 1 2 2 1 2 4 5 5 3 2 4 4 2 2 2 2 4 4 3 3 1 2 2 1 2 3 3 2 3 3 2 3 5 5 3 3 1 2 2 2 3 3 2 2 2 2 1 3 3 3 2 2 2 4 4 2 3 3 5 5 3 4 4 1 2 3 3 1 3 3 3 4 4 3 3 3 2 2 1 1 2 2 3 3 4 4 4 4 2 2 2 3 3 2 1 2 3 3 1 3 3 2 1 1 ...

result:

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

Test #21:

score: 0
Accepted
time: 23ms
memory: 4636kb

input:

100000 99999
61671 26653
41901 6290
45318 73847
46486 71566
74580 38872
41601 85202
37301 71629
31115 63397
65115 41231
10333 35870
3074 73418
77762 8760
33792 58907
4768 27787
12190 91045
75334 59807
3798 98263
75623 74224
21972 12299
47944 33354
9520 81771
46571 54053
27140 78913
93492 57883
651 1...

output:

2 2 2 2 2 4 4 2 2 4 4 4 4 5 5 3 5 7 7 4 2 4 4 4 3 2 4 4 4 1 4 4 4 4 5 5 5 5 2 3 3 3 1 1 3 4 4 4 1 5 5 4 4 3 3 1 2 4 5 5 6 6 6 4 4 2 4 4 2 3 3 3 3 4 4 4 3 1 2 2 1 1 3 3 3 1 1 1 4 4 4 4 2 2 2 2 1 4 4 4 3 3 4 4 4 4 2 2 1 3 5 5 4 4 4 2 2 2 3 3 5 5 2 2 4 7 7 5 4 4 6 6 3 3 3 3 3 4 4 7 7 5 3 3 1 1 2 2 2 2 ...

result:

ok single line: '2 2 2 2 2 4 4 2 2 4 4 4 4 5 5 ...4 5 5 3 4 4 3 3 4 4 2 4 5 5 3 1'

Test #22:

score: 0
Accepted
time: 24ms
memory: 4648kb

input:

100000 99999
46666 39205
52562 49064
91772 40120
98068 12889
90527 63895
45052 88471
41781 95677
35011 15143
35990 91205
94108 29052
35732 59641
65793 23085
1411 55378
96722 90700
80809 82391
34214 58658
71808 73992
31833 41914
5055 51051
32698 78812
41800 57390
21120 60165
95865 49345
30016 76388
9...

output:

2 2 4 4 3 3 3 2 3 3 2 2 6 6 5 4 3 5 5 5 3 4 5 5 2 2 3 3 3 3 4 4 4 3 2 2 2 2 1 2 5 5 3 4 5 5 3 1 2 3 3 2 3 3 1 1 1 1 2 4 4 2 2 4 5 5 3 2 2 2 2 2 2 2 3 4 4 2 2 3 5 5 5 5 2 2 2 4 4 2 2 2 3 3 2 2 2 2 2 3 3 2 2 4 4 2 2 2 2 2 1 3 3 3 1 1 1 1 2 5 5 3 2 3 3 4 4 2 2 3 3 1 1 1 2 4 4 2 1 4 4 4 2 2 2 3 3 2 3 3 ...

result:

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

Test #23:

score: 0
Accepted
time: 23ms
memory: 4660kb

input:

100000 99999
53478 77769
62382 16090
33315 61136
81654 27389
44432 87195
56267 48867
6506 16298
20537 2404
104 36902
35917 67926
95181 70030
39593 22187
2073 40404
53575 36767
73989 10666
3989 49360
90520 8329
69303 42032
5412 29174
17757 87187
92056 72271
30481 90186
6850 51816
22578 71720
67358 58...

output:

1 1 1 1 4 4 3 4 4 3 3 3 3 4 4 1 1 3 3 2 2 2 2 2 2 2 2 2 4 4 4 2 1 2 5 5 3 3 3 1 4 4 7 7 5 3 4 5 5 3 2 3 4 4 3 3 4 4 2 3 3 4 4 4 2 2 1 2 4 4 3 3 3 3 3 3 2 2 1 3 3 5 5 3 3 3 3 3 3 2 2 2 2 2 5 5 3 5 5 3 3 7 7 4 7 7 7 3 3 5 5 5 2 2 1 2 3 3 2 4 4 5 5 3 3 1 2 2 1 2 3 3 1 2 2 2 2 1 2 2 1 1 2 3 3 2 2 1 2 2 ...

result:

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

Test #24:

score: 0
Accepted
time: 23ms
memory: 4644kb

input:

100000 99999
47015 74422
77958 41967
26483 37045
52560 21334
45443 18102
40807 1776
58266 36604
57748 83411
92031 46305
19905 19160
17147 68583
56913 54582
46232 7394
81745 31860
46453 89699
57208 36122
99989 35651
1251 56500
78991 12581
63389 77587
35008 27699
30559 76658
36480 16132
87794 16217
53...

output:

2 2 3 3 3 1 1 1 2 2 2 4 4 4 4 4 4 4 4 2 2 2 2 2 1 3 3 2 3 3 3 3 1 1 2 2 2 4 4 2 3 3 2 1 3 3 3 2 2 3 4 4 4 4 1 2 2 3 3 5 5 3 3 3 1 2 2 4 4 4 2 1 2 5 5 4 4 7 7 3 2 2 2 1 2 2 3 4 4 3 2 2 2 6 6 4 4 3 3 1 1 1 2 2 2 2 2 2 1 1 2 3 3 1 1 2 2 1 2 2 3 3 2 2 3 3 3 3 3 2 2 1 2 5 5 4 4 5 5 4 4 3 3 3 3 4 4 4 4 5 ...

result:

ok single line: '2 2 3 3 3 1 1 1 2 2 2 4 4 4 4 ...3 3 3 3 5 5 4 4 1 2 3 3 1 1 1 1'

Test #25:

score: 0
Accepted
time: 19ms
memory: 4728kb

input:

100000 99999
30444 72197
95332 46416
50857 42241
79810 99621
73276 81292
95350 50226
7877 13503
65031 72956
52621 88419
67745 18281
9555 12996
17624 88780
12902 3563
47662 51201
11382 47139
14174 99645
70126 3480
92092 23573
89722 82017
73811 25469
44904 21306
64914 48178
94447 28504
52042 42591
202...

output:

1 1 2 2 2 4 4 4 4 6 6 2 3 3 3 3 3 3 3 2 5 5 3 3 3 2 2 2 2 2 3 6 6 4 4 3 3 3 3 1 1 2 2 2 3 6 6 6 2 1 4 4 3 4 4 2 1 1 1 1 1 1 3 3 4 4 6 8 8 4 4 1 4 5 5 4 4 4 4 3 3 5 5 3 3 1 2 2 5 5 4 3 2 2 2 3 3 5 5 2 5 5 4 4 4 4 2 4 4 2 1 1 1 1 2 2 2 2 2 4 4 4 1 3 4 4 3 1 1 2 3 4 4 1 3 3 3 1 1 2 2 1 3 3 3 5 5 4 4 3 ...

result:

ok single line: '1 1 2 2 2 4 4 4 4 6 6 2 3 3 3 ...3 2 4 4 2 3 3 3 1 2 2 1 1 1 1 1'

Test #26:

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

input:

100 99999
15682 14
57251 20
83099 50
57485 33
58481 68
72724 57
76528 53
69462 42
36907 59
57245 88
33987 27
18361 8
43881 89
43482 53
19763 18
5425 86
16238 75
37612 84
85345 91
63461 94
39465 62
79016 39
98751 97
30608 61
95198 89
69910 67
36531 74
15433 85
44773 95
52176 36
82591 94
24779 37
8370...

output:

100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 ...

result:

ok single line: '100 100 100 100 100 100 100 10...100 100 100 100 100 100 100 100'

Test #27:

score: 0
Accepted
time: 12ms
memory: 3864kb

input:

100 99999
77171 16
89815 40
18710 40
25372 60
19391 52
96783 89
63074 22
17933 3
92924 90
39267 22
58695 14
81465 98
87568 15
29449 99
88761 7
12808 62
89787 55
79017 61
59498 3
1730 95
59125 12
68990 32
10044 48
18379 36
28397 79
45381 87
93422 24
53478 74
40359 9
40864 21
98214 60
17966 88
93688 5...

output:

100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 ...

result:

ok single line: '100 100 100 100 100 100 100 10...100 100 100 100 100 100 100 100'

Test #28:

score: 0
Accepted
time: 13ms
memory: 3820kb

input:

100 99999
69498 75
45431 25
35804 53
35830 44
99588 30
55288 61
73191 86
91050 56
36297 71
45464 89
55281 1
2102 52
73708 70
90872 83
50676 53
94891 30
49735 49
96539 4
18363 87
86412 31
89447 7
83536 46
93448 52
10390 70
48401 8
40974 38
37783 43
82860 33
24620 30
50488 44
97175 48
40728 88
84552 2...

output:

100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 ...

result:

ok single line: '100 100 100 100 100 100 100 10...100 100 100 100 100 100 100 100'

Test #29:

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

input:

100 99999
14287 85
73750 52
14953 80
27802 96
55639 45
18655 61
79136 83
65825 18
20422 85
7896 57
17926 99
63260 81
90936 28
95649 44
88222 70
55488 76
5346 82
57863 24
37182 54
74788 30
5420 67
75910 73
30160 82
56049 17
52763 30
80613 43
92345 69
38686 68
33945 19
76728 80
45681 41
25782 8
45374 ...

output:

100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 ...

result:

ok single line: '100 100 100 100 100 100 100 10...100 100 100 100 100 100 100 100'

Test #30:

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

input:

100 99999
60021 48
2240 89
45435 4
18160 44
77763 28
93512 69
96091 86
77224 95
71568 50
91945 47
87045 51
35018 84
14076 50
51680 95
78521 90
83441 45
87835 68
63279 87
29944 27
65799 36
11042 73
97246 70
71075 5
9337 50
7490 26
61967 23
96722 3
3 38
67368 13
84436 39
94449 27
73268 92
87352 95
625...

output:

100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 ...

result:

ok single line: '100 100 100 100 100 100 100 10...100 100 100 100 100 100 100 100'

Test #31:

score: 0
Accepted
time: 25ms
memory: 5456kb

input:

200000 99999
6459 28754
89524 100200
40972 165007
35542 79232
67470 193265
42429 31297
72190 105909
86153 164871
76541 54773
75972 190313
65528 69854
2254 148256
15464 76775
80729 50716
30849 37376
97049 119081
99872 59812
10189 187653
10146 141177
70199 88407
55336 73870
55991 47679
36663 136539
46...

output:

2 3 3 2 2 1 1 2 2 1 1 2 2 2 2 1 1 1 1 1 2 4 4 2 2 2 1 1 2 2 2 3 3 1 2 2 2 2 1 1 3 3 3 4 5 5 2 2 2 2 2 2 2 2 1 1 1 2 2 2 2 1 2 2 1 2 2 2 2 2 2 1 1 1 1 1 1 2 2 1 1 1 1 2 5 5 3 4 5 5 1 2 2 1 1 2 2 2 2 3 3 3 2 4 4 3 3 2 2 1 2 2 1 1 2 2 1 1 1 2 2 2 2 1 1 2 2 2 2 1 1 2 2 2 2 2 3 3 1 1 3 3 4 4 2 2 2 2 2 1 ...

result:

ok single line: '2 3 3 2 2 1 1 2 2 1 1 2 2 2 2 ...2 2 2 2 2 2 2 2 1 1 1 3 3 3 3 1'

Test #32:

score: 0
Accepted
time: 25ms
memory: 5404kb

input:

200000 99999
91854 42500
34291 59129
21533 24543
12870 128293
60874 76919
21587 148440
49782 79945
56328 9029
95032 170534
62004 11815
63957 125670
34041 159678
91875 96113
60373 95193
70418 183892
23578 55832
13018 133062
54957 173836
71451 20278
96675 22557
48928 97524
65272 164627
59190 62828
798...

output:

1 2 2 2 2 2 2 1 1 2 2 2 2 2 2 1 2 2 3 3 3 3 1 1 1 1 1 1 2 3 3 1 1 2 2 2 3 4 4 2 2 1 2 2 1 1 1 1 2 2 3 3 2 1 1 1 1 1 2 2 2 2 1 2 2 3 3 2 1 1 1 2 2 2 2 2 2 1 1 1 1 1 1 2 2 2 2 2 2 1 1 2 2 1 1 2 3 3 1 1 2 2 1 1 1 1 2 2 1 2 2 1 1 3 3 3 3 1 1 1 1 2 2 3 3 2 1 1 1 1 3 3 2 1 1 2 3 3 1 2 2 2 2 1 1 1 1 1 1 1 ...

result:

ok single line: '1 2 2 2 2 2 2 1 1 2 2 2 2 2 2 ...4 4 3 2 1 4 4 3 2 1 2 2 1 1 2 2'

Test #33:

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

input:

200000 99999
88029 49150
1821 18264
32450 150397
87753 44993
92963 110663
56543 90235
85386 165950
71762 52525
42 128758
35198 84508
85118 25040
53582 171264
147 14704
92191 135029
41907 18184
70236 62280
90976 59817
34248 181754
85748 21044
89508 150459
8741 162267
84591 74938
79978 9415
80462 1204...

output:

3 3 2 1 1 1 1 1 2 2 1 1 2 3 3 1 1 2 2 1 1 1 1 2 2 5 5 4 3 4 4 2 4 4 3 2 1 1 2 2 1 1 1 2 3 3 2 2 2 3 3 2 2 2 3 3 1 1 2 2 1 1 1 1 2 2 2 2 1 2 2 1 1 2 2 1 3 3 2 2 3 3 1 2 3 3 1 1 3 3 3 3 1 1 2 4 4 2 3 3 2 1 1 2 3 3 1 1 2 3 3 2 2 1 1 2 2 2 2 1 2 2 1 2 2 1 2 2 1 1 1 2 2 1 3 3 2 3 3 6 6 4 3 2 2 2 3 3 3 3 ...

result:

ok single line: '3 3 2 1 1 1 1 1 2 2 1 1 2 3 3 ...2 2 1 1 1 1 1 1 1 1 2 2 3 3 2 1'

Test #34:

score: 0
Accepted
time: 31ms
memory: 5448kb

input:

200000 99999
18637 75106
91405 193095
10716 115503
78702 119750
77085 81084
29924 171589
51820 157556
71453 97788
39334 109483
83202 9173
10758 44671
32532 171506
26993 41189
11052 58515
69044 128975
96040 47575
84777 188822
47196 182590
17370 186303
27440 29571
7669 122792
1043 112917
61034 20729
3...

output:

1 2 2 1 1 1 1 2 2 1 3 3 2 1 1 2 2 1 1 1 2 2 1 1 1 1 1 2 2 2 2 1 1 1 1 1 3 3 2 1 2 2 2 2 2 3 3 1 1 2 2 3 3 2 1 1 1 1 3 3 2 1 1 1 1 1 1 1 1 2 3 3 1 1 1 1 2 2 1 1 1 1 2 2 2 2 3 3 2 1 2 2 1 3 3 3 1 2 2 1 1 2 3 3 1 1 1 1 1 1 2 2 2 2 1 2 2 2 2 1 1 1 3 3 2 2 4 6 6 4 2 4 4 3 3 1 3 3 4 4 2 2 2 1 1 1 1 1 1 1 ...

result:

ok single line: '1 2 2 1 1 1 1 2 2 1 3 3 2 1 1 ...2 1 1 1 1 1 2 2 2 2 3 3 2 3 3 3'

Test #35:

score: 0
Accepted
time: 26ms
memory: 5424kb

input:

200000 99999
18742 152060
38942 104683
46001 85720
9675 93087
21501 88198
36915 117819
39151 119632
2148 7737
29135 38820
46646 83136
32038 180894
52206 2163
7425 2201
25106 181596
54357 6684
53834 193215
6507 8917
63778 94981
58108 113477
73244 77324
8552 130412
72387 66942
99501 32394
85408 77694
...

output:

1 1 1 2 3 3 1 1 1 1 1 2 4 4 2 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 1 3 3 2 2 2 2 3 3 1 1 2 3 3 1 1 1 1 2 3 4 4 1 1 1 1 1 1 1 1 1 2 2 1 2 2 1 1 2 2 2 3 4 4 1 2 3 3 1 1 1 1 1 2 3 3 1 3 3 3 3 2 2 2 2 2 2 2 2 1 1 2 2 3 3 2 2 2 3 3 3 7 7 4 3 3 3 3 2 1 1 1 1 2 2 2 2 1 1 1 1 1 1 2 2 2 2 1 1 1 1 1 1 2 2 2 2 2 2 1 ...

result:

ok single line: '1 1 1 2 3 3 1 1 1 1 1 2 4 4 2 ...3 3 2 2 2 2 2 1 1 2 2 1 1 2 2 1'

Test #36:

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

input:

100000 99999
1 99999
2 99998
3 99997
4 99996
5 99995
6 99994
7 99993
8 99992
9 99991
10 99990
11 99989
12 99988
13 99987
14 99986
15 99985
16 99984
17 99983
18 99982
19 99981
20 99980
21 99979
22 99978
23 99977
24 99976
25 99975
26 99974
27 99973
28 99972
29 99971
30 99970
31 99969
32 99968
33 99967...

output:

100000 100000 99999 99998 99997 99996 99995 99994 99993 99992 99991 99990 99989 99988 99987 99986 99985 99984 99983 99982 99981 99980 99979 99978 99977 99976 99975 99974 99973 99972 99971 99970 99969 99968 99967 99966 99965 99964 99963 99962 99961 99960 99959 99958 99957 99956 99955 99954 99953 9995...

result:

ok single line: '100000 100000 99999 99998 9999... 14 13 12 11 10 9 8 7 6 5 4 3 2'