QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#600130#7779. Swiss Stagetamthegod#AC ✓0ms3696kbC++141.0kb2024-09-29 14:55:112024-09-29 14:55:11

Judging History

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

  • [2024-09-29 14:55:11]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3696kb
  • [2024-09-29 14:55:11]
  • 提交

answer

#include<bits/stdc++.h>

#define int long long
#define pb push_back
#define fi first
#define se second
using namespace std;
using ll = long long;
using ld = long double;
using ull = unsigned long long;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
const int maxN = 1e6 + 5;
const int mod = 1e9 + 7;
const ll oo = 1e18;
void ReadInput()
{

}
void Solve()
{
    int x, y;
    cin >> x >> y;

    int res[4][4];
    res[0][0] = 4;
    res[1][0] = 3;
    res[0][1] = 4;

    res[2][0] = 2;
    res[1][1] = 3;
    res[0][2] = 6;

    res[2][1] = 2;
    res[1][2] = 4;
    res[2][2] = 2;

    cout << res[x][y] << endl;
}
#define taskname ""
int32_t main()
{
    if (fopen(taskname ".inp", "r"))
    {
        freopen(taskname ".inp", "r", stdin);
        freopen(taskname ".out", "w", stdout);
    }
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    int T = 1;
    //cin >> T;
    for(int itest=1; itest<=T; itest++)
    {
        ReadInput();
        Solve();
    }
}


详细

Test #1:

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

input:

0 1

output:

4

result:

ok 1 number(s): "4"

Test #2:

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

input:

1 2

output:

4

result:

ok 1 number(s): "4"

Test #3:

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

input:

0 0

output:

4

result:

ok 1 number(s): "4"

Test #4:

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

input:

0 2

output:

6

result:

ok 1 number(s): "6"

Test #5:

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

input:

1 0

output:

3

result:

ok 1 number(s): "3"

Test #6:

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

input:

1 1

output:

3

result:

ok 1 number(s): "3"

Test #7:

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

input:

2 0

output:

2

result:

ok 1 number(s): "2"

Test #8:

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

input:

2 1

output:

2

result:

ok 1 number(s): "2"

Test #9:

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

input:

2 2

output:

2

result:

ok 1 number(s): "2"

Extra Test:

score: 0
Extra Test Passed