ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1698. Square Country 5

Fail (compiler)
Posted by DK [Samara SAU 1: X2008] 26 Mar 2009 02:25
My solution (about 40K of ifs, 10_26_16_32_J_1516.cpp from petrozadosk archive or I could e-mail it if needed) get this verdict. Are there any restrictions on compilation time? I think they should be added to FAQ

Edited by author 26.03.2009 02:26
Re: Fail (compiler)
Posted by Vedernikoff Sergey (HSE: АОП) 26 Mar 2009 15:53
2000 ifs? So inefficient... Better use const int ans[2000] = {
2000 numbers here
}
Re: Fail (compiler)
Posted by DK [Samara SAU 1: X2008] 26 Mar 2009 18:40
Yes, but sometimes we need a couple of sheets of paper ;) This solution is about 40 pages, and print limit was 50 pages, so...
Re: Fail (compiler)
Posted by Tolstobrov Anatoliy[Ivanovo SPU] 27 Aug 2009 22:31
I use only 2 authomorfic numbers with size 2000 and result is count of non zero digits + 1.