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

Обсуждение задачи 1731. Укроп

Solution
Послано Roland 17 окт 2009 21:15
Very easy:)
just print numbers 1,2,...,n
then n+1,2*n+1,...,m*n+1
Re: Solution
Послано fuch_prog_er 23 окт 2009 15:28
Sorry,can you explain why...

Thank you.
Re: Solution
Послано Roland 26 окт 2009 22:33
because if you take any 2 numbers(a1,a2) from the 2 line and any 2 numbers(b1,b2) from the 3 line,
a1+b1!=a2+b2 and a1+b2!=a2+b1...
Re: Solution
Послано Zefick 19 мар 2010 10:47
or
1, 2, 3, ... n
100, 200, 300, m*100
:)
Re: Solution
Послано wizzi 7 апр 2010 17:39
Can someone explain me why following solution incorrect?
1,2,3,..,n
n, 2*n+1, 3*n+2, .. m*n+m-1

I got WA#1 with it.
Re: Solution
Послано dmytrocx75 20 апр 2010 00:39
_


Edited by author 20.04.2010 00:42
Re: Solution
Послано dmytrocx75 20 апр 2010 00:40
I had done as you saggest and after my program was crashed
on 6 test. What it means? And what me do now? Please help, because it very importent for me. Thank you for advance!
Roland писал(a) 17 октября 2009 21:15
Very easy:)
just print numbers 1,2,...,n
then n+1,2*n+1,...,m*n+1
Re: Solution
Послано dmytrocx75 20 апр 2010 01:40
Everithing is done! Sorry for my mindless please.
Re: Solution
Послано dmytrocx75 20 апр 2010 03:56
Excuse me again. I would like to know from what thinking I can gone to this solution. Because I must to explain my teacher why this variant of solution is correct.Please explain me how to gone to such solution logically or vhere I can read about it.
Thank you for advance!
Roland писал(a) 17 октября 2009 21:15
Very easy:)
just print numbers 1,2,...,n
then n+1,2*n+1,...,m*n+1
Re: Solution
Послано vanla 17 окт 2011 22:27
You may write random numbers and get AC@)
Re: Solution
Послано Stiller 18 ноя 2011 11:09
How?
Re: Solution
Послано amirani 11 янв 2012 19:24
it's not true. random numbers can't be always true. In fact sometimes random numbers can be equal.in statement is's written that equal numbers should not be. And even if won't be equals is possible to catch WA.
Sorry for bad Englis.:)
Re: Solution
Послано mberdyshev 16 авг 2016 00:44
cause you have n twice
wizzi писал(a) 7 апреля 2010 17:39
Can someone explain me why following solution incorrect?
1,2,3,..,n
n, 2*n+1, 3*n+2, .. m*n+m-1

I got WA#1 with it.