11360 - Have Fun with Matrices
Moderator: Board moderators
11360 - Have Fun with Matrices
Hi, I try to solve this problem and I got wa.
I get correct output with the sample input, can any one post some input to see if i can find my mistake.
thanks.
I get correct output with the sample input, can any one post some input to see if i can find my mistake.
thanks.
I check my code and I think it works fine, I considered the case, and print the blank line at the end of every case, i submited my code again and i got In judge queue what is it?, here is my code:
Code: Select all
I got Ac
-
- New poster
- Posts: 18
- Joined: Wed Jan 03, 2007 2:36 am
- Location: Los Teques, Venezuela
Hi! I have too WA and i take carefully with the blank line after last case, and i proof with matrices of size 1 and nothing, WA.
Here is my code for that somebody can help me.
thanks to all.
![:-?](./images/smilies/icon_confused.gif)
Here is my code for that somebody can help me.
thanks to all.
![:P](./images/smilies/icon_razz.gif)
Code: Select all
Code Cutted, In my post of below is the file updated
Last edited by Saul Hidalgo on Tue Jan 01, 2008 1:06 am, edited 1 time in total.
-
- New poster
- Posts: 18
- Joined: Wed Jan 03, 2007 2:36 am
- Location: Los Teques, Venezuela
Hi! very thaks for answer me
But, I tried without the last line and i have WA again.
. Here is the new code without the last blank line.
![:)](./images/smilies/icon_smile.gif)
![:)](./images/smilies/icon_smile.gif)
![:cry:](./images/smilies/icon_cry.gif)
Code: Select all
Code AC
Last edited by Saul Hidalgo on Tue Jan 01, 2008 2:42 pm, edited 1 time in total.
-
- New poster
- Posts: 18
- Joined: Wed Jan 03, 2007 2:36 am
- Location: Los Teques, Venezuela
Re: 11360 - Have Fun with Matrices
Code: Select all
Code Removed
Last edited by lnr on Fri Jun 20, 2008 4:19 pm, edited 1 time in total.
Re: 11360 - Have Fun with Matrices
Input
Your code gives the wrong output for the above case!
You haven't implemented the exchanges of columns correctly.
When you get wrong answer, try to test with some inputs of your own.
Think of the obvious cases first.
Code: Select all
1
3
123
456
789
1
col 1 2
You haven't implemented the exchanges of columns correctly.
When you get wrong answer, try to test with some inputs of your own.
Think of the obvious cases first.
11360 - Have Fun with Matrices
Removed
-
- Learning poster
- Posts: 97
- Joined: Fri Aug 22, 2008 10:18 pm
- Location: CSE.SUST.SYLHET
Re: 11360 - Have Fun with Matrices
Mata wrote:Hi, I try to solve this problem and I got TLE.
can any one help me????????
I get correct output with the sample input
thanks.in advance
here is my code
CUT after ACC.............
![]()
Last edited by saiful_sust on Mon Jun 01, 2009 9:24 pm, edited 1 time in total.
Re: 11360 - Have Fun with Matrices
Help me i got wa
![:(](./images/smilies/icon_frown.gif)
Code: Select all
code removed
Last edited by Obaida on Mon Jun 08, 2009 9:39 am, edited 1 time in total.
try_try_try_try_&&&_try@try.com
This may be the address of success.
This may be the address of success.
Re: 11360 - Have Fun with Matrices
Some 1 plz help!!! ![:(](./images/smilies/icon_frown.gif)
![:(](./images/smilies/icon_frown.gif)
try_try_try_try_&&&_try@try.com
This may be the address of success.
This may be the address of success.
Re: 11360 - Have Fun with Matrices
Do not use %ld & %c in a same code
use gets() & parsing it by ssacnf()
REPLACE getchar() & %c
hope now acc
use gets() & parsing it by ssacnf()
REPLACE getchar() & %c
hope now acc