QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#790832#9060. Sequence GuessingdXqwq#AC ✓131ms5916kbC++231.2kb2024-11-28 15:37:132024-11-28 15:37:14

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 8ms
memory: 4112kb

input:

0
1
-1

output:

66668
1
-1
0
2
3
5
6
8
9
11
12
14
15
17
18
20
21
23
24
26
27
29
30
32
33
35
36
38
39
41
42
44
45
47
48
50
51
53
54
56
57
59
60
62
63
65
66
68
69
71
72
74
75
77
78
80
81
83
84
86
87
89
90
92
93
95
96
98
99
101
102
104
105
107
108
110
111
113
114
116
117
119
120
122
123
125
126
128
129
131
132
134
135...

result:

ok 

Test #2:

score: 0
Accepted
time: 130ms
memory: 4152kb

input:

0
100000
61519
61518
61520
79695
6541
6540
6542
95804
95803
95805
67673
67672
67674
99608
99607
99609
67028
67027
67029
59790
70926
4450
4449
4451
57643
57642
57644
37217
37216
37218
76900
76899
76901
29941
29940
29942
59950
59949
59951
98810
98809
98811
72286
72285
72287
2143
2142
2144
47418
76586
...

output:

66668
1
66668
-1
41013
41014
53131
-1
4361
4362
-1
63870
63871
-1
45116
45117
-1
66406
66407
-1
44686
44687
39861
47285
-1
2967
2968
-1
38429
38430
-1
24812
24813
-1
51267
51268
-1
19961
19962
-1
39967
39968
-1
65874
65875
-1
48191
48192
-1
1429
1430
31613
-1
51058
51059
-1
37208
37209
12341
-1
3780...

result:

ok 

Test #3:

score: 0
Accepted
time: 87ms
memory: 4224kb

input:

0
100000
20377
20376
20378
2929
2928
2930
59925
62075
62074
62076
38233
38232
38234
42045
52849
52848
52850
1712
1711
1713
84232
84231
84233
15946
15945
15947
24861
98047
98046
98048
36002
36001
36003
76164
66315
75243
67486
67485
67487
14461
14460
14462
24656
24655
24657
55089
32963
32962
32964
638...

output:

66668
1
66668
-1
13585
13586
-1
1953
1954
39951
-1
41384
41385
-1
25489
25490
28031
-1
35233
35234
-1
1142
1143
-1
56155
56156
-1
10631
10632
16575
-1
65365
65366
-1
24002
24003
50777
44211
50163
-1
44991
44992
-1
9641
9642
-1
16438
16439
36727
-1
21976
21977
-1
42584
42585
-1
6609
6610
15233
-1
374...

result:

ok 

Test #4:

score: 0
Accepted
time: 131ms
memory: 4212kb

input:

0
100000
74422
74421
74423
58524
95474
95473
95475
39791
39790
39792
83046
9814
9813
9815
33907
33906
33908
67544
67543
67545
64750
64749
64751
93373
93372
93374
30479
30478
30480
15383
15382
15384
9674
9673
9675
78058
78057
78059
15432
83522
83521
83523
33328
33327
33329
90809
90808
90810
84953
849...

output:

66668
1
66668
-1
49615
49616
39017
-1
63650
63651
-1
26528
26529
55365
-1
6543
6544
-1
22605
22606
-1
45030
45031
-1
43167
43168
-1
62249
62250
-1
20320
20321
-1
10256
10257
-1
6450
6451
-1
52039
52040
10289
-1
55682
55683
-1
22219
22220
-1
60540
60541
-1
56636
56637
-1
23199
23200
-1
58139
58140
-1...

result:

ok 

Test #5:

score: 0
Accepted
time: 111ms
memory: 4148kb

input:

0
100000
41309
41308
41310
5867
5866
5868
39092
39091
39093
60489
87114
85491
21557
21556
21558
38180
38179
38181
74444
74443
74445
98438
98437
98439
28678
28677
28679
16428
49040
49039
49041
4406
4405
4407
79813
79812
79814
11653
11652
11654
92954
92953
92955
43914
95769
23449
23448
23450
81020
810...

output:

66668
1
66668
-1
27540
27541
-1
3912
3913
-1
26062
26063
40327
58077
56995
-1
14372
14373
-1
25454
25455
-1
49630
49631
-1
65626
65627
-1
19119
19120
10953
-1
32694
32695
-1
2938
2939
-1
53209
53210
-1
7769
7770
-1
61970
61971
29277
63847
-1
15633
15634
-1
54014
54015
-1
4229
4230
645
-1
567
568
-1
...

result:

ok 

Test #6:

score: 0
Accepted
time: 8ms
memory: 4152kb

input:

0
100000
-1

output:

66668
1
66668
0
2
3
5
6
8
9
11
12
14
15
17
18
20
21
23
24
26
27
29
30
32
33
35
36
38
39
41
42
44
45
47
48
50
51
53
54
56
57
59
60
62
63
65
66
68
69
71
72
74
75
77
78
80
81
83
84
86
87
89
90
92
93
95
96
98
99
101
102
104
105
107
108
110
111
113
114
116
117
119
120
122
123
125
126
128
129
131
132
134
...

result:

ok 

Test #7:

score: 0
Accepted
time: 7ms
memory: 4188kb

input:

-1

output:

66668
0
2
3
5
6
8
9
11
12
14
15
17
18
20
21
23
24
26
27
29
30
32
33
35
36
38
39
41
42
44
45
47
48
50
51
53
54
56
57
59
60
62
63
65
66
68
69
71
72
74
75
77
78
80
81
83
84
86
87
89
90
92
93
95
96
98
99
101
102
104
105
107
108
110
111
113
114
116
117
119
120
122
123
125
126
128
129
131
132
134
135
137
...

result:

ok 

Test #8:

score: 0
Accepted
time: 87ms
memory: 5916kb

input:

0
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
10...

output:

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

result:

ok 

Test #9:

score: 0
Accepted
time: 88ms
memory: 4224kb

input:

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
99952
99951...

output:

66668
66668
66667
-1
66666
66665
-1
66664
66663
-1
66662
66661
-1
66660
66659
-1
66658
66657
-1
66656
66655
-1
66654
66653
-1
66652
66651
-1
66650
66649
-1
66648
66647
-1
66646
66645
-1
66644
66643
-1
66642
66641
-1
66640
66639
-1
66638
66637
-1
66636
66635
-1
66634
66633
-1
66632
66631
-1
66630
666...

result:

ok 

Test #10:

score: 0
Accepted
time: 51ms
memory: 4228kb

input:

61519
79695
6541
95804
67673
99608
67028
59790
70926
4450
57643
37217
76900
29941
59950
98810
72286
2143
47418
76586
55811
18510
56710
52088
85153
6844
63357
57305
10130
74469
59758
96723
83226
24564
9081
43694
13312
56094
90816
46869
4303
38066
24257
85421
78029
55597
87090
45590
10841
42479
24691
...

output:

66668
-1
53131
-1
-1
-1
-1
-1
39861
47285
-1
-1
-1
-1
-1
-1
-1
-1
-1
31613
-1
-1
12341
-1
-1
-1
-1
42239
-1
-1
49647
-1
64483
55485
16377
6055
-1
-1
37397
60545
31247
-1
-1
-1
-1
-1
-1
58061
-1
-1
-1
-1
59837
21269
-1
-1
-1
57861
6743
-1
46645
-1
-1
32859
-1
-1
-1
-1
2061
28221
-1
-1
30953
-1
55873
...

result:

ok 

Test #11:

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

input:

61519
79695
6541
95804
67673
99608
67028
59790
70926
4450
57643
37217
76900
29941
59950
98810
72286
2143
47418
76586
55811
18510
56710
52088
85153
6844
63357
57305
10130
74469
59758
96723
83226
24564
9081
43694
13312
56094
90816
46869
4303
38066
24257
85421
78029
55597
87090
45590
10841
42479
24691
...

output:

66668
-1
53131
-1
-1
-1
-1
-1
39861
47285
-1
-1
-1
-1
-1
-1
-1
-1
-1
31613
-1
-1
12341
-1
-1
-1
-1
42239
-1
-1
49647
-1
64483
55485
16377
6055
-1
-1
37397
60545
31247
-1
-1
-1
-1
-1
-1
58061
-1
-1
-1
-1
59837
21269
-1
-1
-1
57861
6743
-1
46645
-1
-1
32859
-1
-1
-1
-1
2061
28221
-1
-1
30953
-1
55873
...

result:

ok 

Test #12:

score: 0
Accepted
time: 53ms
memory: 4220kb

input:

47968
77338
48026
88800
36368
55774
92250
36816
11220
31396
43112
54436
16150
75094
36440
76720
92286
16898
83056
79528
90644
91848
91694
54354
16212
80364
83038
56662
60264
30860
88120
10890
40532
96496
65910
84414
44208
39886
11636
85266
69526
30450
31164
55876
99396
96666
59250
69928
21288
43704
...

output:

66668
-1
-1
-1
59201
-1
-1
61501
24545
7481
-1
-1
-1
-1
-1
-1
-1
61525
-1
-1
-1
-1
61233
-1
36237
10809
53577
-1
-1
40177
-1
-1
7261
-1
-1
43941
56277
29473
-1
-1
56845
-1
20301
20777
-1
66265
64445
39501
-1
14193
29137
-1
-1
25301
43753
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
51017
-1
-1
-1
-1
58793
-1
-1
38...

result:

ok 

Test #13:

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

input:

63397
98673
9659
61497
9519
51933
34185
12839
34693
22403
8347
29345
46763
59171
83425
60231
34111
49495
1749
73619
15645
94285
46295
30463
12347
31287
55159
68915
78201
35669
99389
99693
14647
50693
47155
97227
64707
6421
95515
37403
74103
33131
88549
83529
79565
49165
10945
72625
12475
95153
24479...

output:

66668
-1
65783
-1
40999
6347
34623
22791
-1
-1
-1
-1
-1
-1
-1
-1
40155
-1
-1
1167
-1
10431
-1
-1
-1
-1
20859
-1
-1
52135
-1
-1
66463
-1
-1
-1
64819
43139
-1
-1
-1
49403
-1
-1
55687
-1
-1
-1
-1
-1
-1
-1
-1
-1
58835
58679
-1
-1
22863
-1
7443
-1
-1
-1
-1
-1
-1
-1
-1
-1
10263
-1
-1
-1
-1
41911
-1
-1
199...

result:

ok 

Test #14:

score: 0
Accepted
time: 79ms
memory: 4276kb

input:

74490
16380
98928
77652
36348
1782
13254
25773
66111
19125
10680
14538
86976
40215
27642
88059
22728
80142
27186
4365
61431
63861
60963
27825
16938
40941
22764
67941
9684
17958
94203
56403
80538
62535
6255
37344
23814
52188
67113
3039
60783
22803
12576
87714
28314
89496
83649
12594
48267
28836
33423...

output:

66668
49661
10921
65953
51769
24233
1189
8837
17183
44075
12751
7121
9693
57985
26811
18429
58707
15153
53429
18125
2911
40955
42575
40643
18551
11293
27295
15177
45295
6457
11973
62803
37603
53693
41691
4171
24897
15877
34793
44743
2027
40523
15203
8385
58477
18877
59665
55767
8397
32179
19225
2228...

result:

ok 

Test #15:

score: 0
Accepted
time: 49ms
memory: 4188kb

input:

33378
38700
63852
83673
46902
59079
13395
97950
10461
16944
27240
91647
98082
50031
23430
6942
85512
46827
54888
39363
44139
6093
25791
17976
72150
79572
20148
29835
35721
15180
18387
35634
9942
459
24237
13743
62376
31662
7683
12999
9642
76266
1425
8265
38919
8568
25425
78099
77487
84765
30891
1442...

output:

66668
22253
25801
42569
55783
31269
39387
8931
65301
6975
11297
18161
61099
65389
33355
15621
4629
57009
31219
36593
26243
29427
4063
17195
11985
48101
53049
13433
19891
23815
10121
12259
23757
6629
307
16159
9163
41585
21109
5123
8667
6429
50845
951
5511
25947
5713
16951
52067
51659
56511
20595
961...

result:

ok 

Test #16:

score: 0
Accepted
time: 33ms
memory: 4212kb

input:

69082
85756
40717
50887
88522
91687
90982
75208
98890
97792
13018
9670
38389
29065
56305
21454
19114
51661
69778
9715
48859
38518
370
44431
14845
53908
46723
60919
28627
53698
76387
15976
76777
27625
98380
55915
94168
65470
35593
32572
1651
33877
85870
53869
17599
40372
55294
3403
58264
68275
20386
...

output:

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

Test #17:

score: 0
Accepted
time: 32ms
memory: 4220kb

input:

12319
31021
56281
63520
96703
92305
31150
66658
14680
4255
97360
64945
45562
77176
96721
99904
63928
85090
57898
85204
83377
14125
77632
64687
98680
56944
62257
64624
82441
42187
58687
19042
89272
13000
85270
3088
92899
63484
62200
73819
15724
54865
50815
28492
85906
64168
44809
13696
55471
56926
49...

output:

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

Test #18:

score: 0
Accepted
time: 29ms
memory: 4168kb

input:

4778
37757
89345
37328
30320
23504
46238
24422
79181
51659
26027
66971
78113
64925
84665
3524
37355
27839
32312
54602
21137
20819
97934
89144
30335
32582
24884
91517
44894
44066
99647
26126
71564
86669
84512
74387
92852
97172
88352
34616
99206
58502
20861
13199
38375
97526
26921
85292
87476
87194
87...

output:

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

Test #19:

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

input:

89504
7559
33053
6638
70337
39245
92273
71990
60872
191
49763
78335
42476
90209
81800
25478
25346
33341
42986
26390
98291
89666
61514
7553
89
19712
59540
16748
60368
18194
79253
33713
5813
68117
97694
905
66032
69689
35549
60431
99383
1544
31007
32375
74255
50297
89951
45101
22751
89717
51515
35294
...

output:

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