文章分类 -  构造

摘要:题目描述 给定整数 $x$,判断它是否能写成 $6$ 个素数之和的形式 如果可以,给出一种构造方式,否则输出 $\text{IMPOSSIBLE}$ 数据范围:$1 \le x \le 10^{12}$ 题解 由于哥德巴赫猜想在 $[1,10^{12}]$ 成立,因此可以直接考虑构造出 $x$ 较小 阅读全文
posted @ 2019-06-18 21:11 KingSann 阅读(266) 评论(0) 推荐(0)
摘要:Find an n × n matrix with different numbers from 1 to n2, so the sum in each row, column and both main diagonals are odd. Input The only line contains 阅读全文
posted @ 2017-09-08 21:02 KingSann 阅读(159) 评论(0) 推荐(0)