|
|
d = {'._.\n|.|\n|_|': 0, '...\n..|\n..|': 1, '._.\n._|\n|_.': 2, '._.\n._|\n._|': 3, '...\n|_|\n..|': 4, '._.\n|_.\n._|': 5, '._.\n|_.\n|_|': 6, '._.\n..|\n..|': 7, '._.\n|_|\n|_|': 8, '._.\n|_|\n._|': 9 } 7589535 - Accepted 7590680 - Топ среди Питона 3 по использованию памяти) There are mistake in statement may be. Difference between ._. ._. ..| and ._| is 1 |_. |_. Difference between ._. ._. ..| and |.| is 2 (the second example, the second number) |_. |_| My program write '02:05' except '00:05' like in example and I have wrong answer. Can someone help me? Edited by author 04.06.2016 15:30 Of course only after the end of contest For this task, pay attention to last few sentences. >>Each subsequent value must be strictly less than the preceding one.<< and >>If several answers exist, output any of them. It is guaranteed that there is at least one consistent sequence.<< Thanks a lot! I forgot that 1 test can be not like in statement. And I'll fix my mistake. Edited by author 05.06.2016 15:30 Edited by author 05.06.2016 15:27 Edited by author 07.06.2016 16:45 |
|
|