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 1036. Lucky Tickets

Ohhhf! @Last i did it in 0.23 sec and 131KB. see for hints
Posted by Locomotive 7 Feb 2003 19:26
Hi
  all i didnt see was s might be 0 !!!!
u should remeber too:
  if odd(s) then writeln(0)
and also some tests:
5 10
---> 15876

50 896
---> 1625625

10 10
---> 4008004

49 2
---> 2401

1 20
---> 0

50 0
---> 1 (which i didnt think!)

Have Nice Time
mail me 4 more help
aidin_n7@hotmail.com
u rule ~nt~
Posted by foxX 7 Mar 2003 23:24
> Hi
>   all i didnt see was s might be 0 !!!!
> u should remeber too:
>   if odd(s) then writeln(0)
> and also some tests:
> 5 10
> ---> 15876
>
> 50 896
> ---> 1625625
>
> 10 10
> ---> 4008004
>
> 49 2
> ---> 2401
>
> 1 20
> ---> 0
>
> 50 0
> ---> 1 (which i didnt think!)
>
> Have Nice Time
> mail me 4 more help
> aidin_n7@hotmail.com
>
Impossible
Posted by vladu adrian 8 Jul 2003 03:28
Impossible! This problem's testdata is verry messed up. If you do it
with large numbers, you'll see that these results are incorrect.