QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#120076#6641. XOR DiceovoqwqWA 1ms3380kbC++14656b2023-07-06 13:10:592023-07-06 13:11:04

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-06 13:11:04]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3380kb
  • [2023-07-06 13:10:59]
  • 提交

answer

#include<bits/stdc++.h>
#define int long long
#define FOR(i,a,b) for(int i=a;i<=b;i++)
#define ROF(i,a,b) for(int i=a;i>=b;i--)
using namespace std;
int n,k;
signed main(){
//	freopen("dice.in","r",stdin);
//	freopen("dice.out","w",stdout); 
	cin>>n>>k;
	if(n==1){
		puts("Yes");
		FOR(i,1,6) cout<<k*i<<" ";
	}else if(k==2){
		puts("Yes");
		if(n%2==0){
			FOR(j,1,n){
				FOR(i,1,6) cout<<k*i<<" ";
				cout<<endl;
			}
		}else{
			FOR(j,1,(n+1)/2){
				FOR(i,1,6) cout<<k*(i-1)+1<<" ";
				cout<<endl;
			}
			FOR(j,1,(n-1)/2){
				FOR(i,1,6) cout<<k*i<<" ";
				cout<<endl;
			}
		}
	}else puts("No");
	return (0-0);
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3380kb

input:

3 2

output:

Yes
1 3 5 7 9 11 
1 3 5 7 9 11 
2 4 6 8 10 12 

result:

wrong output format Expected integer, but "Yes" found