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 1007. Code Words

Some questions about the sample input!Need help!
Posted by Ural_Yin Tong 4 May 2003 21:15
for the sample input:
4
0000
011
1001
11011
can the output be:?
0000
0110
1001
11001
you see,in the last string,the total('1''s place) is 1+4+5=10
10 mod  (n+1)=10 mod 5=0,why not the answers isn't this one??
Another question:
for the string"10011"
is the s=1+4+5=10
or s=1+2+5=8?
Can anyont answer me?
Thanks a million!єЗєЗ
Re: Some questions about the sample input!Need help!
Posted by simply 6 Jun 2003 17:36
> can the output be:?
> 0000
> 0110
> 1001
> 11001-------------->the length of the string must be 4!!




> you see,in the last string,the total('1''s place) is 1+4+5=10
> 10 mod  (n+1)=10 mod 5=0,why not the answers isn't this one??
> Another question:
> for the string"10011"
> is the s=1+4+5=10
--------------------------this one.



> or s=1+2+5=8?
> Can anyont answer me?
> Thanks a million!єЗєЗ