QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#280443#7779. Swiss Stageucup-team1191#WA 1ms3452kbC++20667b2023-12-09 16:10:392023-12-09 16:10:39

Judging History

你现在查看的是最新测评结果

  • [2023-12-09 16:10:39]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3452kb
  • [2023-12-09 16:10:39]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef long double ld;
#define TIME (clock() * 1.0 / CLOCKS_PER_SEC)

void solve() {
    int x, y;
    cin >> x >> y;
    if (x == 0) {
        cout << "4\n";
        return;
    }
    if (x == 1) {
        if (y <= 1) {
            cout << "3\n";
        } else {
            cout << "4\n";
        }
        return;
    }
    cout << "2\n";
}

int main() {
#ifdef ONPC
    freopen("input", "r", stdin);
#endif
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);

    int t = 1;
    //cin >> t;
    while (t--) {
        solve();
    }

    return 0;
}

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3392kb

input:

0 1

output:

4

result:

ok 1 number(s): "4"

Test #2:

score: 0
Accepted
time: 0ms
memory: 3388kb

input:

1 2

output:

4

result:

ok 1 number(s): "4"

Test #3:

score: 0
Accepted
time: 0ms
memory: 3448kb

input:

0 0

output:

4

result:

ok 1 number(s): "4"

Test #4:

score: -100
Wrong Answer
time: 1ms
memory: 3452kb

input:

0 2

output:

4

result:

wrong answer 1st numbers differ - expected: '6', found: '4'