PivotOJ

Andrew the Ant

시간 제한: 1000ms메모리 제한: 128MB출처: CTU Open 2012BOJ 6612

예제

예제 1

입력
90000 1
0 R
10 1
0 L
14 5
3 L
6 L
13 L
8 R
1 R
출력
The last ant will fall down in 90000 seconds - started at 0.
The last ant will fall down in 0 seconds - started at 0.
The last ant will fall down in 13 seconds - started at 6 and 8.
코드를 제출하려면 로그인하세요.