QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#551622#7868. 天空度假山庄ASnown100 ✓32ms3968kbC++141.0kb2024-09-07 17:31:362024-09-07 17:31:36

Judging History

你现在查看的是最新测评结果

  • [2024-09-07 17:31:36]
  • 评测
  • 测评结果:100
  • 用时:32ms
  • 内存:3968kb
  • [2024-09-07 17:31:36]
  • 提交

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+4);
      for(;k>4;k-=4,j=num(j+4))
         printf("%d %d %d %d ",j,i,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,i,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: 3752kb

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: 3896kb

input:

5166 2

output:

5 2 6 3 7 4 8 5 9 6 10 7 11 8 12 9 13 10 14 11 15 12 16 13 17 14 18 15 19 16 20 17 21 18 22 19 23 20 24 21 25 22 26 23 27 24 28 25 29 26 30 27 31 28 32 29 33 30 34 31 35 32 36 33 37 34 38 35 39 36 40 37 41 38 42 39 43 40 44 41 45 42 46 43 47 44 48 45 49 46 50 47 51 48 52 49 53 50 54 51 55 52 56 53 5...

result:

ok correct

Test #3:

score: 5
Accepted
time: 1ms
memory: 3844kb

input:

7445 2

output:

5 2 6 3 7 4 8 5 9 6 10 7 11 8 12 9 13 10 14 11 15 12 16 13 17 14 18 15 19 16 20 17 21 18 22 19 23 20 24 21 25 22 26 23 27 24 28 25 29 26 30 27 31 28 32 29 33 30 34 31 35 32 36 33 37 34 38 35 39 36 40 37 41 38 42 39 43 40 44 41 45 42 46 43 47 44 48 45 49 46 50 47 51 48 52 49 53 50 54 51 55 52 56 53 5...

result:

ok correct

Test #4:

score: 5
Accepted
time: 0ms
memory: 3968kb

input:

1295 2

output:

5 2 6 3 7 4 8 5 9 6 10 7 11 8 12 9 13 10 14 11 15 12 16 13 17 14 18 15 19 16 20 17 21 18 22 19 23 20 24 21 25 22 26 23 27 24 28 25 29 26 30 27 31 28 32 29 33 30 34 31 35 32 36 33 37 34 38 35 39 36 40 37 41 38 42 39 43 40 44 41 45 42 46 43 47 44 48 45 49 46 50 47 51 48 52 49 53 50 54 51 55 52 56 53 5...

result:

ok correct

Subtask #2:

score: 20
Accepted

Test #5:

score: 20
Accepted
time: 29ms
memory: 3768kb

input:

86132 9

output:

5 1 7 1 9 1 11 1 2 6 2 8 2 10 2 12 2 3 7 3 9 3 11 3 13 3 4 8 4 10 4 12 4 14 4 5 9 5 11 5 13 5 15 5 6 10 6 12 6 14 6 16 6 7 11 7 13 7 15 7 17 7 8 12 8 14 8 16 8 18 8 9 13 9 15 9 17 9 19 9 10 14 10 16 10 18 10 20 10 11 15 11 17 11 19 11 21 11 12 16 12 18 12 20 12 22 12 13 17 13 19 13 21 13 23 13 14 18...

result:

ok correct

Test #6:

score: 20
Accepted
time: 26ms
memory: 3764kb

input:

73452 11

output:

5 1 7 1 9 1 11 1 13 1 2 6 2 8 2 10 2 12 2 14 2 3 7 3 9 3 11 3 13 3 15 3 4 8 4 10 4 12 4 14 4 16 4 5 9 5 11 5 13 5 15 5 17 5 6 10 6 12 6 14 6 16 6 18 6 7 11 7 13 7 15 7 17 7 19 7 8 12 8 14 8 16 8 18 8 20 8 9 13 9 15 9 17 9 19 9 21 9 10 14 10 16 10 18 10 20 10 22 10 11 15 11 17 11 19 11 21 11 23 11 12...

result:

ok correct

Test #7:

score: 20
Accepted
time: 12ms
memory: 3828kb

input:

23283 20

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 23 1 2 6 2 8 2 10 2 12 2 14 2 16 2 18 2 20 2 22 24 2 3 7 3 9 3 11 3 13 3 15 3 17 3 19 3 21 3 23 25 3 4 8 4 10 4 12 4 14 4 16 4 18 4 20 4 22 4 24 26 4 5 9 5 11 5 13 5 15 5 17 5 19 5 21 5 23 5 25 27 5 6 10 6 12 6 14 6 16 6 18 6 20 6 22 6 24 6 26 28 6 7 11 7 13 7...

result:

ok correct

Test #8:

score: 20
Accepted
time: 23ms
memory: 3768kb

input:

36944 17

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 2 6 2 8 2 10 2 12 2 14 2 16 2 18 2 20 2 3 7 3 9 3 11 3 13 3 15 3 17 3 19 3 21 3 4 8 4 10 4 12 4 14 4 16 4 18 4 20 4 22 4 5 9 5 11 5 13 5 15 5 17 5 19 5 21 5 23 5 6 10 6 12 6 14 6 16 6 18 6 20 6 22 6 24 6 7 11 7 13 7 15 7 17 7 19 7 21 7 23 7 25 7 8 12 8 14 8 16 8 ...

result:

ok correct

Test #9:

score: 20
Accepted
time: 20ms
memory: 3812kb

input:

61927 10

output:

5 1 7 1 9 1 11 1 13 2 6 2 8 2 10 2 12 2 14 3 7 3 9 3 11 3 13 3 15 4 8 4 10 4 12 4 14 4 16 5 9 5 11 5 13 5 15 5 17 6 10 6 12 6 14 6 16 6 18 7 11 7 13 7 15 7 17 7 19 8 12 8 14 8 16 8 18 8 20 9 13 9 15 9 17 9 19 9 21 10 14 10 16 10 18 10 20 10 22 11 15 11 17 11 19 11 21 11 23 12 16 12 18 12 20 12 22 12...

result:

ok correct

Subtask #3:

score: 20
Accepted

Dependency #2:

100%
Accepted

Test #10:

score: 20
Accepted
time: 0ms
memory: 3836kb

input:

111 17

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 2 6 2 8 2 10 2 12 2 14 2 16 2 18 2 20 2 3 7 3 9 3 11 3 13 3 15 3 17 3 19 3 21 3 4 8 4 10 4 12 4 14 4 16 4 18 4 20 4 22 4 5 9 5 11 5 13 5 15 5 17 5 19 5 21 5 23 5 6 10 6 12 6 14 6 16 6 18 6 20 6 22 6 24 6 7 11 7 13 7 15 7 17 7 19 7 21 7 23 7 25 7 8 12 8 14 8 16 8 ...

result:

ok correct

Test #11:

score: 20
Accepted
time: 2ms
memory: 3812kb

input:

462 86

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 2 6 2 8 2 10 2 12 2 14 2 16 2 18 2 20 2 22 2 24 2 26 2 28 2 30 2 32 2 34 2 36 2 38 2 40 2 ...

result:

ok correct

Test #12:

score: 20
Accepted
time: 0ms
memory: 3740kb

input:

262 43

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 2 6 2 8 2 10 2 12 2 14 2 16 2 18 2 20 2 22 2 24 2 26 2 28 2 30 2 32 2 34 2 36 2 38 2 40 2 42 2 44 2 46 2 3 7 3 9 3 11 3 13 3 15 3 17 3 19 3 21 3 23 3 25 3 27 3 29 3 31 3 33 3 35 3 37 3 39 3 41 3 43 ...

result:

ok correct

Test #13:

score: 20
Accepted
time: 3ms
memory: 3772kb

input:

672 125

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 1 91 1 93 1 95 1 97 1 99 1 101 1 103 1 105 1 107 1 109 1 111 1 113 1 115 1 117 1 119 1 121...

result:

ok correct

Test #14:

score: 20
Accepted
time: 3ms
memory: 3772kb

input:

747 127

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 1 91 1 93 1 95 1 97 1 99 1 101 1 103 1 105 1 107 1 109 1 111 1 113 1 115 1 117 1 119 1 121...

result:

ok correct

Test #15:

score: 20
Accepted
time: 1ms
memory: 3964kb

input:

404 72

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 75 1 2 6 2 8 2 10 2 12 2 14 2 16 2 18 2 20 2 22 2 24 2 26 2 28 2 30 2 32 2 34 2 36 2 38 2 40 2 42 2 44 2 46 2 48 2 50 2 52 2 54 2 ...

result:

ok correct

Subtask #4:

score: 20
Accepted

Test #16:

score: 20
Accepted
time: 13ms
memory: 3828kb

input:

1777 229

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 1 91 1 93 1 95 1 97 1 99 1 101 1 103 1 105 1 107 1 109 1 111 1 113 1 115 1 117 1 119 1 121...

result:

ok correct

Test #17:

score: 20
Accepted
time: 9ms
memory: 3896kb

input:

1129 229

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 1 91 1 93 1 95 1 97 1 99 1 101 1 103 1 105 1 107 1 109 1 111 1 113 1 115 1 117 1 119 1 121...

result:

ok correct

Test #18:

score: 20
Accepted
time: 32ms
memory: 3900kb

input:

4253 233

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 1 91 1 93 1 95 1 97 1 99 1 101 1 103 1 105 1 107 1 109 1 111 1 113 1 115 1 117 1 119 1 121...

result:

ok correct

Test #19:

score: 20
Accepted
time: 14ms
memory: 3816kb

input:

2311 233

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 1 91 1 93 1 95 1 97 1 99 1 101 1 103 1 105 1 107 1 109 1 111 1 113 1 115 1 117 1 119 1 121...

result:

ok correct

Test #20:

score: 20
Accepted
time: 25ms
memory: 3828kb

input:

6712 114

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 1 91 1 93 1 95 1 97 1 99 1 101 1 103 1 105 1 107 1 109 1 111 1 113 1 115 1 117 2 6 2 8 2 1...

result:

ok correct

Test #21:

score: 20
Accepted
time: 4ms
memory: 3824kb

input:

1050 114

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 1 91 1 93 1 95 1 97 1 99 1 101 1 103 1 105 1 107 1 109 1 111 1 113 1 115 1 117 2 6 2 8 2 1...

result:

ok correct

Test #22:

score: 20
Accepted
time: 19ms
memory: 3840kb

input:

1132 514

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 1 91 1 93 1 95 1 97 1 99 1 101 1 103 1 105 1 107 1 109 1 111 1 113 1 115 1 117 1 119 1 121...

result:

ok correct

Test #23:

score: 20
Accepted
time: 15ms
memory: 3812kb

input:

1130 514

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 1 91 1 93 1 95 1 97 1 99 1 101 1 103 1 105 1 107 1 109 1 111 1 113 1 115 1 117 1 119 1 121...

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: 3820kb

input:

1151 564

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 1 91 1 93 1 95 1 97 1 99 1 101 1 103 1 105 1 107 1 109 1 111 1 113 1 115 1 117 1 119 1 121...

result:

ok correct

Test #25:

score: 35
Accepted
time: 17ms
memory: 3700kb

input:

1042 511

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 1 91 1 93 1 95 1 97 1 99 1 101 1 103 1 105 1 107 1 109 1 111 1 113 1 115 1 117 1 119 1 121...

result:

ok correct

Test #26:

score: 35
Accepted
time: 22ms
memory: 3808kb

input:

1170 575

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 1 91 1 93 1 95 1 97 1 99 1 101 1 103 1 105 1 107 1 109 1 111 1 113 1 115 1 117 1 119 1 121...

result:

ok correct

Test #27:

score: 35
Accepted
time: 20ms
memory: 3772kb

input:

1249 615

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 1 91 1 93 1 95 1 97 1 99 1 101 1 103 1 105 1 107 1 109 1 111 1 113 1 115 1 117 1 119 1 121...

result:

ok correct

Test #28:

score: 35
Accepted
time: 9ms
memory: 3812kb

input:

746 364

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 1 91 1 93 1 95 1 97 1 99 1 101 1 103 1 105 1 107 1 109 1 111 1 113 1 115 1 117 1 119 1 121...

result:

ok correct

Test #29:

score: 35
Accepted
time: 21ms
memory: 3756kb

input:

1146 565

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 1 91 1 93 1 95 1 97 1 99 1 101 1 103 1 105 1 107 1 109 1 111 1 113 1 115 1 117 1 119 1 121...

result:

ok correct

Test #30:

score: 35
Accepted
time: 5ms
memory: 3960kb

input:

554 265

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 1 91 1 93 1 95 1 97 1 99 1 101 1 103 1 105 1 107 1 109 1 111 1 113 1 115 1 117 1 119 1 121...

result:

ok correct

Test #31:

score: 35
Accepted
time: 17ms
memory: 3816kb

input:

1061 519

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 1 91 1 93 1 95 1 97 1 99 1 101 1 103 1 105 1 107 1 109 1 111 1 113 1 115 1 117 1 119 1 121...

result:

ok correct

Test #32:

score: 35
Accepted
time: 0ms
memory: 3812kb

input:

173 78

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 2 6 2 8 2 10 2 12 2 14 2 16 2 18 2 20 2 22 2 24 2 26 2 28 2 30 2 32 2 34 2 36 2 38 2 40 2 42 2 44 2 46 2 48 2 ...

result:

ok correct

Test #33:

score: 35
Accepted
time: 9ms
memory: 3964kb

input:

884 430

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 1 91 1 93 1 95 1 97 1 99 1 101 1 103 1 105 1 107 1 109 1 111 1 113 1 115 1 117 1 119 1 121...

result:

ok correct

Test #34:

score: 35
Accepted
time: 15ms
memory: 3832kb

input:

1089 537

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 1 91 1 93 1 95 1 97 1 99 1 101 1 103 1 105 1 107 1 109 1 111 1 113 1 115 1 117 1 119 1 121...

result:

ok correct

Test #35:

score: 35
Accepted
time: 3ms
memory: 3836kb

input:

433 207

output:

5 1 7 1 9 1 11 1 13 1 15 1 17 1 19 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 1 37 1 39 1 41 1 43 1 45 1 47 1 49 1 51 1 53 1 55 1 57 1 59 1 61 1 63 1 65 1 67 1 69 1 71 1 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 1 91 1 93 1 95 1 97 1 99 1 101 1 103 1 105 1 107 1 109 1 111 1 113 1 115 1 117 1 119 1 121...

result:

ok correct