시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 256 MB | 26 | 21 | 16 | 84.211% |
Driving through the Irish countryside, one frequently sees enigmatic small grey stones sitting by the wayside, spaced about a kilometre and a half apart. As it turns out, these stones once had a purpose: they were milestones, intended to demarcate this venerable unit of measurement.
Being so old and, crucially, collectible by magpies and larger scamps alike, not all of these stones have remained.
Passing by some more of these tattered markers at a constant but unknown speed, you may still be able to gain some information from their placements. For example, since you started counting you have passed exactly M remaining stones; how fast could you have been driving?
Output two lines:
4 12 1 2 4 5 6 8 12 18 26 28 30 34 36 37 39 40
2 1 2
5 10 1 2 3 4 5 0 1 2 3 4 5 6 7 8 9
1 1
3 6 1 2 4 11 12 15 19 24 30
0
2 3 1123456789000 1123456789007 5 8 13
2 3 5