QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#190505 | #4902. 聚会 | Crysfly | 0 | 1ms | 3684kb | C++17 | 458b | 2023-09-29 00:07:40 | 2023-09-29 00:07:40 |
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+1+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: 3672kb
input:
1
output:
result:
ok accepted
Test #2:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
3
output:
1 2 3
result:
ok accepted
Test #3:
score: -9.09091
Wrong Answer
time: 0ms
memory: 3660kb
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: 3636kb
input:
3
output:
1 2 3
result:
ok accepted
Test #13:
score: -9.09091
Wrong Answer
time: 0ms
memory: 3600kb
input:
9
output:
1 4 7 2 5 8 3 6 9 1 2 4 4 5 7 7 8 1 1 3 5 4 6 8 7 9 2 2 3 4 5 6 7 8 9 1
result:
wrong answer wrong construction
Subtask #3:
score: 0
Wrong Answer
Test #19:
score: 9.09091
Accepted
time: 0ms
memory: 3672kb
input:
1
output:
result:
ok accepted
Test #20:
score: -9.09091
Wrong Answer
time: 0ms
memory: 3624kb
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: 3588kb
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: 3592kb
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: 3684kb
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: 3664kb
input:
3
output:
1 2 3
result:
ok accepted
Test #40:
score: -9.09091
Wrong Answer
time: 1ms
memory: 3636kb
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 10 10 11 19 19 20 1 1 3 14 10 12 23 19 21 5 1 4 18 10 13 27 19 22 9 1 5 13 10 14 22 19 23 4 1 6 17 10 15 26 19 24 8 1 7 12 10 16 21 19 25 3 1 8 16 10 17 25 19 26 7 1 9 11 10 18 20 19 27 2 2 3 10 11 12 19 20 21 1 2 4 14 11 13...
result:
wrong answer wrong construction
Subtask #8:
score: 0
Wrong Answer
Test #44:
score: 0
Wrong Answer
time: 0ms
memory: 3608kb
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 8 8 9 15 15 16 1 1 3 11 8 10 18 15 17 4 1 4 14 8 11 21 15 18 7 1 5 10 8 12 17 15 19 3 1 6 13 8 13 20 15 20 6 1 7 9 8 14 16 15 21 2 2 3 8 9 10 15 16 17 1 2 4 11 9 11 18 16 18 4 2 5 14 9 12 21 16 19 7 2 6 10 9 13 17 16 20 3 2 7 13 9 14 20 16 21...
result:
wrong answer wrong construction
Subtask #9:
score: 0
Wrong Answer
Test #49:
score: 0
Wrong Answer
time: 0ms
memory: 3608kb
input:
9
output:
1 4 7 2 5 8 3 6 9 1 2 4 4 5 7 7 8 1 1 3 5 4 6 8 7 9 2 2 3 4 5 6 7 8 9 1
result:
wrong answer wrong construction
Subtask #10:
score: 0
Wrong Answer
Test #54:
score: 0
Wrong Answer
time: 0ms
memory: 3668kb
input:
15
output:
1 6 11 2 7 12 3 8 13 4 9 14 5 10 15 1 2 6 6 7 11 11 12 1 1 3 8 6 8 13 11 13 3 1 4 10 6 9 15 11 14 5 1 5 7 6 10 12 11 15 2 2 3 6 7 8 11 12 13 1 2 4 8 7 9 13 12 14 3 2 5 10 7 10 15 12 15 5 3 4 6 8 9 11 13 14 1 3 5 8 8 10 13 13 15 3 4 5 6 9 10 11 14 15 1
result:
wrong answer wrong construction
Subtask #11:
score: 0
Skipped
Dependency #1:
0%