QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#190450#4902. 聚会Crysfly0 0ms3696kbC++20446b2023-09-28 21:34:382023-09-28 21:34:41

Judging History

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

  • [2023-09-28 21:34:41]
  • 评测
  • 测评结果:0
  • 用时:0ms
  • 内存:3696kb
  • [2023-09-28 21:34:38]
  • 提交

answer

// what is matter? never mind.
#include<bits/stdc++.h>
#define For(i,a,b) for(int i=(a);i<=(b);++i)
#define Rep(i,a,b) for(int i=(a);i>=(b);--i)
using namespace std;

int n,k,a[5005];

signed main()
{
	cin>>n;
	if(n%6==3){
		k=n/3;
		For(i,0,k-1)a[i]=i/2+i%2*(k/2+1)+1;
		For(i,1,k)cout<<i<<" "<<i+k<<" "<<i+k*2<<"\n";
		For(i,1,k)For(j,i+1,k)For(c,0,2)cout<<i+c*k<<" "<<j+c*k<<" "<<a[(i-j+k)%k]+(c+1)%3*k<<"\n";
	}
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

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

input:

1

output:


result:

ok accepted

Test #2:

score: 0
Accepted
time: 0ms
memory: 3504kb

input:

3

output:

1 2 3

result:

ok accepted

Test #3:

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

input:

7

output:


result:

wrong output format Unexpected end of file - int32 expected

Subtask #2:

score: 0
Wrong Answer

Test #12:

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

input:

3

output:

1 2 3

result:

ok accepted

Test #13:

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

input:

9

output:

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

result:

wrong answer wrong construction

Subtask #3:

score: 0
Wrong Answer

Test #19:

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

input:

1

output:


result:

ok accepted

Test #20:

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

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: 3688kb

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: 3680kb

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: 3528kb

input:

19

output:


result:

wrong output format Unexpected end of file - int32 expected

Subtask #7:

score: 0
Wrong Answer

Test #39:

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

input:

3

output:

1 2 3

result:

ok accepted

Test #40:

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

input:

27

output:

1 10 19
2 11 20
3 12 21
4 13 22
5 14 23
6 15 24
7 16 25
8 17 26
9 18 27
1 2 14
10 11 23
19 20 5
1 3 18
10 12 27
19 21 9
1 4 13
10 13 22
19 22 4
1 5 17
10 14 26
19 23 8
1 6 12
10 15 21
19 24 3
1 7 16
10 16 25
19 25 7
1 8 11
10 17 20
19 26 2
1 9 15
10 18 24
19 27 6
2 3 14
11 12 23
20 21 5
2 4 18
11 13...

result:

wrong answer wrong construction

Subtask #8:

score: 0
Wrong Answer

Test #44:

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

input:

21

output:

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

result:

wrong answer wrong construction

Subtask #9:

score: 0
Wrong Answer

Test #49:

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

input:

9

output:

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

result:

wrong answer wrong construction

Subtask #10:

score: 0
Wrong Answer

Test #54:

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

input:

15

output:

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

result:

wrong answer wrong construction

Subtask #11:

score: 0
Skipped

Dependency #1:

0%