QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#544782 | #7868. 天空度假山庄 | ASnown | 100 ✓ | 32ms | 3972kb | C++14 | 1.0kb | 2024-09-02 20:15:06 | 2024-09-02 20:15:13 |
Judging History
answer
#include<bits/stdc++.h>
#define file(F) freopen(#F".in","r",stdin),freopen(#F".out","w",stdout)
#define lowbit(x) ((x)&-(x))
#define ALL(x) x.begin(),x.end()
#define debug(...) fprintf(stderr,__VA_ARGS__)
using namespace std;
using ll=long long;
template<typename T>
inline bool Max(T &x,T y) { return std::less<T>()(x,y)&&(x=y,true); }
template<typename T>
inline bool Min(T &x,T y) { return std::less<T>()(y,x)&&(x=y,true); }
void Solve();
int n,m;
inline int num(int x) { return (x-1)%n+1; }
signed main() {
#ifndef ONLINE_JUDGE
#endif
cin.tie(nullptr)->sync_with_stdio(false);
Solve();
}
void Solve() {
cin>>n>>m;
for(int i=1;i<n;i++) {
int k=m,j=num(i+10);
for(;k>4;k-=4,j=num(j+4))
printf("%d %d %d %d ",j,i+1,num(j+2),i);
switch(k) {
case 1: printf("%d ",i+1); break;
case 2: printf("%d %d ",j,i+1); break;
case 3: printf("%d %d %d ",j,num(j+2),i+1); break;
case 4: printf("%d %d %d %d ",j,num(j+2),i,i+1); break;
}
} puts("");
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 5
Accepted
Test #1:
score: 5
Accepted
time: 1ms
memory: 3776kb
input:
8216 1
output:
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 10...
result:
ok correct
Test #2:
score: 5
Accepted
time: 1ms
memory: 3816kb
input:
5166 2
output:
11 2 12 3 13 4 14 5 15 6 16 7 17 8 18 9 19 10 20 11 21 12 22 13 23 14 24 15 25 16 26 17 27 18 28 19 29 20 30 21 31 22 32 23 33 24 34 25 35 26 36 27 37 28 38 29 39 30 40 31 41 32 42 33 43 34 44 35 45 36 46 37 47 38 48 39 49 40 50 41 51 42 52 43 53 44 54 45 55 46 56 47 57 48 58 49 59 50 60 51 61 52 62...
result:
ok correct
Test #3:
score: 5
Accepted
time: 1ms
memory: 3828kb
input:
7445 2
output:
11 2 12 3 13 4 14 5 15 6 16 7 17 8 18 9 19 10 20 11 21 12 22 13 23 14 24 15 25 16 26 17 27 18 28 19 29 20 30 21 31 22 32 23 33 24 34 25 35 26 36 27 37 28 38 29 39 30 40 31 41 32 42 33 43 34 44 35 45 36 46 37 47 38 48 39 49 40 50 41 51 42 52 43 53 44 54 45 55 46 56 47 57 48 58 49 59 50 60 51 61 52 62...
result:
ok correct
Test #4:
score: 5
Accepted
time: 0ms
memory: 3824kb
input:
1295 2
output:
11 2 12 3 13 4 14 5 15 6 16 7 17 8 18 9 19 10 20 11 21 12 22 13 23 14 24 15 25 16 26 17 27 18 28 19 29 20 30 21 31 22 32 23 33 24 34 25 35 26 36 27 37 28 38 29 39 30 40 31 41 32 42 33 43 34 44 35 45 36 46 37 47 38 48 39 49 40 50 41 51 42 52 43 53 44 54 45 55 46 56 47 57 48 58 49 59 50 60 51 61 52 62...
result:
ok correct
Subtask #2:
score: 20
Accepted
Test #5:
score: 20
Accepted
time: 25ms
memory: 3756kb
input:
86132 9
output:
11 2 13 1 15 2 17 1 2 12 3 14 2 16 3 18 2 3 13 4 15 3 17 4 19 3 4 14 5 16 4 18 5 20 4 5 15 6 17 5 19 6 21 5 6 16 7 18 6 20 7 22 6 7 17 8 19 7 21 8 23 7 8 18 9 20 8 22 9 24 8 9 19 10 21 9 23 10 25 9 10 20 11 22 10 24 11 26 10 11 21 12 23 11 25 12 27 11 12 22 13 24 12 26 13 28 12 13 23 14 25 13 27 14 ...
result:
ok correct
Test #6:
score: 20
Accepted
time: 25ms
memory: 3744kb
input:
73452 11
output:
11 2 13 1 15 2 17 1 19 21 2 12 3 14 2 16 3 18 2 20 22 3 13 4 15 3 17 4 19 3 21 23 4 14 5 16 4 18 5 20 4 22 24 5 15 6 17 5 19 6 21 5 23 25 6 16 7 18 6 20 7 22 6 24 26 7 17 8 19 7 21 8 23 7 25 27 8 18 9 20 8 22 9 24 8 26 28 9 19 10 21 9 23 10 25 9 27 29 10 20 11 22 10 24 11 26 10 28 30 11 21 12 23 11 ...
result:
ok correct
Test #7:
score: 20
Accepted
time: 13ms
memory: 3844kb
input:
23283 20
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 29 1 2 12 3 14 2 16 3 18 2 20 3 22 2 24 3 26 2 28 30 2 3 13 4 15 3 17 4 19 3 21 4 23 3 25 4 27 3 29 31 3 4 14 5 16 4 18 5 20 4 22 5 24 4 26 5 28 4 30 32 4 5 15 6 17 5 19 6 21 5 23 6 25 5 27 6 29 5 31 33 5 6 16 7 18 6 20 7 22 6 24 7 26 6 28 7 30 6 32 34 6 7 ...
result:
ok correct
Test #8:
score: 20
Accepted
time: 22ms
memory: 3900kb
input:
36944 17
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 2 12 3 14 2 16 3 18 2 20 3 22 2 24 3 26 2 3 13 4 15 3 17 4 19 3 21 4 23 3 25 4 27 3 4 14 5 16 4 18 5 20 4 22 5 24 4 26 5 28 4 5 15 6 17 5 19 6 21 5 23 6 25 5 27 6 29 5 6 16 7 18 6 20 7 22 6 24 7 26 6 28 7 30 6 7 17 8 19 7 21 8 23 7 25 8 27 7 29 8 31 7 8 18 9 2...
result:
ok correct
Test #9:
score: 20
Accepted
time: 19ms
memory: 3768kb
input:
61927 10
output:
11 2 13 1 15 2 17 1 19 2 12 3 14 2 16 3 18 2 20 3 13 4 15 3 17 4 19 3 21 4 14 5 16 4 18 5 20 4 22 5 15 6 17 5 19 6 21 5 23 6 16 7 18 6 20 7 22 6 24 7 17 8 19 7 21 8 23 7 25 8 18 9 20 8 22 9 24 8 26 9 19 10 21 9 23 10 25 9 27 10 20 11 22 10 24 11 26 10 28 11 21 12 23 11 25 12 27 11 29 12 22 13 24 12 ...
result:
ok correct
Subtask #3:
score: 20
Accepted
Dependency #2:
100%
Accepted
Test #10:
score: 20
Accepted
time: 0ms
memory: 3972kb
input:
111 17
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 2 12 3 14 2 16 3 18 2 20 3 22 2 24 3 26 2 3 13 4 15 3 17 4 19 3 21 4 23 3 25 4 27 3 4 14 5 16 4 18 5 20 4 22 5 24 4 26 5 28 4 5 15 6 17 5 19 6 21 5 23 6 25 5 27 6 29 5 6 16 7 18 6 20 7 22 6 24 7 26 6 28 7 30 6 7 17 8 19 7 21 8 23 7 25 8 27 7 29 8 31 7 8 18 9 2...
result:
ok correct
Test #11:
score: 20
Accepted
time: 2ms
memory: 3968kb
input:
462 86
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 89 1 91 2 93 1 95 2 12 3 14 2 16 3 18 2 20 3 22 2 24 3 26 2 28 3 30 2 32 3 34 2 36 3 38 2 40 3 42 2 44 3 ...
result:
ok correct
Test #12:
score: 20
Accepted
time: 1ms
memory: 3904kb
input:
262 43
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 53 2 12 3 14 2 16 3 18 2 20 3 22 2 24 3 26 2 28 3 30 2 32 3 34 2 36 3 38 2 40 3 42 2 44 3 46 2 48 3 50 2 52 54 3 13 4 15 3 17 4 19 3 21 4 23 3 25 4 27 3 29 4 31 3 33 4 35 3 37 4 39 3 41 4 43 3 45 4...
result:
ok correct
Test #13:
score: 20
Accepted
time: 3ms
memory: 3852kb
input:
672 125
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 89 1 91 2 93 1 95 2 97 1 99 2 101 1 103 2 105 1 107 2 109 1 111 2 113 1 115 2 117 1 119 2 121 1 123 2 125...
result:
ok correct
Test #14:
score: 20
Accepted
time: 0ms
memory: 3776kb
input:
747 127
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 89 1 91 2 93 1 95 2 97 1 99 2 101 1 103 2 105 1 107 2 109 1 111 2 113 1 115 2 117 1 119 2 121 1 123 2 125...
result:
ok correct
Test #15:
score: 20
Accepted
time: 1ms
memory: 3776kb
input:
404 72
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 81 1 2 12 3 14 2 16 3 18 2 20 3 22 2 24 3 26 2 28 3 30 2 32 3 34 2 36 3 38 2 40 3 42 2 44 3 46 2 48 3 50 2 52 3 54 2 56 3 58 2 ...
result:
ok correct
Subtask #4:
score: 20
Accepted
Test #16:
score: 20
Accepted
time: 13ms
memory: 3816kb
input:
1777 229
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 89 1 91 2 93 1 95 2 97 1 99 2 101 1 103 2 105 1 107 2 109 1 111 2 113 1 115 2 117 1 119 2 121 1 123 2 125...
result:
ok correct
Test #17:
score: 20
Accepted
time: 4ms
memory: 3832kb
input:
1129 229
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 89 1 91 2 93 1 95 2 97 1 99 2 101 1 103 2 105 1 107 2 109 1 111 2 113 1 115 2 117 1 119 2 121 1 123 2 125...
result:
ok correct
Test #18:
score: 20
Accepted
time: 32ms
memory: 3844kb
input:
4253 233
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 89 1 91 2 93 1 95 2 97 1 99 2 101 1 103 2 105 1 107 2 109 1 111 2 113 1 115 2 117 1 119 2 121 1 123 2 125...
result:
ok correct
Test #19:
score: 20
Accepted
time: 10ms
memory: 3808kb
input:
2311 233
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 89 1 91 2 93 1 95 2 97 1 99 2 101 1 103 2 105 1 107 2 109 1 111 2 113 1 115 2 117 1 119 2 121 1 123 2 125...
result:
ok correct
Test #20:
score: 20
Accepted
time: 25ms
memory: 3908kb
input:
6712 114
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 89 1 91 2 93 1 95 2 97 1 99 2 101 1 103 2 105 1 107 2 109 1 111 2 113 1 115 2 117 1 119 2 121 1 123 2 12 ...
result:
ok correct
Test #21:
score: 20
Accepted
time: 0ms
memory: 3828kb
input:
1050 114
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 89 1 91 2 93 1 95 2 97 1 99 2 101 1 103 2 105 1 107 2 109 1 111 2 113 1 115 2 117 1 119 2 121 1 123 2 12 ...
result:
ok correct
Test #22:
score: 20
Accepted
time: 15ms
memory: 3968kb
input:
1132 514
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 89 1 91 2 93 1 95 2 97 1 99 2 101 1 103 2 105 1 107 2 109 1 111 2 113 1 115 2 117 1 119 2 121 1 123 2 125...
result:
ok correct
Test #23:
score: 20
Accepted
time: 11ms
memory: 3828kb
input:
1130 514
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 89 1 91 2 93 1 95 2 97 1 99 2 101 1 103 2 105 1 107 2 109 1 111 2 113 1 115 2 117 1 119 2 121 1 123 2 125...
result:
ok correct
Subtask #5:
score: 35
Accepted
Dependency #1:
100%
Accepted
Dependency #3:
100%
Accepted
Dependency #4:
100%
Accepted
Test #24:
score: 35
Accepted
time: 16ms
memory: 3776kb
input:
1151 564
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 89 1 91 2 93 1 95 2 97 1 99 2 101 1 103 2 105 1 107 2 109 1 111 2 113 1 115 2 117 1 119 2 121 1 123 2 125...
result:
ok correct
Test #25:
score: 35
Accepted
time: 17ms
memory: 3768kb
input:
1042 511
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 89 1 91 2 93 1 95 2 97 1 99 2 101 1 103 2 105 1 107 2 109 1 111 2 113 1 115 2 117 1 119 2 121 1 123 2 125...
result:
ok correct
Test #26:
score: 35
Accepted
time: 18ms
memory: 3968kb
input:
1170 575
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 89 1 91 2 93 1 95 2 97 1 99 2 101 1 103 2 105 1 107 2 109 1 111 2 113 1 115 2 117 1 119 2 121 1 123 2 125...
result:
ok correct
Test #27:
score: 35
Accepted
time: 16ms
memory: 3744kb
input:
1249 615
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 89 1 91 2 93 1 95 2 97 1 99 2 101 1 103 2 105 1 107 2 109 1 111 2 113 1 115 2 117 1 119 2 121 1 123 2 125...
result:
ok correct
Test #28:
score: 35
Accepted
time: 4ms
memory: 3780kb
input:
746 364
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 89 1 91 2 93 1 95 2 97 1 99 2 101 1 103 2 105 1 107 2 109 1 111 2 113 1 115 2 117 1 119 2 121 1 123 2 125...
result:
ok correct
Test #29:
score: 35
Accepted
time: 20ms
memory: 3820kb
input:
1146 565
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 89 1 91 2 93 1 95 2 97 1 99 2 101 1 103 2 105 1 107 2 109 1 111 2 113 1 115 2 117 1 119 2 121 1 123 2 125...
result:
ok correct
Test #30:
score: 35
Accepted
time: 5ms
memory: 3904kb
input:
554 265
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 89 1 91 2 93 1 95 2 97 1 99 2 101 1 103 2 105 1 107 2 109 1 111 2 113 1 115 2 117 1 119 2 121 1 123 2 125...
result:
ok correct
Test #31:
score: 35
Accepted
time: 17ms
memory: 3904kb
input:
1061 519
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 89 1 91 2 93 1 95 2 97 1 99 2 101 1 103 2 105 1 107 2 109 1 111 2 113 1 115 2 117 1 119 2 121 1 123 2 125...
result:
ok correct
Test #32:
score: 35
Accepted
time: 0ms
memory: 3748kb
input:
173 78
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 12 3 14 2 16 3 18 2 20 3 22 2 24 3 26 2 28 3 30 2 32 3 34 2 36 3 38 2 40 3 42 2 44 3 46 2 48 3 50 2 52 3 ...
result:
ok correct
Test #33:
score: 35
Accepted
time: 12ms
memory: 3780kb
input:
884 430
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 89 1 91 2 93 1 95 2 97 1 99 2 101 1 103 2 105 1 107 2 109 1 111 2 113 1 115 2 117 1 119 2 121 1 123 2 125...
result:
ok correct
Test #34:
score: 35
Accepted
time: 11ms
memory: 3832kb
input:
1089 537
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 89 1 91 2 93 1 95 2 97 1 99 2 101 1 103 2 105 1 107 2 109 1 111 2 113 1 115 2 117 1 119 2 121 1 123 2 125...
result:
ok correct
Test #35:
score: 35
Accepted
time: 0ms
memory: 3908kb
input:
433 207
output:
11 2 13 1 15 2 17 1 19 2 21 1 23 2 25 1 27 2 29 1 31 2 33 1 35 2 37 1 39 2 41 1 43 2 45 1 47 2 49 1 51 2 53 1 55 2 57 1 59 2 61 1 63 2 65 1 67 2 69 1 71 2 73 1 75 2 77 1 79 2 81 1 83 2 85 1 87 2 89 1 91 2 93 1 95 2 97 1 99 2 101 1 103 2 105 1 107 2 109 1 111 2 113 1 115 2 117 1 119 2 121 1 123 2 125...
result:
ok correct