合集-CodeForces题解

摘要:Part I Preface 原题目(Luogu) 原题目(CodeForces) Part II Sketch 给定一个正整数 $n$,表示汽车数量。 给定一个 $n \times n$ 阶矩阵 $A$,第 $i$ 行 $j$ 列上的数字表示 $i$ 车与 $j$ 车的对撞情况。 $\begin{ 阅读全文
posted @ 2023-05-05 19:16 -沉默- 阅读(58) 评论(0) 推荐(0)
摘要:Part I Preface 原题目(Luogu) 原题目(CodeForces) Part II Sketch 设有一个 $2 \times 2$ 的棋盘,上面可以填入 $1-9$ 的数字。 给出 $6$ 个数字,为每行每列以及每个对角线上的数字之和,求相应的摆放方式,无解输出 $-1$。 Par 阅读全文
posted @ 2023-05-06 08:23 -沉默- 阅读(35) 评论(0) 推荐(0)
摘要:Part I Preface 原题目(Luogu) 原题目(CodeForces) Part II Sketch 给定一个整数 $n$。 将 $n$ 拆分成一个数列 $a_1,a_2,a_3,\dots,a_m$。 使得 $\sum\limits_{k = 1}^{m}a_k = n$,每个 $a_ 阅读全文
posted @ 2023-05-06 08:33 -沉默- 阅读(42) 评论(0) 推荐(0)