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 1873. GOV Chronicles

My AC
Posted by Kleninz 25 Oct 2011 09:56
int main()
{
    int n;
    scanf("%d", &n);
    d[0] = 5;
    d[1] = 20;
    d[2] = 12;
    d[3] = 2;
    d[4] = 1;
    d[5] = 4;
    d[6] = 6;
    d[7] = 1;
    d[8] = 4;
    d[9] = 4;
    d[10] = 1;
    d[11] = 0;
    printf("%d", d[n]);
    return 0;
}
Re: My AC
Posted by Savchenkov (NNSTU) 26 Oct 2011 21:59
Yeah, I solved it without looking into discussions.

int n, p[]={5,20,12,2,1,4,6,1,4,4,1,0};

int main()
    {
    cin >> n;
    cout << p[n];
    return 0;
    }

P.S. this problem is EVIL!  (o_O)
Re: My AC
Posted by morbidel 26 Oct 2011 22:35
Hey, let others also solve it, don't just post here the solution!
Re: My AC
Posted by hatred 30 Dec 2011 00:24
Why Sasha is 2, he didnt visit 1 contest
Re: My AC
Posted by Alexey Dergunov [Samara SAU] 15 May 2012 23:18
Thank you for your solution, I didn't want to read these megabytes of letters by myself.
Re: My AC
Posted by adamant 28 Nov 2013 17:32
+ + + - - - - - - - - -
+ + + - - - - - - - - -
+ + + - - - - - - - - -
+ + + - - - - - - - - -
+ + + - - - - - - - - -
// Dissolution of Alarm
- + + - - - - - - - - -
- + + + - - - - - - - -
- + + - + - - - - - - -
- + + - - + - - - - - -
- + - - - + - - - - - -
// Next year
- + + - - - + - - - - -
- + + - - - + - - - - -
- + + - - - + - - - - -
- + - - - - + + - - - -
// Lesha gone
- - - - - + + - - - - -
- + - - - + + - - - - -
// Nikita & Fedya gone
- + - - - - - - + + - -
- + - - - - - - + + - -
- + - - - - - - + + - -
- + - - - - - - + + - -
// One more dissolution of team
- + - - - - - - - - + + // UNCOUNT
- + - + - - - - - - + -