摘要:
考场脑抽T2读错题了 T1 签到题。 模拟大家都会,下面是 $O(1)$ 做法: #include <iostream> using namespace std; int w, k, a, n; int main() { cin >> w >> k >> a >> n; if(n > k) cout 阅读全文
摘要:
T1 正常模拟即可,下面 code 的判断保证时间晚的答案不会被更新。 #include <iostream> using namespace std; int n, ans, maxn = -1, r[100050]; int main() { cin >> n; for(int i = 0, a 阅读全文
摘要:
Information Onceaweek Inzhizhen boomed again and again T1 经典数论几何题。 一个最基本的贪心策略就是先横向摆(此时还剩一个 $n×(n\bmod m)$的空)。 然后再在空里竖着摆(此时剩 $(n \bmod m)^2$ 的空),就摆不下了。 阅读全文