|
|
вернуться в форумThank you! Thank you! In this forum I knew how solve this task! We must find lengths of pathes for every element of permutation and count their LCM. Don't forget about Int64 in Pascal and long long in C++. Here is my AC solution: [code deleted] Edited by author 15.08.2005 07:46 Edited by moderator 04.12.2019 20:48 Re: Thank you! Послано Adaon 17 фев 2008 09:52 Edited by author 17.02.2008 09:53 Re: Thank you! Послано Bobur 19 фев 2008 00:03 thanks a lot!! i can't find correct algo till today!! Re: Thank you! i think that this code must be deleted Re: Thank you! Послано Rashad 11 апр 2010 23:23 This code give TLE on test 9, how did you have AC? Re: Thank you! Послано gay 7 май 2010 13:21 Ydiota crocodilia pute Re: Thank you! You don't need long long or int64. Also, please delete your code, posting correct solution is against the rules! Edited by author 28.10.2011 00:27 |
|
|