QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#502960#5634. RATSxiaowuc1100 ✓0ms3744kbC++172.4kb2024-08-03 15:39:012024-08-03 15:39:02

Details

Tip: Click on the bar to expand more detailed information

Pretests


Final Tests

Test #1:

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

input:

60
1 30 123
2 30 1
3 30 11233455677899
4 50 7
5 30 29
6 30 1233334444
7 30 237
8 30 11111111111111111111
9 30 88888888888888888888888888
10 30 88888888888888999999
11 36 11122234445556677778
12 47 111112233333444455556666677777889
13 53 1111222333344446666777788
14 43 111333334444577778999
15 50 133...

output:

1 R 10
2 C 20
3 666677888
4 C 20
5 R 28
6 C 1
7 R 15
8 1666666666777777777
9 R 19
10 R 28
11 R 28
12 R 44
13 C 28
14 15666777777
15 15555566677777777777
16 15666777777
17 1122277
18 R 21
19 4444555555
20 R 20
21 1111177777778
22 R 53
23 238889
24 88889999
25 145557777
26 11144445
27 1177
28 C 21
29 ...

result:

ok 60 lines