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

Обсуждение задачи 1014. Произведение цифр

I don't understand.
Послано K -_-a I 8 апр 2004 18:26
Explain it please.
May be, I am too.
Послано Kirill Shmakov 10 апр 2004 20:39
I think, that test #4 incorrect. My program is simple.
It take the lager divizor of N, that less then 10, and put
it at begin of Q. If after that N != 1, then write -1. It's easy to prove, that it's true solution, but it take WA.
Re: May be, I am too.
Послано buggzy (Ilya Teterin - USU) 11 апр 2004 12:45
And what it will output for 1 and 0 ?
Re: May be, I am too.
Послано Vesper 21 апр 2004 18:57
Kirill Shmakov писал(a) 10 апреля 2004 20:39
I think, that test #4 incorrect. My program is simple.
It take the lager divizor of N, that less then 10, and put
it at begin of Q. If after that N != 1, then write -1. It's easy to prove, that it's true solution, but it take WA.
The same. The target is to minimize used digits and then sort them in ascending order within the result from left to right. Sad, but the judge blocks this solution. I just cannot understand why.

Ah, Im stupid :((((

The bug is exactly as I've stumbled upon in problem with 'trits' when I've watched not all possible situations. The output for 0 is 10.

Edited by author 22.04.2004 12:40
Re: May be, I am too.
Послано Lotl_kamran 8 янв 2006 15:56
var
c,counter,n,i:integer;
a:array[1..100] of integer;
begin
  readln(n); c:=9;
   if n=0 then write('10');
  if n=1 then write('0');
  repeat
   if (n mod c=0) then
    begin
     n:=n div c;
     inc(counter);
     a[counter]:=c;
    end
   else c:=c-1;
    until c=1;
          if n<>1 then write('-1');
    for i:=counter downto 1 do
     write(a[i]);
      end.
I think that answer is true
can you  say why is this false
haa-----
can you translate 1002 and 1003 problems to me in Azeri
or in turkish languages
  or explain form in english
 I can't understand much more in english
Kirill Shmakov писал(a) 10 апреля 2004 20:39
I think, that test #4 incorrect. My program is simple.
It take the lager divizor of N, that less then 10, and put
it at begin of Q. If after that N != 1, then write -1. It's easy to prove, that it's true solution, but it take WA.
Kirill Shmakov писал(a) 10 апреля 2004 20:39
I think, that test #4 incorrect. My program is simple.
It take the lager divizor of N, that less then 10, and put
it at begin of Q. If after that N != 1, then write -1. It's easy to prove, that it's true solution, but it take WA.
Kirill Shmakov писал(a) 10 апреля 2004 20:39
I think, that test #4 incorrect. My program is simple.
It take the lager divizor of N, that less then 10, and put
it at begin of Q. If after that N != 1, then write -1. It's easy to prove, that it's true solution, but it take WA.
Kirill Shmakov писал(a) 10 апреля 2004 20:39
I think, that test #4 incorrect. My program is simple.
It take the lager divizor of N, that less then 10, and put
it at begin of Q. If after that N != 1, then write -1. It's easy to prove, that it's true solution, but it take WA.
Kirill Shmakov писал(a) 10 апреля 2004 20:39
I think, that test #4 incorrect. My program is simple.
It take the lager divizor of N, that less then 10, and put
it at begin of Q. If after that N != 1, then write -1. It's easy to prove, that it's true solution, but it take WA.
Kirill Shmakov писал(a) 10 апреля 2004 20:39
I think, that test #4 incorrect. My program is simple.
It take the lager divizor of N, that less then 10, and put
it at begin of Q. If after that N != 1, then write -1. It's easy to prove, that it's true solution, but it take WA.
Re: May be, I am too.
Послано nobody89 1 апр 2007 06:21
"can you translate 1002 and 1003 problems to me in Azeri
or in turkish languages
or explain form in english
I can't understand much more in english"


Here is the concise translation of "1002" to Turkish. my Turkish isn't that good though, I just tried... hope you understand:

Verilen numaraya denk gelen en kisa kelimeler birligini(sequence) olusturman lazim. Kelimeler, numaradan hemen sonra verilmis olan sozlukten alacaksin. Iste inputta sunlar var :

Ilk satir - cevirilmesi gereken numara
2.ci satir - sozlukteki kelime sayisi (N diyelim)
ondan sonra N tane kelime.(hepsi ayri satirda)

Input sonu, -1'le belirtiliyor.

Edited by author 01.04.2007 06:23

Edited by author 01.04.2007 06:23

Edited by author 01.04.2007 06:23