11044 - Searching for Nessy
Moderator: Board moderators
-
- Learning poster
- Posts: 58
- Joined: Wed Dec 31, 2003 8:43 am
- Location: Dhaka, Bangladesh
- Contact:
11044 - Searching for Nessy
i just print (n/3) * (m/3) and got WA.
Is my algorithm right ??
if Wrong, then anyone please help me to give some ideas.
Is my algorithm right ??
if Wrong, then anyone please help me to give some ideas.
-
- A great helper
- Posts: 383
- Joined: Mon Oct 18, 2004 8:25 am
- Location: Bangladesh
- Contact:
-
- Guru
- Posts: 584
- Joined: Thu Jun 19, 2003 3:48 am
- Location: Sanok, Poland
- Contact:
-
- A great helper
- Posts: 383
- Joined: Mon Oct 18, 2004 8:25 am
- Location: Bangladesh
- Contact:
Re: 11044 - Searching for Nessy
How (n/3) * (m/3) derieved? anyone pls help
Re: 11044 - Searching for Nessy
Think rows and columns differently.
Ami ekhono shopno dekhi...
HomePage
HomePage
Re: 11044 - Searching for Nessy
@LIMON your algorithm is partially correct.
Consider the following cases:
Consider the following cases:
Code: Select all
4
173 2936
8801 807
3403 7068
12 11
Code: Select all
55746
788977
2671704
12
You tried your best and you failed miserably. The lesson is 'never try'. -Homer Simpson
Re: 11044 - Searching for Nessy
I tested the given input-output and my code passed the test... but then I got WA!!
my code =>
Now Where is my mistake ?? ![:(](./images/smilies/icon_frown.gif)
my code =>
Code: Select all
Error was for(i=0;i<=testCase;i++) :D
![:(](./images/smilies/icon_frown.gif)
Last edited by mpmohi on Sat Nov 22, 2014 11:35 pm, edited 1 time in total.
-
- Guru
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Re: 11044 - Searching for Nessy
Try running your code on the sample input.
Check input and AC output for thousands of problems on uDebug!
Re: 11044 - Searching for Nessy
I don't get this . How it could be implented . can anyone please describe with an example ??Jan wrote:Think rows and columns differently.
I know I am a Failure Guy . ![:(](./images/smilies/icon_frown.gif)
![:(](./images/smilies/icon_frown.gif)