QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#189300#4902. 聚会Crysfly0 1ms3596kbC++20392b2023-09-27 09:44:302023-09-27 09:44:32

Judging History

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

  • [2023-09-27 09:44:32]
  • 评测
  • 测评结果:0
  • 用时:1ms
  • 内存:3596kb
  • [2023-09-27 09:44:30]
  • 提交

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;

signed main()
{
	cin>>n;
	if(n%6==3){
		k=n/3;
		For(i,1,k)cout<<i<<" "<<i+k<<" "<<i+k*2<<"\n";
		For(i,1,k)For(j,1,k)if(i!=j)cout<<i<<" "<<j+k<<" "<<(i-j+k)%k+1+k*2<<"\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: 1ms
memory: 3360kb

input:

1

output:


result:

ok accepted

Test #2:

score: 0
Accepted
time: 1ms
memory: 3428kb

input:

3

output:

1 2 3

result:

ok accepted

Test #3:

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

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: 1ms
memory: 3520kb

input:

3

output:

1 2 3

result:

ok accepted

Test #13:

score: -9.09091
Wrong Answer
time: 1ms
memory: 3428kb

input:

9

output:

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

result:

wrong output format Unexpected end of file - int32 expected

Subtask #3:

score: 0
Wrong Answer

Test #19:

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

input:

1

output:


result:

ok accepted

Test #20:

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

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: 1ms
memory: 3444kb

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

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

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

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 11 27
1 12 26
1 13 25
1 14 24
1 15 23
1 16 22
1 17 21
1 18 20
2 10 20
2 12 27
2 13 26
2 14 25
2 15 24
2 16 23
2 17 22
2 18 21
3 10 21
3 11 20
3 13 27
3 14 26
3 15 25
3 16 24
3 17 23
3 18 22
4 10 22
4 11 21
4 12 20
4 14 27
4 15...

result:

wrong output format Unexpected end of file - int32 expected

Subtask #8:

score: 0
Wrong Answer

Test #44:

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

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 9 21
1 10 20
1 11 19
1 12 18
1 13 17
1 14 16
2 8 16
2 10 21
2 11 20
2 12 19
2 13 18
2 14 17
3 8 17
3 9 16
3 11 21
3 12 20
3 13 19
3 14 18
4 8 18
4 9 17
4 10 16
4 12 21
4 13 20
4 14 19
5 8 19
5 9 18
5 10 17
5 11 16
5 13 21
5 14 20
6 8 20
6 9 19
...

result:

wrong output format Unexpected end of file - int32 expected

Subtask #9:

score: 0
Wrong Answer

Test #49:

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

input:

9

output:

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

result:

wrong output format Unexpected end of file - int32 expected

Subtask #10:

score: 0
Wrong Answer

Test #54:

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

input:

15

output:

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

result:

wrong output format Unexpected end of file - int32 expected

Subtask #11:

score: 0
Skipped

Dependency #1:

0%