QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#94773#5362. I'm always close to youdcmfqw100 ✓1910ms126728kbC++143.1kb2023-04-07 18:03:212023-04-07 18:03:23

詳細信息

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 1910ms
memory: 126728kb

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:

1
3
5
8
11
15
19
24
29
34
39
49
55
68
81
94
107
122
139
156
173
191
209
228
248
268
291
316
338
364
387
416
445
475
505
535
565
599
634
669
705
741
777
815
852
892
930
971
1010
1052
1094
1135
1178
1220
1271
1322
1373
1425
1479
1532
1587
1642
1698
1754
1812
1875
1938
1997
2063
2129
2195
2263
2331
239...

result:

ok 2000 lines

Test #2:

score: 0
Accepted
time: 1883ms
memory: 126720kb

input:

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

output:

1
2
5
8
11
15
21
27
33
41
49
58
67
78
88
101
112
128
140
157
175
193
208
228
249
272
296
320
345
371
398
425
454
484
514
546
577
611
646
681
717
754
793
831
871
913
955
997
1041
1085
1130
1175
1221
1267
1313
1362
1412
1465
1516
1571
1627
1683
1739
1798
1858
1918
1978
2041
2102
2163
2229
2296
2364
24...

result:

ok 2000 lines

Subtask #2:

score: 0
Time Limit Exceeded

Test #3:

score: 0
Time Limit Exceeded

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:


Subtask #3:

score: 0
Time Limit Exceeded

Dependency #1:

100%
Accepted

Test #6:

score: 0
Time Limit Exceeded

input:

200000 0
push-back b
push-back b
push-front c
push-back b
push-front c
push-front a
push-front c
push-back c
push-back c
push-front c
push-back a
push-back c
push-front c
push-back b
push-front c
push-back b
push-front c
push-back c
push-back b
push-front b
push-back a
push-front a
push-front c
push...

output:

1
2
5
7
11
17
23
30
37
45
53
61
72
84
96
109
122
137
154
171
191
212
233
254
277
300
323
347
373
399
429
459
490
522
555
588
621
654
687
725
763
803
844
881
923
966
1009
1053
1099
1145
1193
1242
1291
1341
1391
1441
1493
1548
1601
1657
1716
1775
1834
1896
1956
2020
2083
2147
2212
2279
2346
2414
2484
...

result:


Subtask #4:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

0%