| ||||||||||
| 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:问一下这个题目怎么做。有关素数的。 Posted by:kkdk at 2006-09-17 17:07:09 > 题目意思很简单,我在另外一个网站上看到的。 > 就是给你一个数,比如(7,5),那么你只要用比5小的素数的和将7表示出来就行了。 > 比如: > 7=2+3+2 > =2+5 > =5+2 > 再比如:(5,3) > 5=3+2 > =2+3 > 但是(5,2)就没有表示的方法。 > 有个要求,两个相邻的数不能相等,即不能表示成7=2+2+3。 > 求有多少种表示的方法。这两个数都不会超过50。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator