摘要: A 题意 找出两个合数使得他们差为某给出的数 n 思路 先指定一个小的合数 a ,则 b=a+n 。若 b 是合数,则直接输出。若 b 是素数,则 b+1 一定不是素数。那么选一个 a 使得 a,a+1 均为合数即可。 代码 c++ include using namespace std; type 阅读全文
posted @ 2020-03-06 23:04 cryingrain 阅读(92) 评论(0) 推荐(0) 编辑