QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#190506 | #4902. 聚会 | Crysfly | 0 | 0ms | 3692kb | C++17 | 454b | 2023-09-29 00:08:48 | 2023-09-29 00:08:48 |
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]+(c+1)%3*k<<"\n";
}
return 0;
}
/*
*/
詳細信息
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 9.09091
Accepted
time: 0ms
memory: 3596kb
input:
1
output:
result:
ok accepted
Test #2:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
3
output:
1 2 3
result:
ok accepted
Test #3:
score: -9.09091
Wrong Answer
time: 0ms
memory: 3652kb
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: 3668kb
input:
3
output:
1 2 3
result:
ok accepted
Test #13:
score: -9.09091
Wrong Answer
time: 0ms
memory: 3568kb
input:
9
output:
1 4 7 2 5 8 3 6 9 1 2 4 4 5 7 7 8 1 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: 3628kb
input:
1
output:
result:
ok accepted
Test #20:
score: -9.09091
Wrong Answer
time: 0ms
memory: 3528kb
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: 3532kb
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: 3676kb
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: 3492kb
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: 3620kb
input:
3
output:
1 2 3
result:
ok accepted
Test #40:
score: -9.09091
Wrong Answer
time: 0ms
memory: 3668kb
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 16 10 11 25 19 20 7 1 3 12 10 12 21 19 21 3 1 4 17 10 13 26 19 22 8 1 5 13 10 14 22 19 23 4 1 6 18 10 15 27 19 24 9 1 7 14 10 16 23 19 25 5 1 8 10 10 17 19 19 26 1 1 9 15 10 18 24 19 27 6 2 3 17 11 12 26 20 21 8 2 4 13 11 13...
result:
wrong answer wrong construction
Subtask #8:
score: 0
Wrong Answer
Test #44:
score: 0
Wrong Answer
time: 0ms
memory: 3692kb
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 13 8 9 20 15 16 6 1 3 10 8 10 17 15 17 3 1 4 14 8 11 21 15 18 7 1 5 11 8 12 18 15 19 4 1 6 8 8 13 15 15 20 1 1 7 12 8 14 19 15 21 5 2 3 14 9 10 21 16 17 7 2 4 11 9 11 18 16 18 4 2 5 8 9 12 15 16 19 1 2 6 12 9 13 19 16 20 5 2 7 9 9 14 16 16 21...
result:
wrong answer wrong construction
Subtask #9:
score: 0
Wrong Answer
Test #49:
score: 0
Wrong Answer
time: 0ms
memory: 3536kb
input:
9
output:
1 4 7 2 5 8 3 6 9 1 2 4 4 5 7 7 8 1 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 10 6 7 15 11 12 5 1 3 8 6 8 13 11 13 3 1 4 6 6 9 11 11 14 1 1 5 9 6 10 14 11 15 4 2 3 6 7 8 11 12 13 1 2 4 9 7 9 14 12 14 4 2 5 7 7 10 12 12 15 2 3 4 7 8 9 12 13 14 2 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%