QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#325779#4902. 聚会DaiRuiChen0070 0ms3976kbC++17530b2024-02-11 22:40:302024-02-11 22:40:30

Judging History

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

  • [2024-02-11 22:40:30]
  • 评测
  • 测评结果:0
  • 用时:0ms
  • 内存:3976kb
  • [2024-02-11 22:40:30]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
int a[1005][1005],id[1005][3];
signed main() {
	int n;
	scanf("%d",&n);
	if(n%6==3) {
		int m=n/3;
		for(int i=0,t=0;i<m;++i) {
			for(int j:{0,1,2}) id[i][j]=++t;
			printf("%d %d %d\n",id[i][0],id[i][1],id[i][1]);
		}
		for(int i=0;i<m;++i) {
			for(int x=i,y=i,j=0;j<m;++j) {
				a[x][y]=i,x=(x+1)%m,y=(y+m-1)%m;
			}
		}
		for(int i=0;i<m;++i) for(int j=i+1;j<m;++j) {
			for(int k:{0,1,2}) printf("%d %d %d\n",id[i][k],id[j][k],id[a[i][j]][(k+1)%3]);
		}
	}
}

詳細信息

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 9.09091
Accepted
time: 0ms
memory: 3696kb

input:

1

output:


result:

ok accepted

Test #2:

score: -9.09091
Wrong Answer
time: 0ms
memory: 3904kb

input:

3

output:

1 2 2

result:

wrong answer same participant

Subtask #2:

score: 0
Wrong Answer

Test #12:

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

input:

3

output:

1 2 2

result:

wrong answer same participant

Subtask #3:

score: 0
Wrong Answer

Test #19:

score: 9.09091
Accepted
time: 0ms
memory: 3852kb

input:

1

output:


result:

ok accepted

Test #20:

score: -9.09091
Wrong Answer
time: 0ms
memory: 3576kb

input:

25

output:


result:

wrong output format Unexpected end of file - int32 expected

Subtask #4:

score: 0
Wrong Answer

Test #24:

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

input:

7

output:


result:

wrong output format Unexpected end of file - int32 expected

Subtask #5:

score: 0
Wrong Answer

Test #29:

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

input:

13

output:


result:

wrong output format Unexpected end of file - int32 expected

Subtask #6:

score: 0
Wrong Answer

Test #34:

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

input:

19

output:


result:

wrong output format Unexpected end of file - int32 expected

Subtask #7:

score: 0
Wrong Answer

Test #39:

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

input:

3

output:

1 2 2

result:

wrong answer same participant

Subtask #8:

score: 0
Wrong Answer

Test #44:

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

input:

21

output:

1 2 2
4 5 5
7 8 8
10 11 11
13 14 14
16 17 17
19 20 20
1 4 14
2 5 15
3 6 13
1 7 5
2 8 6
3 9 4
1 10 17
2 11 18
3 12 16
1 13 8
2 14 9
3 15 7
1 16 20
2 17 21
3 18 19
1 19 11
2 20 12
3 21 10
4 7 17
5 8 18
6 9 16
4 10 8
5 11 9
6 12 7
4 13 20
5 14 21
6 15 19
4 16 11
5 17 12
6 18 10
4 19 2
5 20 3
6 21 1
7 1...

result:

wrong answer same participant

Subtask #9:

score: 0
Wrong Answer

Test #49:

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

input:

9

output:

1 2 2
4 5 5
7 8 8
1 4 8
2 5 9
3 6 7
1 7 5
2 8 6
3 9 4
4 7 2
5 8 3
6 9 1

result:

wrong answer same participant

Subtask #10:

score: 0
Wrong Answer

Test #54:

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

input:

15

output:

1 2 2
4 5 5
7 8 8
10 11 11
13 14 14
1 4 11
2 5 12
3 6 10
1 7 5
2 8 6
3 9 4
1 10 14
2 11 15
3 12 13
1 13 8
2 14 9
3 15 7
4 7 14
5 8 15
6 9 13
4 10 8
5 11 9
6 12 7
4 13 2
5 14 3
6 15 1
7 10 2
8 11 3
9 12 1
7 13 11
8 14 12
9 15 10
10 13 5
11 14 6
12 15 4

result:

wrong answer same participant

Subtask #11:

score: 0
Skipped

Dependency #1:

0%