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 1041. Nikifor

What's Test #9
Posted by Toyama Kazuha 1 Oct 2008 12:12
many people get WA at #9
Could anybody give me #9 testcase or give me an AC program
caocao9926@163.com

I use Gauss Maybe I get wrong because of eps
I've passed it at Pku ,but I can't AC here.
Thanks
Re: What's Test #9
Posted by Teacher30 1 Oct 2008 19:59
The trouble really can be in preсision.
If you use simple Gauss with type "long double" you'll always get WA.
Do calculations in long integer numbers or modulo big prime number.
If you want, i can send you some my solutions, WA 9, WA 17, AC.
Re: What's Test #9
Posted by Toyama Kazuha 5 Oct 2008 09:43
Yeah I want your program
Please :
caocao9926@163.com
I've tried to module big prime
but it doesn't work
and how to do calculations in long integer?

Thanks

Edited by author 05.10.2008 09:45