摘要:
[TOC] 比赛链接:https://codeforces.com/contest/1332 A. Exercising Walk 只要考虑最终位置是否在范围内,和特判 $x_1=x_2$ 或者 $y_1=y_2$ 的情况即可 c++ include using namespace std; int 阅读全文
摘要:
[TOC] 比赛链接:https://codeforces.com/contest/1328 A. Divisibility Problem 嘤 E. Tree Queries 前置芝士:最近公共祖先(lca) 首先经过一系列复杂的计算我们发现,这条链完全可以是从0到 $v_t$($dep[v_t] 阅读全文
摘要:
[TOC] 比赛链接:https://codeforces.com/contest/1312/ A. Two Regular Polygons 这题是用来测网速的 c++ include using namespace std; define repeat(i,a,b) for(int i=(a), 阅读全文