|
|
Show all threads Hide all threads Show all messages Hide all messages | Solution spoiler. | Bliss | 1595. Perfect Sequence | 25 Oct 2018 01:34 | 1 | You may just want to continue the sequence from sample, for me it was enough to get it for n = 5 { 1, 3, 2, 6, 8, 4, 11, 5 } to start noticing the pattern. Alternatively, just plug it into OEIS and come across A019444 with an explanation how to compute the answer :D | TLE 17 | Drema [KhAI] Tihov Ilya | 1595. Perfect Sequence | 18 Feb 2016 17:25 | 2 | TLE 17 Drema [KhAI] Tihov Ilya 29 Jun 2009 15:34 How you solved this problem with out many long surpluses? I had TLE 17 too, i solved this by making some tests and observing the rule | how it can be solved in 0.062? | Alexander Kouprin | 1595. Perfect Sequence | 4 May 2015 20:37 | 4 | I had found O(n) solution but I need to out ~2.7 Mb. It's takes ~0.12 sec. So, how this problem can be solved in 0.062? So, nobody wants to answer me. It's pity. printf too slow you can use fwrite(), but first you need to translate the numbers into a string fwrite() also too slow ))) | TLE 26 please help | Smusenok Sergiy Andriyovich (KhAI) | 1595. Perfect Sequence | 9 May 2012 00:12 | 4 | give me some hints please! i used set<_int64> from STL Edited by author 28.08.2009 19:43 How use the hash_set ?? i write in C++. try to write your own hash_set, it is not so difficult however you don't need any hash or set there | #16 always access violation | wongjdong | 1595. Perfect Sequence | 1 Aug 2011 14:46 | 1 | i don't know how to deal with it. | Why WA1?? | Kurpilyansky Eugene (USU) | 1595. Perfect Sequence | 6 Jun 2009 12:14 | 3 | Why WA1?? Kurpilyansky Eugene (USU) 4 Jun 2009 12:17 I get WA1.. Why? for 3 my answer is "1 3 2" I think for 3 you answer is correct. What you answer for 2? Now I got AC. But I don't know that I fixed. | New problem 1595 Perfect Sequence added | Vladimir Yakovlev (USU) | 1595. Perfect Sequence | 3 Jun 2009 01:33 | 1 | New problem "Perfect Sequence" was added to the Problem set. Thanks to Aleksandr Bacherikov. |
|
|
|