QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#515122#9114. Black or White 2Alex_wcqWA 0ms3856kbC++142.6kb2024-08-11 15:23:542024-08-11 15:23:54

Judging History

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

  • [2024-08-11 15:23:54]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3856kb
  • [2024-08-11 15:23:54]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
int a[23][23][23]={{},{},{},{{},{},{2,1,1}},{{},{},{3,1,1,2},{3,1,1,2}},{{},{},{4,1,1,2,3},{4,1,1,2,3},{4,1,1,2,3}},{{},{},{5,1,1,2,3,4},{5,1,1,1,2,3},{5,1,1,1,2,3},{5,1,1,1,2,3}},{{},{},{7,1,1,2,3,4,5},{8,1,1,1,2,3,4},{8,1,1,1,2,3,4},{8,1,1,1,2,3,4},{8,1,1,1,2,3,4}},{{},{},{9,1,1,2,3,4,5,6},{9,1,1,1,2,3,4,5},{9,1,1,1,1,2,3,4},{9,1,1,1,1,2,3,4},{9,1,1,1,1,2,3,4},{9,1,1,1,1,2,3,4}},{{},{},{12,1,1,2,3,4,5,6,7},{13,1,1,1,2,3,4,5,8},{16,1,1,1,1,2,3,4,5},{16,1,1,1,1,2,3,4,5},{16,1,1,1,1,2,3,4,5},{16,1,1,1,1,2,3,4,5},{16,1,1,1,1,2,3,4,5}},{{},{},{16,1,1,2,3,4,5,6,7,8},{17,1,1,1,2,2,3,4,5,6},{17,1,1,1,1,2,3,4,5,6},{17,1,1,1,1,1,2,3,4,5},{17,1,1,1,1,1,2,3,4,5},{17,1,1,1,1,1,2,3,4,5},{17,1,1,1,1,1,2,3,4,5},{17,1,1,1,1,1,2,3,4,5}},{{},{},{21,1,1,2,3,4,5,6,7,8,9},{23,1,1,1,2,3,4,5,5,8,9},{25,1,1,1,1,2,3,4,5,6,10},{32,1,1,1,1,1,2,3,4,5,6},{32,1,1,1,1,1,2,3,4,5,6},{32,1,1,1,1,1,2,3,4,5,6},{32,1,1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3,4,5,8,9,10,11,11,12,13},{79,1,1,1,1,2,3,4,5,6,6,6,10,11,12},{83,1,1,1,1,1,2,3,4,5,6,7,7,12,13},{97,1,1,1,1,1,1,2,3,4,5,6,7,8,14},{128,1,1,1,1,1,1,1,2,3,4,5,6,7,8},{128,1,1,1,1,1,1,1,2,3,4,5,6,7,8},{128,1,1,1,1,1,1,1,2,3,4,5,6,7,8},{128,1,1,1,1,1,1,1,2,3,4,5,6,7,8},{128,1,1,1,1,1,1,1,2,3,4,5,6,7,8},{128,1,1,1,1,1,1,1,2,3,4,5,6,7,8},{128,1,1,1,1,1,1,1,2,3,4,5,6,7,8},{128,1,1,1,1,1,1,1,2,3,4,5,6,7,8}}};
int main(){
	int T; scanf("%d",&T);
	while(T--){
		int n,d; scanf("%d%d",&n,&d); ++n;
		printf("%d\n%d\n",a[n][d][0],n);
		for(int i=1;i<n;++i) printf("%d %d\n",a[n][d][i],i+1);
	}
	return 0;	
}

詳細信息

Test #1:

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

input:

2
2 2 2
2 3 0

output:

2
3
1 2
1 3
2
3
1 2
1 3

result:

wrong answer Token "2" doesn't correspond to pattern "[01]*"