失败

Jie Ding · 发布于 2024-12-29 · 浏览 515 回复 1

include

include

using namespace std;

int main () {

int x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
int b = abs(x1 - x2) + abs(y1 - y2);
cout << b;
return 0;

}

全部回复 共 1 条

  1. 齐家军机长 #1 ·

    include <bits/stdc++.h>

    using namespace std;

    int main() { double a, b, x, y; cin >> a >> b; cin >> x >> y; double ja = a / b, yi = x / y; if (ja > yi) {

    cout << ">"; } else if (ja == yi) {

    cout << "="; } else {

    cout << "<"; } return 0; }

发表回复