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

Common Board

1014..W.A again
Posted by Petko Minkov 6 Oct 2000 02:25
Hiya,

can anyone tell me some tricky input data for problem
1014 (the one with the multiplication of digits),
because i get "Wrong Answer" which is not this
i suppose to see for my "try'em all" solution.

Petko Minkov
trick is that you should print -1 when failed
Posted by tjq(killer of zju) 6 Oct 2000 16:41
10 for 0
1 for 1
2 for 2
and finally and most important
-1 for 11
Re: trick is that you should print -1 when failed
Posted by Petko Minkov 6 Oct 2000 23:34
> 10 for 0
> 1 for 1
> 2 for 2
> and finally and most important
> -1 for 11

 Thank you very much. I got accepted! But for me, the
tricky one was 0. Why for 1..9 you print coresponding
1..9 and for 0 you print 10 ?? I can't figure it out.
Re: trick is that you should print -1 when failed
Posted by longman cheng(@Killer team of ZJU) 7 Oct 2000 10:10
> > 10 for 0
> > 1 for 1
> > 2 for 2
> > and finally and most important
> > -1 for 11
>
>  Thank you very much. I got accepted! But for me, the
> tricky one was 0. Why for 1..9 you print coresponding
> 1..9 and for 0 you print 10 ?? I can't figure it out.
>
"Your task is to find the minimal POSITIVE integer number
Q "
do you think that 0 is a positive number?