摘要: C.<3 numbers 素数分布定理。 当区间长度大于 $1000$ 时,直接输出 \(NO\)。 否则,就一个一个的找。 代码: #include <bits/stdc++.h> using namespace std; int divide(int x) { for(int i=2;i*i<= 阅读全文
posted @ 2020-06-26 23:31 xzx9 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 题意: \(Lee\) 的厨房中有 \(n\) 道菜,每道菜的数量为 \(w[i]\) ,现在 \(Lee\) 邀请 \(m\) 个朋友,每个朋友都有最爱吃的两道菜 \(x[i]\) 和 \(y[i]\) ,当朋友 \(i\) 来到 \(Lee\) 家后,会选择吃掉 \(x[i]\) 和 \(y[i 阅读全文
posted @ 2020-06-26 08:41 xzx9 阅读(210) 评论(0) 推荐(0) 编辑