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

Обсуждение задачи 1013. K-ичные числа. Версия 3

[updated task] WA#2 sample tests or hints appreciated
Послано alex_online 11 ноя 2014 16:47
Hello, could you check if my test is correct?
4
10
1234
Answer: 222 (??)
~Thanks
Re: [updated task] WA#2 sample tests or hints appreciated
Послано Diegox 24 ноя 2014 12:17
my answer is: 191
Re: [updated task] WA#2 sample tests or hints appreciated
Послано sleepwalker 11 ноя 2016 23:33
Why the answer is 191? As far as I understand, we need to count numbers from 1000 to 1234 without 00. There are only 12 of them:
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1100
1200
So 1234 - 1000 - 12 = 222. Where am I wrong? Thanks.
Re: [updated task] WA#2 sample tests or hints appreciated
Послано Cirilla 25 дек 2016 15:23
My answer is also 191, but i got WA#3
Re: [updated task] WA#2 sample tests or hints appreciated
Послано ToadMonster 26 дек 2016 15:10
> As far as I understand, we need to count numbers from 1000 to 1234 without 00

No. We need to count numbers from 1000 to 9999 without 00.
Result - 8829 - we should divide by 1234 - 7, remainder 191.
Remainder is the answer.

So answer is 191.

Edited by author 26.12.2016 15:11
Re: [updated task] WA#2 sample tests or hints appreciated
Послано coolboy19521 3 июл 2024 18:35
me to