QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#790062#9799. Magical Palettewifi32767WA 0ms3704kbC++20516b2024-11-28 00:19:552024-11-28 00:19:55

Judging History

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

  • [2024-11-28 00:19:55]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3704kb
  • [2024-11-28 00:19:55]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
// #define int ll
#define endl '\n'
const int MAX = 5e5 + 5, mod = 1e9 + 7;

void solve(){
    int n, m;
    cin >> n >> m;
    if (n == 2 and m == 3){
        cout << "Yes\n1 2\n1 3 5\n";
    }
    else if (n == 3 and m == 2){
        cout << "Yes\n1 3 5\n1 2\n";
    }
    else{
        cout << "No\n";
    }
}
signed main(){
    ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    int T=1;cin>>T;while(T--)
    solve();
}

详细

Test #1:

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

input:

2
2 3
2 2

output:

Yes
1 2
1 3 5
No

result:

ok 2 cases (2 test cases)

Test #2:

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

input:

1
1 1000000

output:

No

result:

wrong answer Wrong Verdict (test case 1)