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 1044. Lucky Tickets. Easy!

Nikolay Makarov interesting solution - it works!!)) [15] // Problem 1044. Lucky Tickets. Easy! 30 Jan 2007 22:16
#include <stdio.h>
int main(){
    int n;
    scanf("%d", &n);
    if (n == 2) {
        printf("10");
        return 0;
    }
    if (n == 4) {
        printf("670");
        return 0;
    }
    if (n == 6) {
        printf("55252");
        return 0;
    }
    printf("4816030");
    return 0;
}
Romko [Lviv NU] Re: interesting solution - it works!!)) [1] // Problem 1044. Lucky Tickets. Easy! 30 Jan 2007 23:47
Here is nothing interesting! It's cheating solution. You precalc all variants and nothing else.
I don't think, that this solution is cheating, but it also isn't interesting. Just a simple problem.)
ImranYusubov Re: interesting solution - YES!!! [1] // Problem 1044. Lucky Tickets. Easy! 26 Feb 2008 16:47
It is easy to understand why it works but how did you calculate the numbers for 4, 6, 8? With a calculator?!!
jhgkhdlkjsgfsjhfdhkhj Re: interesting solution - YES!!! // Problem 1044. Lucky Tickets. Easy! 1 Apr 2008 23:19
In Russian this solution call "Частный случай"
hmm...
[:||||:]
QAFQAZ IMRAN. YUSUBOV Re: interesting solution - it works!!)) [6] // Problem 1044. Lucky Tickets. Easy! 28 Oct 2008 11:34
"Частный случай"  you are right!
shahed adnan Re: interesting solution - it works!!)) [5] // Problem 1044. Lucky Tickets. Easy! 15 Feb 2011 21:48
Every one has a chance to say some thing in mother language...i also saying...
এতে ইজি কিছহু নাই। সব ই কথিন।
Chinese: 卑鄙啊
oho~I found a partner, Chinese man
fuck you chinese
বুকে আসেন ভাই :D @shahed adnan

Edited by author 04.05.2019 21:05

Edited by author 04.05.2019 21:05
Shahriar Siddique Re: interesting solution - it works!!)) // Problem 1044. Lucky Tickets. Easy! 16 May 2019 12:08
This code works but that's not real ans.

Edited by author 16.05.2019 12:10
Well he wrote a programm to calculate the answers first, so this is a solution.
And due to the performace it is the very good solution.
So stop winning and be smart guy.
Thanks for giving test data!! \*^_^*/
Shariar Kabir (Himel) Re: interesting solution - it works!!)) // Problem 1044. Lucky Tickets. Easy! 7 Jun 2015 20:33
kill myself