| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
恩,也不失为一种可行解:)In Reply To:Re:高手们,看看这有啥错误吧??(1061题) Posted by:8013 at 2003-11-26 20:49:43 > 呵呵,我觉的欧几里德的方法在数学上很好搞定,但写起程序就变得很麻烦了,特别是要求得到ar+bs=d中的r和s,实在太麻烦了,我最后是尽量优化了一下,把同余式化到不能再化的,再把范围尽量缩小一下,数据没有出界,时间也过的了。 > Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator