QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#459716#982. Robotucup-team1005#AC ✓412ms85120kbC++201.6kb2024-06-30 12:04:372024-06-30 12:04:38

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3720kb

input:

5
LRLDD

output:

14
11
14
16
16

result:

ok 5 tokens

Test #2:

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

input:

200
URRDRDDRDLDDRDLULULULRUUDULUULRRRULURDDRDULLRLDUUDLULURDRRUDRDLUULLDLDLDULLDLDRDURRULURRDDLLDRURRULRURRLRRDULRRUUULURRDLRLRLRDRUURLLURLLUDUULDLDRLRURRDURLUUDDLRRLRDRRDDRRRRLRLURULDDDRLDLUDDULLDULLDDLL

output:

1774
2185
2185
2549
2195
2531
2531
2211
2539
2487
2525
2525
2195
2530
2494
1789
2490
1790
2492
1792
2484
2188
1798
1798
2542
1779
2496
1776
1776
2495
2209
2209
2209
1756
2423
1755
2206
2474
2474
2198
2432
1697
2353
2353
2198
2309
2406
1673
1673
2384
2300
1666
2314
1672
2181
2384
2187
2187
1646
2350
...

result:

ok 200 tokens

Test #3:

score: 0
Accepted
time: 2ms
memory: 3920kb

input:

3000
URRDDLDRRDLDRRRUURDRDLDUULDLUDRLRDDLDURRUULDDRUUDRDURURDULDLDRRLLLRDDULRLRLLUUURLRLRLRRURLDLRLRRLURDLRLRURRRDDUDLURLDUDLUURLUURULUULLURUDUDDRUUULDULRRLLDRLRDRLDLULLLRULLUDRLRDLRULUDRUDUULULLRLURLDDUDDLULLDLRLURDRURLRLRDLRLLLULDRUULDLLDDLLLUUDLLLLRLRLLDRLDDLULDLLULLRDRUDDLUDLDLUDRULLDLDURRULRUUR...

output:

152017
151860
151860
140578
140578
134340
140576
151842
151842
140571
134330
140573
151843
151843
151843
151958
151958
151850
140526
151862
140514
134152
140522
151951
151951
133938
140498
133929
151971
140477
152062
133880
152104
140451
140451
133872
140459
151856
152199
152199
151698
151698
133531...

result:

ok 3000 tokens

Test #4:

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

input:

3000
DUULUDRRRLLRRUDURUUDRRRLRDURDDLURUDLULRDLULRLDDRRULUDUDRRRURLUDURUUDDDUDRDRUULDLULUUURDDDRLDLLRRUDLRDURLRUULUULRUUDLLUDDDLUDLLLUDLLUDRDLDRLRDLURDRRDDRUDRLURLDDLDDUULRDDDDRULDLDRRULULDDLULRRLRLDDDLRUDLRLURLULRLURUURUDDULLURLULDURRRRDULLUURDUDLRURDRLRRLLURUULLLURRRDRRRLULUURDLUURDLUDLLLUURUUDDLLD...

output:

256037
246384
246384
249340
246380
256032
258334
258334
258334
249290
249290
258322
258322
246333
256014
246324
258323
246307
246307
256017
258313
258313
258313
249112
258315
256028
246139
258303
256033
256033
249080
246154
258353
246130
255958
249136
246148
249134
258487
256020
249068
246117
249056...

result:

ok 3000 tokens

Test #5:

score: 0
Accepted
time: 98ms
memory: 7064kb

input:

300000
RRRRRLLLRRLLRLRLRLRLLLLLLRLLLRLRLRLRLRLRLLRRLRRLRLLLLRLRLLRLRLLRRLRRRRRRRLRRRLRRRLRRRRLRRLLRLLLRLRRLLLRRLLRLRLRLLLRRRLRLLRRLRLRRRLRLLRRRRLRLRLLRLLRRLLRLRRLLRRRLLRLLLLRRLLLRLLRLLLRLLRLRLLRRLLRLRLLRLLRLLRLRRRRLRRLRLRLLRRRRRLRRLLLLLRRLLRRLLRLRLLLLRLLRRRLLRLRLLLLLRRLLLLLLRLRRLRRLRRRLLRRRRLRRLLRLR...

output:

14675046153
14675046153
14675046153
14675046153
14675046153
14711053608
14711053608
14711053608
14675048345
14675048345
14711052572
14711052572
14675049521
14711051918
14675050011
14711051272
14675050511
14711050634
14675051021
14711050004
14711050004
14711050004
14711050004
14711050004
14711050004
...

result:

ok 300000 tokens

Test #6:

score: 0
Accepted
time: 89ms
memory: 7008kb

input:

300000
RRLRRRLRLRLLRRLRRLRRLRLRLRRLLRLRLLRLRRRLRLLLRLRRRLLRRLLRRRRRRRRRRLRRRRRLRRLLRRRLLRRRRLRRRLLLLRLRRRLRLRRRLLLLRRLRRLRLLLRRLLLLRLLRRLLLLRRLRRLRRRLLRRLRRLLLLLLRLLLLRLLRLRRRRLLLRRLLLLRLLRLLLLLLRLLLRLRRLLLRLRRRLRRLRLLLLLLLRLLLRRLLRRRRRRLLLRRLLRRLRRLRLLRRRLRLRRLLLRLRLLRRLRRLLLLRLLRLRLRLLLLRRLLRRLLRL...

output:

22787839730
22787839730
22880214348
22787840400
22787840400
22787840400
22880211783
22787841030
22880210527
22787841668
22880209285
22880209285
22787843398
22787843398
22880207320
22787844052
22787844052
22880205473
22787844296
22787844296
22880204694
22787844652
22880204554
22787845020
22880204432
...

result:

ok 300000 tokens

Test #7:

score: 0
Accepted
time: 265ms
memory: 31788kb

input:

300000
RRULRDDDDLDUDUUDLDUULRLRLDLLURRLUDLLDLDULULDLDULURDUUDLDDLDRRLRLDULUUDLURRURLLRURLLLLLDDLULUUUURLULURLLURUDRDLDLRLLRLDLRRLDDURRUDRLLRRUDDRLURLDULDDLDDRLLLLURRRLURLDUUUUDDLRDDDDDDDUURUURURDDUDRDLRUUDLUULDRLULDRLRLRDUUUDRRRRDRRLDDDDRUDLDDDLULLDLRDDDRURULURRDRLURDLDULUUDULLULLDDDDLULUUULDRRDDUUD...

output:

334103085
334103085
333686191
333155992
334103084
333940727
333940727
333940727
333940727
333155978
333940727
333686155
333940729
333686171
333686171
333940761
333156015
333940783
333686183
333686183
333155983
334103092
333155985
334103095
333155991
333940792
333155985
333155985
333686137
334103099
...

result:

ok 300000 tokens

Test #8:

score: 0
Accepted
time: 277ms
memory: 31520kb

input:

300000
URULLDULRRLDULURURLDRLLDRUDUUUURDLRDLDDRLLLDLDLDLLUULDRURLLLUURRUURURLDULLRRDRLDUURURDLDDLDUULDRULDDRDRRDUUULURURDLUURRRRLDLLDRUDLULDDUUULLUDULLRLUDRLLDLLDRDLDULRDLRRUDRDRLRRLURDRDDRUDRRLLRLDRRURUDLRLDURLDRURLDLDLUDUDDULDRRRDDDUDRDUDLUDRLLUDLRDULRRLLRDRULRRLDLRUULULDLLDUDDDDRLLULLDDUULDDLULRR...

output:

207492856
207660809
207492884
207290296
207290296
207233154
207492857
207290241
207660745
207660745
207290202
207232836
207492876
207290162
207492900
207660738
207492872
207660710
207290036
207232754
207660624
207290008
207290008
207232832
207660644
207493020
207232671
207493071
207493071
207493071
...

result:

ok 300000 tokens

Test #9:

score: 0
Accepted
time: 411ms
memory: 82960kb

input:

300000
LUUUUUULUUUULULUUULULULUULLULLULULUUULULLUULLUUUUUUULULUULLLLULLLLUULLLLUULLUUULULUUUUUUUUULUULUUULLULLULUUULLUUULULULULULLLLLUUULUULLLLUUUUULULLLUULLLUULLUUULLULULLULULLLLLULUUULULLUUUULLLLLLLLLLULULLLLUULLULLLLUUULLULUULULLULLULLLLLUULULLUULLLULULLLLUULULLUULUULULLLULLUUUULLLUULUUULUULULULL...

output:

426366091
424362543
424362543
424362543
424362543
424362543
424362543
426366085
424362543
424362543
424362543
424362543
426366081
424362537
426366081
424362531
424362531
424362531
426366079
424362533
426366067
424362547
426366067
424362545
424362545
426366077
426366077
424362547
426366073
426366073
...

result:

ok 300000 tokens

Test #10:

score: 0
Accepted
time: 412ms
memory: 85120kb

input:

300000
UUUULULLULLULULULLULULLLLLLLUUULLUULLULLLUULLULLUULLULUUUULLLULLLUUUUUUULLUUUUUUULULLLLUULUUUULLUUULLLUULLLULULUULULLUULUUUULUUULLUULLLLULUUULLULUULULLLULULULULLUULUULLULULLUULULLLUULLULLLLLLUUUULLLUULLLLLULULLUUUUULULULLUUUULUULLULUULULLLLUUULLUULULLUUULLUULLLULULULLULULULUUULULLUUULULLULLUU...

output:

1599761064
1599761064
1599761064
1599761064
1608842544
1599761062
1608842544
1608842544
1599761064
1608842542
1608842542
1599761066
1608842530
1599761080
1608842530
1599761094
1608842518
1608842518
1599761096
1608842516
1599761096
1608842510
1608842510
1608842510
1608842510
1608842510
1608842510
160...

result:

ok 300000 tokens