QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#140122#5413. 同构判定鸡1kri#0 0ms3816kbC++14619b2023-08-15 09:32:302024-07-04 01:42:57

Judging History

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

  • [2024-07-04 01:42:57]
  • 评测
  • 测评结果:0
  • 用时:0ms
  • 内存:3816kb
  • [2023-08-15 09:32:30]
  • 提交

answer

#include <iostream>
#include <cstdio>
using namespace std;
int t,sub_id,n,m,N,M;
int tot,sta[1000005][2];
void add(int x,int y){
	++tot;
	sta[tot][0]=x,sta[tot][1]=y;
	return;
}
void out(){
	printf("%d %d\n",N,tot);
	for (int i=1;i<=tot;i++)printf("%d %d\n",sta[i][0],sta[i][1]);
	return;
}
int main(){
	scanf("%d%d",&t,&sub_id);
	while(t--){
		scanf("%d%d",&n,&m);
		for (int i=1;i<=m;i++){
			int x,y;
			scanf("%d%d",&x,&y);
		}
		scanf("%d%d",&N,&M);
		if (sub_id==1){
			tot=0;
			for (int i=1;i<=n/2;i++)
				for (int j=n/2+1;j<=n;j++)
					add(i,j);
			out();
		}
	}
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

10 1
3 3
1 2
1 3
2 3
33 272
3 3
1 2
1 3
2 3
28 196
3 3
1 2
1 3
2 3
92 2116
3 3
1 2
1 3
2 3
29 210
3 3
1 2
1 3
2 3
62 961
3 3
1 2
1 3
2 3
97 2352
3 3
1 2
1 3
2 3
60 900
3 3
1 2
1 3
2 3
70 1225
3 3
1 2
1 3
2 3
67 1122
3 3
1 2
1 3
2 3
67 1122

output:

33 2
1 2
1 3
28 2
1 2
1 3
92 2
1 2
1 3
29 2
1 2
1 3
62 2
1 2
1 3
97 2
1 2
1 3
60 2
1 2
1 3
70 2
1 2
1 3
67 2
1 2
1 3
67 2
1 2
1 3

result:

wrong answer Integer parameter [name=m] equals to 2, violates the range [272, 528] (test case 1)

Test #2:

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

input:

10 2
5 10
1 2
1 3
1 4
1 5
2 3
2 4
2 5
3 4
3 5
4 5
28 293
8 28
1 2
1 3
1 4
1 5
1 6
1 7
1 8
2 3
2 4
2 5
2 6
2 7
2 8
3 4
3 5
3 6
3 7
3 8
4 5
4 6
4 7
4 8
5 6
5 7
5 8
6 7
6 8
7 8
8 26
4 6
1 2
1 3
1 4
2 3
2 4
3 4
82 2240
3 3
1 2
1 3
2 3
46 528
4 6
1 2
1 3
1 4
2 3
2 4
3 4
42 587
9 36
1 2
1 3
1 4
1 5
1 6
1 ...

output:


result:

wrong output format Unexpected end of file - int32 expected (test case 1)

Test #3:

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

input:

10 3
4 4
1 2
2 3
3 4
4 1
387 774
4 4
1 2
2 3
3 4
4 1
668 1336
4 4
1 2
2 3
3 4
4 1
1403 2806
4 4
1 2
2 3
3 4
4 1
1516 3032
4 4
1 2
2 3
3 4
4 1
1601 3202
4 4
1 2
2 3
3 4
4 1
1649 3298
4 4
1 2
2 3
3 4
4 1
1722 3444
4 4
1 2
2 3
3 4
4 1
1854 3708
4 4
1 2
2 3
3 4
4 1
1926 3852
4 4
1 2
2 3
3 4
4 1
1989 3978

output:


result:

wrong output format Unexpected end of file - int32 expected (test case 1)

Test #4:

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

input:

10 4
4 4
1 2
2 3
3 4
4 1
169 1014
4 4
1 2
2 3
3 4
4 1
529 5819
4 4
1 2
2 3
3 4
4 1
841 11774
4 4
1 2
2 3
3 4
4 1
961 14415
4 4
1 2
2 3
3 4
4 1
1369 24642
4 4
1 2
2 3
3 4
4 1
1681 33620
4 4
1 2
2 3
3 4
4 1
1849 38829
4 4
1 2
2 3
3 4
4 1
361 3249
4 4
1 2
2 3
3 4
4 1
289 2312
4 4
1 2
2 3
3 4
4 1
9 9

output:


result:

wrong output format Unexpected end of file - int32 expected (test case 1)

Test #5:

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

input:

1 5
4 4
1 2
2 3
3 4
4 1
2850 24300

output:


result:

wrong output format Unexpected end of file - int32 expected

Test #6:

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

input:

1 6
6 9
1 4
1 5
1 6
2 4
2 5
2 6
3 4
3 5
3 6
343 2350

output:


result:

wrong output format Unexpected end of file - int32 expected