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 1236. Decoding Task

I dont' understand
Posted by Loky_Yuri [USTU] 8 Mar 2007 13:25
In the task said "The first line consists of 2N characters and represents the encoded message N bytes long".
But I understood that if we encode the message length of n, we will receive message the same length (n). Whats wrong?
Re: I dont' understand
Posted by KIRILL(ArcSTU) 8 Mar 2007 13:53
Each byte can be presented as 2 characters in a hexadecimal form

0 - 00
1 - 01
..
16 - 10
..
255 - FF

so n bytes = 2*n characters
Re: I dont' understand
Posted by Loky_Yuri [USTU] 8 Mar 2007 13:59
Thank you! Now I'll try to solve it!