ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1044. Счастливые билеты. Easy!

interesting solution - it works!!))
Послано Eternal 30 янв 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;
}
Re: interesting solution - it works!!))
Послано Roma Labish[Lviv NU] 30 янв 2007 23:47
Here is nothing interesting! It's cheating solution. You precalc all variants and nothing else.
Re: interesting solution - it works!!))
Послано AlexF [USTU] 30 янв 2007 23:57
I don't think, that this solution is cheating, but it also isn't interesting. Just a simple problem.)
Re: interesting solution - YES!!!
Послано ImranYusubov 26 фев 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?!!
Re: interesting solution - YES!!!
Послано jhgkhdlkjsgfsjhfdhkhj 1 апр 2008 23:19
In Russian this solution call "Частный случай"
Re: interesting solution - it works!!))
Послано a][c 3 сен 2008 18:26
hmm...
[:||||:]
Re: interesting solution - it works!!))
Послано QAFQAZ IMRAN. YUSUBOV 28 окт 2008 11:34
"Частный случай"  you are right!
Re: interesting solution - it works!!))
Послано shahed adnan 15 фев 2011 21:48
Every one has a chance to say some thing in mother language...i also saying...
এতে ইজি কিছহু নাই। সব ই কথিন।
Re: interesting solution - it works!!))
Послано ONU_Latysh 7 янв 2012 18:18
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.
Re: interesting solution - it works!!))
Послано staticor 24 июн 2013 19:18
Chinese: 卑鄙啊
Re: interesting solution - it works!!))
Послано kezhenxu 20 июн 2014 12:23
oho~I found a partner, Chinese man
Re: interesting solution - it works!!))
Послано kezhenxu 20 июн 2014 12:24
Thanks for giving test data!! \*^_^*/
Re: interesting solution - it works!!))
Послано Shariar Kabir (Himel) 7 июн 2015 20:33
kill myself
Re: interesting solution - it works!!))
Послано xuantung 11 дек 2015 22:18
fuck you chinese
Re: interesting solution - it works!!))
Послано gerila 4 май 2019 21:04
বুকে আসেন ভাই :D @shahed adnan

Edited by author 04.05.2019 21:05

Edited by author 04.05.2019 21:05
Re: interesting solution - it works!!))
Послано Shahriar Siddique 16 май 2019 12:08
This code works but that's not real ans.

Edited by author 16.05.2019 12:10