1 条题解

  • 0
    @ 2024-2-6 12:46:53

    一道很简单的题。

    #include <bits/stdc++.h>
    using namespace std;
    int main() {
    int a1, a2, p1, p2;
    cin >> a1 >> a2 >> p1 >> p2;
    if (a1 > p1) {
    cout << "\""
    << "\\"
    << "n"
    << "\"";
    } else if (a1 < p1) {
    cout << "\""
    << "\\"
    << "t"
    << "\"";
    } else if (a1 == p1 && a2 > p2) {
    cout << "\""
    << "\\"
    << "t"
    << "\"";
    } else if (a1 == p1 && a2 < p2) {
    cout << "\""
    << "\\"
    << "n"
    << "\"";
    }
    return 0;
    }
    
    • 1

    信息

    ID
    8457
    时间
    1000ms
    内存
    256MiB
    难度
    1
    标签
    递交数
    4
    已通过
    3
    上传者