QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#832036 | #7868. 天空度假山庄 | ningago | 100 ✓ | 20ms | 9576kb | C++14 | 3.5kb | 2024-12-25 18:40:41 | 2024-12-25 18:40:44 |
Judging History
answer
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <numeric>
#include <vector>
#include <queue>
#include <map>
#include <cmath>
#include <cctype>
#include <set>
namespace uvu
{
#define LOCAL ____________DONT_DEFINE_ME____________
#define ll long long
#define inf 0x3f3f3f3f
// #define int long long
// #define inf 0x3f3f3f3f3f3f3f3fll
#define infll 0x3f3f3f3f3f3f3f3fll
#define debug(...) fprintf(stderr, __VA_ARGS__)
#define gline debug("now is #%d\n", __LINE__)
#define pii std::pair <int, int>
#define mkp std::make_pair
#define fi first
#define se second
char _ST_;
const int BUFSIZE = (1 << 20);
char ibuf[BUFSIZE], *iS = ibuf, *iT = ibuf;
char obuf[BUFSIZE], *oS = obuf, *oT = obuf + BUFSIZE;
char getc()
{
#ifdef LOCAL
return getchar();
#else
if(iS == iT) iT = (iS = ibuf) + fread(ibuf, 1, BUFSIZE, stdin);
return iS == iT ? EOF : *iS++;
#endif
#define getchar ERR
}
void Flush() { fwrite(obuf, 1, oS - obuf, stdout); oS = obuf; }
struct Flusher { ~Flusher(){ Flush(); } }iamflusher;
void putc(char c)
{
#ifdef LOCAL
putchar(c);
#else
*oS++ = c;
if(oS == oT) Flush();
#endif
#define putchar ERR
}
template <typename T = int> T read()
{
T x = 0, f = 1; char c = getc();
for(; !isdigit(c); c = getc()) if(c == '-') f = -1;
for(; isdigit(c); c = getc()) x = (x << 3) + (x << 1) + (c ^ 48);
return x * f;
}
template <typename T> void print(T x, char c)
{
static int sta[BUFSIZE], top;
top = 0;
if(x < 0) putc('-'), x = -x;
if(!x) sta[top = 1] = 0;
for(; x; x /= 10) sta[++top] = x % 10;
for(; top; ) putc(sta[top--] ^ 48);
if(c) putc(c);
}
int readstr(char *s, int base)
{
int idx = base - 1; char c = getc();
for(; !(isdigit(c) || isalpha(c) || c == '#' || c == '.'); c = getc());
for(; isdigit(c) || isalpha(c) || c == '#' || c == '.' ; c = getc()) s[++idx] = c;
return idx - base + 1;
}
void printf(const char *s) { for(; *s; s++) putc(*s); }
template <typename T, typename ... Args>
void printf(const char *s, T x, Args ... rest)
{
for(; *s; s++)
{
if(*s != '%') { putc(*s); continue; }
s++; if(*s == 'd') print(x, 0);
else if(*s == 'c') putc(x);
printf(s + 1, rest ...);
return;
}
}
template <typename T> void ckmax(T &x, T y) { x = x > y ? x : y; }
template <typename T> void ckmin(T &x, T y) { x = x < y ? x : y; }
#define mod 998244353
// #define mod 1000000007
int sm(int x) { return x >= mod ? x - mod : x; }
void plus_(int &x, int y) { x = sm(x + y); }
void mul_(int &x, int y) { x = 1ll * x * y % mod; }
int ksm(int a, int b) { int res = 1; for(; b; b >>= 1, mul_(a, a)) if(b & 1) mul_(res, a); return res; }
int n, K;
std::vector <int> ans;
void push(int x) { ans.push_back((x % n + n) % n + 1); }
void solve()
{
// memset(h, idx = -1, sizeof(h));
n = read(), K = read();
for(int i = 0; i < n - 1; i++)
{
int m = K, now = 7;
while(m > 4)
{
push(i + now); push(i + now + now + 3);
push(i + now + 2); push(i);
m -= 4, now += 4;
}
if(m == 1) push(i + 1);
if(m == 2) push(i + 2), push(i + 1);
if(m == 3) push(i + 4), push(i + 2), push(i + 1);
if(m == 4) push(i + 3), push(i + 2), push(i), push(i + 1);
// push(-1);
}
for(int x : ans) print(x, ' ');
putc('\n');
}
void init()
{
}
char _ED_;
void mian()
{
debug("%.3f MB\n", abs(&_ST_ - &_ED_) / 1024.0 / 1024);
init(); int T = 1;
for(; T; solve(), T--);
}
#ifdef int
#undef int
#endif
}
int main()
{
uvu::mian(); return 0;
}
详细
Subtask #1:
score: 5
Accepted
Test #1:
score: 5
Accepted
time: 1ms
memory: 6040kb
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: 6044kb
input:
5166 2
output:
3 2 4 3 5 4 6 5 7 6 8 7 9 8 10 9 11 10 12 11 13 12 14 13 15 14 16 15 17 16 18 17 19 18 20 19 21 20 22 21 23 22 24 23 25 24 26 25 27 26 28 27 29 28 30 29 31 30 32 31 33 32 34 33 35 34 36 35 37 36 38 37 39 38 40 39 41 40 42 41 43 42 44 43 45 44 46 45 47 46 48 47 49 48 50 49 51 50 52 51 53 52 54 53 55 ...
result:
ok correct
Test #3:
score: 5
Accepted
time: 1ms
memory: 6128kb
input:
7445 2
output:
3 2 4 3 5 4 6 5 7 6 8 7 9 8 10 9 11 10 12 11 13 12 14 13 15 14 16 15 17 16 18 17 19 18 20 19 21 20 22 21 23 22 24 23 25 24 26 25 27 26 28 27 29 28 30 29 31 30 32 31 33 32 34 33 35 34 36 35 37 36 38 37 39 38 40 39 41 40 42 41 43 42 44 43 45 44 46 45 47 46 48 47 49 48 50 49 51 50 52 51 53 52 54 53 55 ...
result:
ok correct
Test #4:
score: 5
Accepted
time: 1ms
memory: 5924kb
input:
1295 2
output:
3 2 4 3 5 4 6 5 7 6 8 7 9 8 10 9 11 10 12 11 13 12 14 13 15 14 16 15 17 16 18 17 19 18 20 19 21 20 22 21 23 22 24 23 25 24 26 25 27 26 28 27 29 28 30 29 31 30 32 31 33 32 34 33 35 34 36 35 37 36 38 37 39 38 40 39 41 40 42 41 43 42 44 43 45 44 46 45 47 46 48 47 49 48 50 49 51 50 52 51 53 52 54 53 55 ...
result:
ok correct
Subtask #2:
score: 20
Accepted
Test #5:
score: 20
Accepted
time: 14ms
memory: 8416kb
input:
86132 9
output:
8 18 10 1 12 26 14 1 2 9 19 11 2 13 27 15 2 3 10 20 12 3 14 28 16 3 4 11 21 13 4 15 29 17 4 5 12 22 14 5 16 30 18 5 6 13 23 15 6 17 31 19 6 7 14 24 16 7 18 32 20 7 8 15 25 17 8 19 33 21 8 9 16 26 18 9 20 34 22 9 10 17 27 19 10 21 35 23 10 11 18 28 20 11 22 36 24 11 12 19 29 21 12 23 37 25 12 13 20 3...
result:
ok correct
Test #6:
score: 20
Accepted
time: 18ms
memory: 8756kb
input:
73452 11
output:
8 18 10 1 12 26 14 1 5 3 2 9 19 11 2 13 27 15 2 6 4 3 10 20 12 3 14 28 16 3 7 5 4 11 21 13 4 15 29 17 4 8 6 5 12 22 14 5 16 30 18 5 9 7 6 13 23 15 6 17 31 19 6 10 8 7 14 24 16 7 18 32 20 7 11 9 8 15 25 17 8 19 33 21 8 12 10 9 16 26 18 9 20 34 22 9 13 11 10 17 27 19 10 21 35 23 10 14 12 11 18 28 20 1...
result:
ok correct
Test #7:
score: 20
Accepted
time: 8ms
memory: 7492kb
input:
23283 20
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 4 3 1 2 9 19 11 2 13 27 15 2 17 35 19 2 21 43 23 2 5 4 2 3 10 20 12 3 14 28 16 3 18 36 20 3 22 44 24 3 6 5 3 4 11 21 13 4 15 29 17 4 19 37 21 4 23 45 25 4 7 6 4 5 12 22 14 5 16 30 18 5 20 38 22 5 24 46 26 5 8 7 5 6 13 23 15 6 17 31 19 6 21 39 23 6 25 47 27 ...
result:
ok correct
Test #8:
score: 20
Accepted
time: 18ms
memory: 8180kb
input:
36944 17
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 2 9 19 11 2 13 27 15 2 17 35 19 2 21 43 23 2 3 10 20 12 3 14 28 16 3 18 36 20 3 22 44 24 3 4 11 21 13 4 15 29 17 4 19 37 21 4 23 45 25 4 5 12 22 14 5 16 30 18 5 20 38 22 5 24 46 26 5 6 13 23 15 6 17 31 19 6 21 39 23 6 25 47 27 6 7 14 24 16 7 18 32 20 7 22 4...
result:
ok correct
Test #9:
score: 20
Accepted
time: 11ms
memory: 8640kb
input:
61927 10
output:
8 18 10 1 12 26 14 1 3 2 9 19 11 2 13 27 15 2 4 3 10 20 12 3 14 28 16 3 5 4 11 21 13 4 15 29 17 4 6 5 12 22 14 5 16 30 18 5 7 6 13 23 15 6 17 31 19 6 8 7 14 24 16 7 18 32 20 7 9 8 15 25 17 8 19 33 21 8 10 9 16 26 18 9 20 34 22 9 11 10 17 27 19 10 21 35 23 10 12 11 18 28 20 11 22 36 24 11 13 12 19 29...
result:
ok correct
Subtask #3:
score: 20
Accepted
Dependency #2:
100%
Accepted
Test #10:
score: 20
Accepted
time: 1ms
memory: 6020kb
input:
111 17
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 2 9 19 11 2 13 27 15 2 17 35 19 2 21 43 23 2 3 10 20 12 3 14 28 16 3 18 36 20 3 22 44 24 3 4 11 21 13 4 15 29 17 4 19 37 21 4 23 45 25 4 5 12 22 14 5 16 30 18 5 20 38 22 5 24 46 26 5 6 13 23 15 6 17 31 19 6 21 39 23 6 25 47 27 6 7 14 24 16 7 18 32 20 7 22 4...
result:
ok correct
Test #11:
score: 20
Accepted
time: 1ms
memory: 6132kb
input:
462 86
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 84 170 86 1 88 178 90 1 3 2 9 19 11 2 13 27 15 2 17 35 19 2 21 43 23 2 25 51 27 2 29...
result:
ok correct
Test #12:
score: 20
Accepted
time: 1ms
memory: 6056kb
input:
262 43
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 5 3 2 9 19 11 2 13 27 15 2 17 35 19 2 21 43 23 2 25 51 27 2 29 59 31 2 33 67 35 2 37 75 39 2 41 83 43 2 45 91 47 2 6 4 3 10 20 12 3 14 28 16 3 18 36 20 3 22 44 24 3 26 52 28 3 30 60 32 3 34 6...
result:
ok correct
Test #13:
score: 20
Accepted
time: 0ms
memory: 6016kb
input:
672 125
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 84 170 86 1 88 178 90 1 92 186 94 1 96 194 98 1 100 202 102 1 104 210 106 1 108 218 ...
result:
ok correct
Test #14:
score: 20
Accepted
time: 3ms
memory: 6060kb
input:
747 127
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 84 170 86 1 88 178 90 1 92 186 94 1 96 194 98 1 100 202 102 1 104 210 106 1 108 218 ...
result:
ok correct
Test #15:
score: 20
Accepted
time: 1ms
memory: 6028kb
input:
404 72
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 4 3 1 2 9 19 11 2 13 27 15 2 17 35 19 2 21 43 23 2 25 51 27 2 29 59 31 2 33 67 35 2 37 75 39 2 41 83 43 2 45...
result:
ok correct
Subtask #4:
score: 20
Accepted
Test #16:
score: 20
Accepted
time: 3ms
memory: 7224kb
input:
1777 229
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 84 170 86 1 88 178 90 1 92 186 94 1 96 194 98 1 100 202 102 1 104 210 106 1 108 218 ...
result:
ok correct
Test #17:
score: 20
Accepted
time: 6ms
memory: 6564kb
input:
1129 229
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 84 170 86 1 88 178 90 1 92 186 94 1 96 194 98 1 100 202 102 1 104 210 106 1 108 218 ...
result:
ok correct
Test #18:
score: 20
Accepted
time: 20ms
memory: 9344kb
input:
4253 233
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 84 170 86 1 88 178 90 1 92 186 94 1 96 194 98 1 100 202 102 1 104 210 106 1 108 218 ...
result:
ok correct
Test #19:
score: 20
Accepted
time: 14ms
memory: 9404kb
input:
2311 233
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 84 170 86 1 88 178 90 1 92 186 94 1 96 194 98 1 100 202 102 1 104 210 106 1 108 218 ...
result:
ok correct
Test #20:
score: 20
Accepted
time: 11ms
memory: 9212kb
input:
6712 114
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 84 170 86 1 88 178 90 1 92 186 94 1 96 194 98 1 100 202 102 1 104 210 106 1 108 218 ...
result:
ok correct
Test #21:
score: 20
Accepted
time: 3ms
memory: 6076kb
input:
1050 114
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 84 170 86 1 88 178 90 1 92 186 94 1 96 194 98 1 100 202 102 1 104 210 106 1 108 218 ...
result:
ok correct
Test #22:
score: 20
Accepted
time: 9ms
memory: 8920kb
input:
1132 514
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 84 170 86 1 88 178 90 1 92 186 94 1 96 194 98 1 100 202 102 1 104 210 106 1 108 218 ...
result:
ok correct
Test #23:
score: 20
Accepted
time: 13ms
memory: 7836kb
input:
1130 514
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 84 170 86 1 88 178 90 1 92 186 94 1 96 194 98 1 100 202 102 1 104 210 106 1 108 218 ...
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: 15ms
memory: 8316kb
input:
1151 564
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 84 170 86 1 88 178 90 1 92 186 94 1 96 194 98 1 100 202 102 1 104 210 106 1 108 218 ...
result:
ok correct
Test #25:
score: 35
Accepted
time: 11ms
memory: 9576kb
input:
1042 511
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 84 170 86 1 88 178 90 1 92 186 94 1 96 194 98 1 100 202 102 1 104 210 106 1 108 218 ...
result:
ok correct
Test #26:
score: 35
Accepted
time: 11ms
memory: 7992kb
input:
1170 575
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 84 170 86 1 88 178 90 1 92 186 94 1 96 194 98 1 100 202 102 1 104 210 106 1 108 218 ...
result:
ok correct
Test #27:
score: 35
Accepted
time: 8ms
memory: 8556kb
input:
1249 615
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 84 170 86 1 88 178 90 1 92 186 94 1 96 194 98 1 100 202 102 1 104 210 106 1 108 218 ...
result:
ok correct
Test #28:
score: 35
Accepted
time: 7ms
memory: 6728kb
input:
746 364
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 84 170 86 1 88 178 90 1 92 186 94 1 96 194 98 1 100 202 102 1 104 210 106 1 108 218 ...
result:
ok correct
Test #29:
score: 35
Accepted
time: 10ms
memory: 8092kb
input:
1146 565
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 84 170 86 1 88 178 90 1 92 186 94 1 96 194 98 1 100 202 102 1 104 210 106 1 108 218 ...
result:
ok correct
Test #30:
score: 35
Accepted
time: 0ms
memory: 6204kb
input:
554 265
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 84 170 86 1 88 178 90 1 92 186 94 1 96 194 98 1 100 202 102 1 104 210 106 1 108 218 ...
result:
ok correct
Test #31:
score: 35
Accepted
time: 3ms
memory: 9036kb
input:
1061 519
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 84 170 86 1 88 178 90 1 92 186 94 1 96 194 98 1 100 202 102 1 104 210 106 1 108 218 ...
result:
ok correct
Test #32:
score: 35
Accepted
time: 0ms
memory: 6064kb
input:
173 78
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 3 2 9 19 11 2 13 27 15 2 17 35 19 2 21 43 23 2 25 51 27 2 29 59 31 2 33 67 35 2 37 7...
result:
ok correct
Test #33:
score: 35
Accepted
time: 4ms
memory: 6988kb
input:
884 430
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 84 170 86 1 88 178 90 1 92 186 94 1 96 194 98 1 100 202 102 1 104 210 106 1 108 218 ...
result:
ok correct
Test #34:
score: 35
Accepted
time: 13ms
memory: 7908kb
input:
1089 537
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 84 170 86 1 88 178 90 1 92 186 94 1 96 194 98 1 100 202 102 1 104 210 106 1 108 218 ...
result:
ok correct
Test #35:
score: 35
Accepted
time: 3ms
memory: 6032kb
input:
433 207
output:
8 18 10 1 12 26 14 1 16 34 18 1 20 42 22 1 24 50 26 1 28 58 30 1 32 66 34 1 36 74 38 1 40 82 42 1 44 90 46 1 48 98 50 1 52 106 54 1 56 114 58 1 60 122 62 1 64 130 66 1 68 138 70 1 72 146 74 1 76 154 78 1 80 162 82 1 84 170 86 1 88 178 90 1 92 186 94 1 96 194 98 1 100 202 102 1 104 210 106 1 108 218 ...
result:
ok correct