|
|
I have 'Time limit exceeded' after 13 test. Возможно ли решить данную задачу на Питоне? У меня после 13 теста лимит времени исчерпан. Yes, user named ixiolirion did so (barely withing time limit, but still). My solution is O(NlogN),but I thought there may be some solutions use only O(N) time, thank you for your sharing! Can someone give me more testcases to figure out what's wrong with my solution? Anyone? Haven't encountered such test with WA. I suggest you to look for integer overflows. 3 -100 01.03 00:00 -100 01.05 00:00 +300 01.04 00:00 -100 -200 -100 3 +500 03.01 00:00 +500 01.01 00:00 -1000 02.01 00:00 check whether months have higher priority than days in your program Edited by author 20.10.2016 20:42 I am always wrong. Oh, I know. I should use long long! Edited by author 29.12.2015 19:12 give some tests, pls this makes my algo fail: 4 -500 05.01 00:00 +500 01.01 00:00 -500 02.01 00:00 +500 04.01 00:00 ANSWER: -500 0 -500 0 (mine): -500 0 -500 -500 5 +1 01.01 00:00 -1 01.02 00:00 -1 01.03 00:00 +1 01.04 00:00 -1 01.05 00:00 4 -500 05.01 00:00 +500 01.01 00:00 -500 02.01 00:00 +500 04.01 00:00 5 +1 01.01 00:00 -1 01.02 00:00 -1 01.02 12:00 +1 01.02 06:00 -1 01.02 03:00 Could anyone provide any information about the 11-th test? FOR 5 -1000 10.09 21:00 +500 09.09 14:00 +1000 02.09 00:00 -1000 17.09 21:00 +500 18.09 13:00 ANSWER IS -1000 -500 0 -500 -500 OR -1000 -500 0 -500 0 The first one. Jenya never puts earned money into the credit account. why then the 2nd debt is -500 not -1000? date,understand Edited by author 18.11.2014 13:14 |
|
|