QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#262655#6696. Three DicericofxWA 1ms3520kbC++17889b2023-11-23 21:16:452023-11-23 21:16:45

Judging History

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

  • [2023-11-23 21:16:45]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3520kb
  • [2023-11-23 21:16:45]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
using ll = long long;

const int mod = 998244353;
const int N = 1e5 + 5;

int A, B;

void solve() {
    cin >> A >> B;
    for (int i = 1; i <= 6; i++) {
        for (int j = 1; j <= 6; j++) {
            for (int k = 1; k <= 6; k++) {
                int ca = 0, cb = 0;
                if (i == 1 || i == 4) ca += i;
                else cb += i;
                if (j == 1 || j == 4) ca += i;
                else cb += j;
                if (k == 1 || k == 4) ca += i;
                else cb += k;
                if (ca == A && cb == B) {
                    cout << "Yes\n";
                    return;
                }
            }
        }
    }
    cout << "No\n";
}

int main() {
    ios::sync_with_stdio(0), cin.tie(0);
    int T = 1;
    //cin >> T;
    while (T--) solve();
    return 0;
}

详细

Test #1:

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

input:

4 5

output:

Yes

result:

ok answer is YES

Test #2:

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

input:

3 0

output:

Yes

result:

ok answer is YES

Test #3:

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

input:

1 2

output:

No

result:

ok answer is NO

Test #4:

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

input:

0 0

output:

No

result:

ok answer is NO

Test #5:

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

input:

0 1

output:

No

result:

ok answer is NO

Test #6:

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

input:

0 2

output:

No

result:

ok answer is NO

Test #7:

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

input:

0 3

output:

No

result:

ok answer is NO

Test #8:

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

input:

0 4

output:

No

result:

ok answer is NO

Test #9:

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

input:

0 5

output:

No

result:

ok answer is NO

Test #10:

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

input:

0 6

output:

Yes

result:

ok answer is YES

Test #11:

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

input:

0 7

output:

Yes

result:

ok answer is YES

Test #12:

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

input:

0 8

output:

Yes

result:

ok answer is YES

Test #13:

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

input:

0 9

output:

Yes

result:

ok answer is YES

Test #14:

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

input:

0 10

output:

Yes

result:

ok answer is YES

Test #15:

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

input:

0 11

output:

Yes

result:

ok answer is YES

Test #16:

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

input:

0 12

output:

Yes

result:

ok answer is YES

Test #17:

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

input:

1 0

output:

No

result:

ok answer is NO

Test #18:

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

input:

1 1

output:

No

result:

ok answer is NO

Test #19:

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

input:

1 4

output:

Yes

result:

ok answer is YES

Test #20:

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

input:

1 6

output:

Yes

result:

ok answer is YES

Test #21:

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

input:

1 7

output:

Yes

result:

ok answer is YES

Test #22:

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

input:

1 8

output:

Yes

result:

ok answer is YES

Test #23:

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

input:

2 3

output:

Yes

result:

ok answer is YES

Test #24:

score: -100
Wrong Answer
time: 0ms
memory: 3328kb

input:

2 4

output:

Yes

result:

wrong answer expected NO, found YES