摘要: https://www.acwing.com/problem/content/4629/ //基环树 #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<LL,LL> PII; const L 阅读全文
posted @ 2022-10-09 16:38 高尔赛凡尔娟 阅读(17) 评论(0) 推荐(0) 编辑
摘要: https://atcoder.jp/contests/abc272/tasks/abc272_d 所以一开始就写的是对的,但是就是判定条件的位置错了,我真的会被re七四 题目大意: 给个n*n的矩阵,每次我可以跳长*长+宽*宽==m^2的地方,也就是距离我根号m的点上 跳的到的地方输出最小步数,跳 阅读全文
posted @ 2022-10-09 15:24 高尔赛凡尔娟 阅读(104) 评论(0) 推荐(1) 编辑