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 1217. Unlucky Tickets

a hint
Posted by esbybb 14 Oct 2016 21:07
        long ans[] = new long[23];
        ans[2]=lim[2];
        for (int i=4; i<=20; i+=4) {
            int half=i/2;
            ans[i]=lim[half]*lim[half];
            ans[i+2]=lim[half]*lim[half+2];
        }
        System.out.println(ans[N]);
Re: a hint
Posted by esbybb 14 Oct 2016 21:08
lim stands for the "lucky in Moskva"