QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#336339#8287. Caught in the Middleucup-team199#TL 0ms0kbC++207.7kb2024-02-24 15:12:202024-02-24 15:12:21

详细

Test #1:

score: 0
Time Limit Exceeded

input:

20
10
RLRRRRLLRR
10
LRLLLLRRLR
6
RLRLRL
10
LLRLRRRRLR
6
LRRLLL
3
RLR
5
LLRRR
6
RRRRRL
9
LRRRLRRLR
1
R
10
RRRLLRRLLL
6
LRLLLR
9
LLRLRLRLR
7
RRRRLRR
2
LL
10
RRRLLRRLRR
2
RL
7
RRLRRLR
3
LLR
10
LLRLRRRLLR

output:

190 210
171 210
156 210
171 210
154 210
154 210
142 210
139 193
156 210
171 210
154 210
154 210
142 210
139 210
142 210
139 210
154 193
154 210
139 210
138 210
139 210
138 210
139 210
139 210
130 210
126 194
126 178
126 194
124 178
124 178
142 210
139 193
156 210
171 210
154 210
154 210
142 210
139 ...

result: