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 1189. Pairs of Integers

must I write the '0'
Posted by Milly 31 Jan 2003 03:58
if the output contains the line below, must i write the '0' in the
number'01'?or just write'201 + 1 = 202'?HELP!!
201 + 01 = 202
Re: must I write the '0'
Posted by Locomotive 31 Jan 2003 08:28
i hadn`t try to solve this problem, before... and it is firs time i
read this problem (1189), but:
if you read problem carefully ;) you will find in samples it writes:

Sample Input
302

Sample Output
5
251 + 51 = 302
275 + 27 = 302
276 + 26 = 302
281 + 21 = 302
301 + 01 = 302

~~~~~~~~~~~~~~~
and so in last line of output it writes(301 + 01 = 302 ) :P
so i believe you should write '0'.

Sincerely
Aidin_n7
Yes, you are to write 0 (+)
Posted by Dmitry 'Diman_YES' Kovalioff 31 Jan 2003 10:10
For example, for input 300 you are to output:
5
250 + 50 = 300
273 + 27 = 300
275 + 25 = 300
280 + 20 = 300
300 + 00 = 300