我服了。
A. Integer Moves一共三种情况:
- 当前点已经为终点
- 两点之间直线长度为整数,走欧拉距离
- 两点之间直线长度不为整数,走曼哈顿距离
#include
#define int long long
using namespace std;
const int N = 1e5 + 10;
inline void solve(){
int x, y; std::cin >> x >> y;
if(x == 0 && y == 0){ cout str;
int ans = 0, cnt = 0;
for(int l = 0, r = 1; ; ){
if(r >= n){ cout atk[cc]) atk[cc] = hh;
}
//for(int i = 1; i > b;
int l = 1, r = C;
while (l > 1;
(maxx[mid] > a * b) ? (r = mid - 1) : (l = mid + 1);
}
if (l == C + 1) cout
关注
打赏
热门博文
- 回坑记之或许是退役赛季?
- [LCT刷题] P1501 [国家集训队]Tree II
- [LCT刷题] P2147 洞穴勘测
- 2022-2023 ICPC Brazil Subregional Programming Contest VP记录
- [线段树套单调栈] 2019-2020 ICPC Asia Hong Kong Regional Contest H.[Hold the Line]
- The 2021 ICPC Asia Nanjing Regional Contest E.Paimon Segment Tree 区间合并线段树/维护矩阵乘法
- CF580E - Kefa and Watch 线段树维护哈希
- HDU5869 Different GCD Subarray Query 离线查询/区间贡献
- 27.CF1004F Sonya and Bitwise OR 区间合并线段树
- 26.CF1000F One Occurrence