就是说如果有多个(a,b)数对满足n=a+b的话,那么选择差b-a最大的那一对.
就比如n=16时,可以是(3,13)或者(5,11)
那么选择输出(3,13)这一组,因为13-3=10,11-5=6,而10>6.
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."
>
>
>
> 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."
>
>
>
英语人气:167 ℃时间:2020-01-28 22:33:29
优质解答
我来回答
类似推荐
猜你喜欢
- 1如何用圭表"圭"的影子表示时间和时刻
- 2一个长方体金鱼缸可装36L水,从里面量长40cm 宽30cm .这个金鱼缸盛水时的高度是多少厘米?
- 3是make do sth 还是make doing sth或是make to do sth
- 4Would you like to help me to ___(翻译)the article into English?
- 5用括号里的词翻译下列句子:你也许是对的.(may)
- 610元3公斤,1斤多少元?
- 73的多少次方等于3分之根号3
- 8Who____ your father___(go) hiking in the mountain with in 5 days?
- 9在同一平面内,两半径不同的同心导线圆环通以同向电流时,为什么内环扩张,外环收缩?
- 10今有共买物,人出八,盈三,人出七,不足四,问人数,物价几何,解决这类问题程序框图