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

Обсуждение задачи 1515. Финансовая реформа

good test case
Послано Giorgi Saghinadze (Tbilisi SU) 25 дек 2006 16:08
56
1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 100000 131072 200000 262144 300000 400000 500000 524288 600000 700000 800000 900000 900001 900002 900003 900004 900005 900006 900007 900008 900009 900010 900011 900012 900013 900014 900015 900016 999000 999001 999002 999003 999004 999005 999006 999007 999008 999009  1000000

admin please add this test case. many programs (for example mine) can't paass it.
Re: good test case
Послано Sandro (USU) 26 дек 2006 16:47
Thank you!
Test of such structure was added, 37 submits lost AC verdict (submits from online contest were not rejudged).
Re: good test case
Послано Madiyar Tursunbayev 27 дек 2006 12:56
Cool !!!
Re: good test case
Послано Beautiful Mind 28 дек 2006 18:49
I used greedy, but getting wrong answer? doesn't it a greedy problem?
plz, let me know if i am wrong or right.

Edited by author 28.12.2006 18:51

Edited by author 28.12.2006 18:52
Re: good test case
Послано Life is short... 31 дек 2006 23:10
you are right. It's very greedy :)
Re: good test case
Послано [SSAU_#617]snipious_#1 aka Pimenov Sergey Nikolaevich 29 янв 2007 16:42
The answer is 180002???
Re: good test case
Послано [SSAU_#617]snipious_#1 aka Pimenov Sergey Nikolaevich 29 янв 2007 18:10
Now... The true answer is 29038772!!!
Re: good test case
Послано Shadow 8 фев 2007 04:16
29,038,772 is a combination too.

you can see that the first 17 numbers are 2^0, 2^1... 2^16. with that all numbers between 1 and 131,071 are generated.

if you rest the summatory of the numbers of the list from 524,288 to the end to the number that you say, is obtained 124,303 and it's lower than 131,071, so can be generated.

the solution is 30 938 756 that is higher than the summatory of all numbers in the list
Re: good test case
Послано Lado Shurghaia( Tbilisi SU ) 13 сен 2007 09:43
30 938 757
this is answer