跳到正文

个人记录

T1 自行车

Ethan_sun约 1 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2025年12月12日
篇幅
约 1 分钟

版本

  1. v1当前

简单签到题,不开 long long 见祖宗。

C++
#include <bits/stdc++.h>
#define debug(a) cerr << (#a) << " = " << (a) << endl;
#define int long long
#define endl '\n'
using namespace std;

int a, b;
void init() {
    cin >> a >> b;
}
void solve() {
    if (2 * a > b) {
        cout << "Yes" << endl;
    }
    else if (2 * a < b) {
        cout << "No" << endl;
    }
    else {
        cout << "Equal" << endl;
    }
}
signed main() {
    init();
    solve();
    return 0;
}
原文