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 1008. Image Encoding

Help needed
Posted by ile 14 Mar 2010 03:55
Hey everyone,

I'm very frustrated. I spent couple hours on this problem and couldn't get it in Java. it's always WA#2. Can anyone give me some test data?

I know that input can be any of the two representations, and all test cases given in threads are passed.

I have really no clue, what's going on.
Help needed
Posted by ile 14 Mar 2010 03:57
I also checked for line breaks in input and output files. nothing works
Re: Help needed
Posted by Konovalov 24 Mar 2010 02:07
Image in first format:

10
1 1
1 2
2 2
2 3
2 4
2 5
3 1
3 2
4 2
4 3

Image in second format:

1 1
T,
R,
RT,
RB,
T,
T,
,
T,
,
.
Re: Help needed
Posted by ile 26 Mar 2010 02:08
Sorry for late reply!

Yes, that's exactly what I get. I don't think that the problem is within algo... I think there is some stupid mistake... something like extra line break or something else... =(
Re: Help needed
Posted by Yaroman 20 Jun 2010 16:31
The point is to read the statement thoroughly, more precise:
Input
One representation of the image will be given to your program in the input.
Output
Your program has to write other representation of the image to the output.
Re: Help needed
Posted by ile 21 Jun 2010 00:53
I guess you can apply it yourself!
I said that:
"I know that input can be any of the two representations, and all test cases given in threads are passed."

Read carefully before saying something...
Re: Help needed
Posted by Owidp 17 Feb 2013 07:59
I'm really agree with you!!!And now I haven't fixed my WA2 yet!!!How can that be!!Could you give me some idea,ile?I have checked my code for a few days...