QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#77231#5362. I'm always close to youQiuly100 ✓97ms63624kbC++143.2kb2023-02-13 16:59:102023-02-13 16:59:12

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Runtime Error

Test #1:

score: 0
Runtime Error

input:

2000 0
push-front a
push-front b
push-front a
push-back a
push-back a
push-front a
push-front a
push-back a
push-front a
push-back b
push-back a
push-back b
push-front b
push-front b
push-front a
push-back b
push-front b
push-front b
push-back b
push-back a
push-front a
push-back a
push-front b
push...

output:


result:


Subtask #2:

score: 100
Accepted

Test #3:

score: 100
Accepted
time: 94ms
memory: 61576kb

input:

200000 0
push-back m
push-front x
push-front y
push-front e
push-back l
push-back c
push-front y
push-back n
push-front q
push-back w
push-back k
push-back f
push-back c
push-front j
push-front h
push-back y
push-back w
push-front k
push-back b
push-front f
push-back e
push-front v
push-back x
push-...

output:

1
3
6
10
15
21
27
35
44
54
65
77
89
103
118
133
149
166
185
204
224
246
268
292
316
342
369
396
425
455
485
517
549
582
616
651
687
724
762
801
841
883
926
969
1012
1057
1103
1151
1199
1248
1298
1349
1401
1453
1507
1562
1617
1674
1732
1791
1851
1912
1974
2036
2100
2165
2231
2297
2365
2434
2503
2574
...

result:

ok 200000 lines

Test #4:

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

input:

200000 0
push-back u
push-back b
push-back y
push-front w
push-back j
push-back n
push-back s
push-front d
push-back x
push-front s
push-back a
push-front r
push-front a
push-front d
push-front v
push-back b
push-front n
push-front l
push-back j
push-back i
push-front z
push-back a
push-back e
push-...

output:

1
3
6
10
15
21
28
36
45
54
65
77
89
102
117
132
148
166
184
204
225
246
269
293
317
343
370
397
426
454
484
515
547
580
614
649
685
722
760
800
840
882
924
967
1011
1057
1103
1150
1198
1247
1297
1348
1400
1453
1507
1562
1619
1676
1734
1793
1854
1915
1977
2040
2104
2169
2235
2301
2369
2438
2508
2579
...

result:

ok 200000 lines

Test #5:

score: 0
Accepted
time: 96ms
memory: 63624kb

input:

200000 0
push-front o
push-back l
push-front z
push-front m
push-back v
push-front k
push-front i
push-back t
push-back q
push-front k
push-back u
push-back l
push-back z
push-back e
push-back d
push-back i
push-front y
push-back q
push-front m
push-back p
push-back s
push-back t
push-front v
push-b...

output:

1
3
6
10
15
21
28
36
45
54
65
76
88
102
117
132
149
166
184
204
225
246
268
292
316
342
368
395
422
451
479
510
543
576
610
646
682
719
757
796
836
877
920
963
1007
1052
1098
1145
1194
1243
1293
1345
1397
1450
1505
1560
1616
1673
1731
1791
1851
1912
1974
2037
2101
2166
2232
2299
2367
2436
2507
2578
...

result:

ok 200000 lines

Subtask #3:

score: 0
Skipped

Dependency #1:

0%

Subtask #4:

score: 0
Skipped

Dependency #1:

0%