1 条题解

  • 0
    @ 2025-11-22 12:47:34

    按题意直接模拟即可。

    AC code:

    #include <bits/stdc++.h>
    using namespace std;
    
    int main() {
        freopen ("a.in", "r", stdin);
        freopen ("a.out", "w", stdout);
        int T;
        cin >> T;
        while (T--) {
            int a, b, c;
            char op, eq;
            cin >> a >> op >> b >> eq >> c;
            if (a + b == c) {
                cout << "Right!" << endl;
            } else {
                cout << "Wrong!" << endl;
            }
        }
        fclose (stdin);
        fclose (stdout);
        return 0;
    }
    
    • 1

    信息

    ID
    185
    时间
    1000ms
    内存
    512MiB
    难度
    1
    标签
    递交数
    10
    已通过
    4
    上传者