ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1731. Dill

Solution
Posted by Roland 17 Oct 2009 21:15
Very easy:)
just print numbers 1,2,...,n
then n+1,2*n+1,...,m*n+1
Re: Solution
Posted by fuch_prog_er 23 Oct 2009 15:28
Sorry,can you explain why...

Thank you.
Re: Solution
Posted by Roland 26 Oct 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
Posted by Zefick 19 Mar 2010 10:47
or
1, 2, 3, ... n
100, 200, 300, m*100
:)
Re: Solution
Posted by wizzi 7 Apr 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
Posted by dmytrocx75 20 Apr 2010 00:39
_


Edited by author 20.04.2010 00:42
Re: Solution
Posted by dmytrocx75 20 Apr 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 wrote 17 October 2009 21:15
Very easy:)
just print numbers 1,2,...,n
then n+1,2*n+1,...,m*n+1
Re: Solution
Posted by dmytrocx75 20 Apr 2010 01:40
Everithing is done! Sorry for my mindless please.
Re: Solution
Posted by dmytrocx75 20 Apr 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 wrote 17 October 2009 21:15
Very easy:)
just print numbers 1,2,...,n
then n+1,2*n+1,...,m*n+1
Re: Solution
Posted by vanla 17 Oct 2011 22:27
You may write random numbers and get AC@)
Re: Solution
Posted by Stiller 18 Nov 2011 11:09
How?
Re: Solution
Posted by amirani 11 Jan 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
Posted by mberdyshev 16 Aug 2016 00:44
cause you have n twice
wizzi wrote 7 April 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.