QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#790062 | #9799. Magical Palette | wifi32767 | WA | 0ms | 3704kb | C++20 | 516b | 2024-11-28 00:19:55 | 2024-11-28 00:19:55 |
Judging History
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();
}
Details
Tip: Click on the bar to expand more detailed information
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)