QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#789891#9799. Magical PaletteidestinyWA 0ms3696kbC++14644b2024-11-27 22:31:002024-11-27 22:31:00

Judging History

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

  • [2024-11-27 22:31:00]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3696kb
  • [2024-11-27 22:31:00]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
void solve(){
    int n,m;
    cin>>n>>m;
    map<int,int> mp;
    // for(int i=0;i<n;i++){

    // }
    if(__gcd(n,m)!=1) printf("No\n");
    else{
        printf("Yes\n");
        for(int i=n;i<2*n;i++){
            printf("%d ",i);
        }
        printf("\n");
        for(int i=m;i<2*m;i++){
            printf("%d ",i);
        }
        printf("\n");
    }
    for(int i=0;i<n*m;i++){
        for(int j=0;j<n*m;j++){

        }
    }
}
int main(){
    ios::sync_with_stdio(0);
    cin.tie(0);
    int t;
    cin>>t;
    while(t--) solve();
    return 0;
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3696kb

input:

2
2 3
2 2

output:

Yes
2 3 
3 4 5 
No

result:

wrong answer Duplicated Color 0 (test case 1)