摘要:
2021"MINIEYE杯"中超(7) 1003 Fall with Trees 场上t了,代码如下: tle code #include <cstdio> using namespace std; int t; int k; double xr, yr, xls, yls, xrs, yrs; v 阅读全文
摘要:
C - Secret Passwords (并查集) 由题意可知,两个字符串只要有一个字符相等那么就算是一样的密码,而且具有传递性:例如 a b ab,由于a = ab,b = ab, 那么a = b. 所以我们的思路由此可以变成将出现过一样字符的字符放在一个连通块中,考虑用并查集维护这样一个集合: 阅读全文
摘要:
2021"MINIEYE杯"中超(1) 1.1001 Mod, Or and Everything 考点:二进制 思路:分析两个例子: n = 8, 那么有8 mod 8 == 0,8 mod 7 == 1,8 mod 6 == 2,8 mod 5 == 3,8 mod 4 == 0 之后再往下mo 阅读全文