QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#190449 | #4902. 聚会 | Crysfly | 0 | 1ms | 3596kb | C++20 | 444b | 2023-09-28 21:33:55 | 2023-09-28 21:33:56 |
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);
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: 1ms
memory: 3412kb
input:
1
output:
result:
ok accepted
Test #2:
score: 0
Accepted
time: 1ms
memory: 3320kb
input:
3
output:
1 2 3
result:
ok accepted
Test #3:
score: -9.09091
Wrong Answer
time: 1ms
memory: 3448kb
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: 3384kb
input:
3
output:
1 2 3
result:
ok accepted
Test #13:
score: -9.09091
Wrong Answer
time: 0ms
memory: 3316kb
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: 3508kb
input:
1
output:
result:
ok accepted
Test #20:
score: -9.09091
Wrong Answer
time: 1ms
memory: 3372kb
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: 3368kb
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: 3408kb
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: 3588kb
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: 3316kb
input:
3
output:
1 2 3
result:
ok accepted
Test #40:
score: -9.09091
Wrong Answer
time: 1ms
memory: 3420kb
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 13 10 11 22 19 20 4 1 3 17 10 12 26 19 21 8 1 4 12 10 13 21 19 22 3 1 5 16 10 14 25 19 23 7 1 6 11 10 15 20 19 24 2 1 7 15 10 16 24 19 25 6 1 8 10 10 17 19 19 26 1 1 9 14 10 18 23 19 27 5 2 3 13 11 12 22 20 21 4 2 4 17 11 13...
result:
wrong answer wrong construction
Subtask #8:
score: 0
Wrong Answer
Test #44:
score: 0
Wrong Answer
time: 0ms
memory: 3596kb
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 10 8 9 17 15 16 3 1 3 13 8 10 20 15 17 6 1 4 9 8 11 16 15 18 2 1 5 12 8 12 19 15 19 5 1 6 8 8 13 15 15 20 1 1 7 11 8 14 18 15 21 4 2 3 10 9 10 17 16 17 3 2 4 13 9 11 20 16 18 6 2 5 9 9 12 16 16 19 2 2 6 12 9 13 19 16 20 5 2 7 8 9 14 15 16 21 ...
result:
wrong answer wrong construction
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 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: 3544kb
input:
15
output:
1 6 11 2 7 12 3 8 13 4 9 14 5 10 15 1 2 7 6 7 12 11 12 2 1 3 9 6 8 14 11 13 4 1 4 6 6 9 11 11 14 1 1 5 8 6 10 13 11 15 3 2 3 7 7 8 12 12 13 2 2 4 9 7 9 14 12 14 4 2 5 6 7 10 11 12 15 1 3 4 7 8 9 12 13 14 2 3 5 9 8 10 14 13 15 4 4 5 7 9 10 12 14 15 2
result:
wrong answer wrong construction
Subtask #11:
score: 0
Skipped
Dependency #1:
0%