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 |
Re:解题报告。。。。。。。。。In Reply To:解题报告。。。。。。。。。 Posted by:jince at 2009-09-09 20:43:49 优美的代码,尤其是get函数,写的很省…… 原本我是想先求出M的所有约数,假设一共t个,P[1,2,……,t],定义Ai为N个数有公约数P[i], 再用荣斥原理的公式求结果。但是实现起来比较麻烦。你这个代码写的是 真省 !呀! Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator