编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#3381 #18. 「2022 远光杯」三生万物 Accepted 100 598 ms 616 K C++ / 469 B strangle-inevitably 2022-06-02 18:25:35
显示原始代码
#include <bits/stdc++.h>

using namespace std;

int main() {
    int t;
    cin >> t;

    while (t--) {
        int n, m;
        cin >> n >> m;

        if ((n % 2 == 0 && n == m) || m == 0) {
            cout << "MUST" << endl;
        } else if ((n % 2 && n == m) || m == 1 || (n - m == 1 && n % 2 == 0)) {
            cout << "IMPOSSIBLE" << endl;
        } else {
            cout << "MAYBE" << endl;
        }
    }

    return 0;
}
子任务 #1
Accepted
得分:100
测试点 #1
Accepted
得分:100
用时:3 ms
内存:248 KiB

输入文件(1.in

4
3 0
3 1
3 2
3 3

答案文件(1.ans

MUST
IMPOSSIBLE
MAYBE
IMPOSSIBLE

用户输出

MUST
IMPOSSIBLE
MAYBE
IMPOSSIBLE

系统信息

Exited with return code 0
测试点 #2
Accepted
得分:100
用时:3 ms
内存:328 KiB

输入文件(2.in

20
4 0
3 2
1 1
5 1
2 1
4 1
5 5
4 4
3 1
3 0
5 4
4 3
3 3
5 3
5 2
2 2
1 0
2 0
4 2
5 0

答案文件(2.ans

MUST
MAYBE
IMPOSSIBLE
IMPOSSIBLE
IMPOSSIBLE
IMPOSSIBLE
IMPOSSIBLE
MUST
IMPOSSIBLE
MUST
MAYBE
IMPOSSI
<53 bytes omitted>

用户输出

MUST
MAYBE
IMPOSSIBLE
IMPOSSIBLE
IMPOSSIBLE
IMPOSSIBLE
IMPOSSIBLE
MUST
IMPOSSIBLE
MUST
MAYBE
IMPOSSIBLE
IMPOSSIBLE
MAYBE
MAYBE
M
<25 bytes omitted>

系统信息

Exited with return code 0
测试点 #3
Accepted
得分:100
用时:251 ms
内存:616 KiB

输入文件(3.in

80600
353 162
269 158
376 58
323 67
165 87
312 210
323 155
102 92
220 166
238 193
337 272
391 204
30
<600490 bytes omitted>

答案文件(3.ans

MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYB
<486890 bytes omitted>

用户输出

MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MA
<486862 bytes omitted>

系统信息

Exited with return code 0
测试点 #4
Accepted
得分:100
用时:341 ms
内存:356 KiB

输入文件(4.in

100000
253614967 147236376
980235896 479715987
928430171 465232151
852570559 782470350
239257297 150
<1949236 bytes omitted>

答案文件(4.ans

MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYB
<599900 bytes omitted>

用户输出

MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MAYBE
MA
<599872 bytes omitted>

系统信息

Exited with return code 0