摘要:
题目链接:2021CCPC东北四省赛 E-Easy Math Problem 题目大意: 给定一个$p$,要求找到一个$p$的倍数,使它的一些因数之和是它本身。 题解: 构造$6p=p+2p+3p$。 #include <iostream> using namespace std; long lon 阅读全文
摘要:
题目链接:LibreOJ 2423 跳石头 题目大意: 题解: 对最短跳跃距离进行二分答案即可。 #include <iostream> using namespace std; int res[60000]; int l, n, m, ans; int get(int x) { int t = 0 阅读全文