题目
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."
>
>
>
> 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."
>
>
>
提问时间:2021-01-09
答案
就是说如果有多个(a,b)数对满足n=a+b的话,那么选择差b-a最大的那一对.
就比如n=16时,可以是(3,13)或者(5,11)
那么选择输出(3,13)这一组,因为13-3=10,11-5=6,而10>6.
就比如n=16时,可以是(3,13)或者(5,11)
那么选择输出(3,13)这一组,因为13-3=10,11-5=6,而10>6.
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
最新试题
- 1某超市运来120箱果汁,运来的牛奶是果汁的4分之1,是可乐的2分之1.运来了多少箱可乐?
- 2改错 anda only lives in wild in china
- 3“不怕群众不满意,就怕领导不注意.”英语怎么说?
- 4有24名同学分成了3组参加植树活动,第一组7人,共植树16棵,第二组11人,共植树20棵.
- 5两数相除,商3余4,被除数、除数、商和余数相加的和是43,被除数与除数各是多少?
- 6-4,2 ,-10,14,-32……
- 7what about drinking some milk?动词在哪里?
- 8为什么眼镜似乎只反射紫光?
- 9俗语 替死( ) 出气( ) 笑面( )马后( )
- 10知道这个连合字是什么意思?shmily,这是一整句取第一个字母.英文
热门考点