摘要:
本文地址 视频讲解 A - Erase by Value 贪心, 找到第一个出现的相邻逆序. #include <bits/stdc++.h> using namespace std; #define inc(x, l, r) for (int x = l; x <= r; x++) const i 阅读全文
摘要:
博客地址 视频版讲解 A. Stable Arrangement of Rooks 贪心 #include <bits/stdc++.h> using namespace std; #define inc(x, l, r) for (int x = l; x <= r; x++) void solv 阅读全文
摘要:
https://www.cnblogs.com/linqi05/p/15349891.html The 2021 ICPC Asia Regionals Online Contest (II) F Leapfrog 玩酒馆战棋看到跳蛙的时候就感觉能出成题目。感挺觉炉石里的很多模型都适合出题(UPD: 阅读全文
摘要:
POJ 2407 题意: 给出一个数n, n ≤ 1e9, 问有多少个数 a, 1 ≤ a < n, 使得不存在 x > 1, y > 0, z > 0, n = xy, a = xz. 思路: 实际上问比 n 小且与 n 互质的数的个数, 求欧拉函数. view code #include <al 阅读全文