您当前的位置: 首页 > 

HeartFireY

暂无认证

  • 2浏览

    0关注

    334博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Educational Codeforces Round 125 (Rated for Div. 2) ABCD

HeartFireY 发布时间:2022-03-23 11:53:27 ,浏览量:2

我服了。

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             
关注
打赏
1662600635
查看更多评论
0.0662s