QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#279174#7779. Swiss Stageucup-team1447#AC ✓0ms3724kbC++14607b2023-12-08 13:11:172023-12-08 13:11:19

Judging History

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

  • [2023-12-08 13:11:19]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3724kb
  • [2023-12-08 13:11:17]
  • 提交

answer

// This Code was made by Chinese_zjc_.
#include <bits/stdc++.h>
// #define debug
int a, b;
int work(int a, int b)
{
    switch (a * 3 + b)
    {
    case 0:
        return 4;
    case 1:
        return 4;
    case 2:
        return 6;
    case 3:
        return 3;
    case 4:
        return 3;
    case 5:
        return 4;
    case 6:
        return 2;
    case 7:
        return 2;
    case 8:
        return 2;
    }
    return 0;
}
signed main()
{
    std::ios::sync_with_stdio(false);
    std::cin >> a >> b;
    std::cout << work(a, b) << std::endl;
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3652kb

input:

0 1

output:

4

result:

ok 1 number(s): "4"

Test #2:

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

input:

1 2

output:

4

result:

ok 1 number(s): "4"

Test #3:

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

input:

0 0

output:

4

result:

ok 1 number(s): "4"

Test #4:

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

input:

0 2

output:

6

result:

ok 1 number(s): "6"

Test #5:

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

input:

1 0

output:

3

result:

ok 1 number(s): "3"

Test #6:

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

input:

1 1

output:

3

result:

ok 1 number(s): "3"

Test #7:

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

input:

2 0

output:

2

result:

ok 1 number(s): "2"

Test #8:

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

input:

2 1

output:

2

result:

ok 1 number(s): "2"

Test #9:

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

input:

2 2

output:

2

result:

ok 1 number(s): "2"

Extra Test:

score: 0
Extra Test Passed