POJ ..

POJ ..

题目
POJ ..
> RT,求括号括起来那句的意思.
>
> For each test case,print one line of the form n = a + b,where a and b are odd primes.Numbers and operators should be separated by exactly one blank like in the sample output below.If there is more than one pair of odd primes adding up to n,【choose the pair where the difference b - a is maximized】.If there is no such pair,print a line saying "Goldbach's conjecture is wrong."
>
>
>
答案
就是说如果有多个(a,b)数对满足n=a+b的话,那么选择差b-a最大的那一对.
就比如n=16时,可以是(3,13)或者(5,11)
那么选择输出(3,13)这一组,因为13-3=10,11-5=6,而10>6.
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
最新试题
热门考点

超级试练试题库

© 2017-2019 超级试练试题库,All Rights Reserved.