QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#189301 | #4902. 聚会 | Crysfly | 0 | 1ms | 3548kb | C++20 | 398b | 2023-09-27 09:47:53 | 2023-09-27 09:47:55 |
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,i+1,k)For(c,0,2)cout<<i+c*k<<" "<<j+c*k<<" "<<(i-j+k)%k+1+(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: 3368kb
input:
1
output:
result:
ok accepted
Test #2:
score: 0
Accepted
time: 0ms
memory: 3420kb
input:
3
output:
1 2 3
result:
ok accepted
Test #3:
score: -9.09091
Wrong Answer
time: 1ms
memory: 3544kb
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: 3424kb
input:
3
output:
1 2 3
result:
ok accepted
Test #13:
score: -9.09091
Wrong Answer
time: 1ms
memory: 3380kb
input:
9
output:
1 4 7 2 5 8 3 6 9 1 2 6 4 5 9 7 8 3 1 3 5 4 6 8 7 9 2 2 3 6 5 6 9 8 9 3
result:
wrong answer wrong construction
Subtask #3:
score: 0
Wrong Answer
Test #19:
score: 9.09091
Accepted
time: 0ms
memory: 3408kb
input:
1
output:
result:
ok accepted
Test #20:
score: -9.09091
Wrong Answer
time: 0ms
memory: 3308kb
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: 3416kb
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: 3440kb
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: 1ms
memory: 3412kb
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: 3548kb
input:
3
output:
1 2 3
result:
ok accepted
Test #40:
score: -9.09091
Wrong Answer
time: 1ms
memory: 3452kb
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 18 10 11 27 19 20 9 1 3 17 10 12 26 19 21 8 1 4 16 10 13 25 19 22 7 1 5 15 10 14 24 19 23 6 1 6 14 10 15 23 19 24 5 1 7 13 10 16 22 19 25 4 1 8 12 10 17 21 19 26 3 1 9 11 10 18 20 19 27 2 2 3 18 11 12 27 20 21 9 2 4 17 11 13...
result:
wrong answer wrong construction
Subtask #8:
score: 0
Wrong Answer
Test #44:
score: 0
Wrong Answer
time: 1ms
memory: 3516kb
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 14 8 9 21 15 16 7 1 3 13 8 10 20 15 17 6 1 4 12 8 11 19 15 18 5 1 5 11 8 12 18 15 19 4 1 6 10 8 13 17 15 20 3 1 7 9 8 14 16 15 21 2 2 3 14 9 10 21 16 17 7 2 4 13 9 11 20 16 18 6 2 5 12 9 12 19 16 19 5 2 6 11 9 13 18 16 20 4 2 7 10 9 14 17 16 ...
result:
wrong answer wrong construction
Subtask #9:
score: 0
Wrong Answer
Test #49:
score: 0
Wrong Answer
time: 1ms
memory: 3424kb
input:
9
output:
1 4 7 2 5 8 3 6 9 1 2 6 4 5 9 7 8 3 1 3 5 4 6 8 7 9 2 2 3 6 5 6 9 8 9 3
result:
wrong answer wrong construction
Subtask #10:
score: 0
Wrong Answer
Test #54:
score: 0
Wrong Answer
time: 1ms
memory: 3436kb
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 9 6 8 14 11 13 4 1 4 8 6 9 13 11 14 3 1 5 7 6 10 12 11 15 2 2 3 10 7 8 15 12 13 5 2 4 9 7 9 14 12 14 4 2 5 8 7 10 13 12 15 3 3 4 10 8 9 15 13 14 5 3 5 9 8 10 14 13 15 4 4 5 10 9 10 15 14 15 5
result:
wrong answer wrong construction
Subtask #11:
score: 0
Skipped
Dependency #1:
0%