QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#486424 | #5154. ETA | Longvu | AC ✓ | 1ms | 3836kb | C++14 | 3.1kb | 2024-07-21 19:50:12 | 2024-07-21 19:50:13 |
Judging History
answer
/**
* author: longvu
* created: 07/21/24 16:35:51
**/
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define sz(x) ((int)x.size())
#define all(x) (x).begin(), (x).end()
const int INF = numeric_limits<int>::max();
const int nax = (int)(100001);
const int mod = 1e9 + 7;
template<class X, class Y>
bool maximize(X& x, const Y y) {
if (y > x) {x = y; return true;}
return false;
}
template<class X, class Y>
bool minimize(X& x, const Y y) {
if (y < x) {x = y; return true;}
return false;
}
int gcd(int a, int b) {
return (!b ? a : gcd(b, a % b));
}
int d[nax];
int32_t main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
string s;
cin >> s;
int x = 0, y = 0;
for (int i = 0; i < sz(s); ++i) {
if (s[i] == '/') {
for (int j = 0; j < i; ++j) {
x = 10 * x + (s[j] - '0');
}
for (int j = i + 1; j < sz(s); ++j) {
y = 10 * y + (s[j] - '0');
}
}
}
int _gcd = gcd(x, y);
x /= _gcd;
y /= _gcd;
if (x >= 2 && y == 1) {
cout << 2 * x + 1 << " " << 2 * x << '\n';
for (int i = 2; i <= 2 * x + 1; ++i) {
cout << i - 1 << " " << i << '\n';
}
exit(0);
}
int a = x, b = y;
while (a <= 1e6 && b <= 1e6) {
if (a >= b - 1 && (b - 1) * b / 2 >= a) {
int z = a, t = b;
b--;
int g = 0;
for (int i = b - 1; i >= 1; --i) {
if (b - 1 - i <= a - i * (i + 1) / 2) {
g = i;
for (int j = 1; j <= i; ++j) {
d[j]++;
a -= j;
}
b -= i;
break;
}
}
int need = a - (b - 1);
d[need]++;
a -= need;
b--;
if (!need) {
d[g]--;
d[g - 1]++;
d[1]++;
g--;
}
for (int i = 1; i <= b; ++i) {
d[1]++;
}
// cout << a << " " << g << '\n';
int h = 0;
for (int i = 1; i <= t; ++i) {
h += d[i];
}
// cout << "BU" << '\n';
// for (int i = 1; i <= t; ++i) {
// cout << d[i] << " ";
// }
// cout << '\n';
int sum = 0;
for (int i = 1; i <= t; ++i) {
sum += i * d[i];
}
assert(sum == z);
cout << t << " " << h << '\n';
int num = g + 1;
for (int i = 1; i <= t; ++i) {
if (!d[i]) {
break;
}
cout << i << " " << i + 1 << '\n';
for (int j = 2; j <= d[i]; ++j) {
cout << i << " " << ++num << '\n';
}
}
exit(0);
}
a += x;
b += y;
}
cout << "impossible" << '\n';
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3596kb
input:
1/2
output:
2 1 1 2
result:
ok
Test #2:
score: 0
Accepted
time: 1ms
memory: 3552kb
input:
1/3
output:
impossible
result:
ok
Test #3:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
7/4
output:
8 7 1 2 1 6 1 7 2 3 2 8 3 4 4 5
result:
ok
Test #4:
score: 0
Accepted
time: 0ms
memory: 3524kb
input:
974/975
output:
975 974 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 ...
result:
ok
Test #5:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
943/346
output:
346 345 1 2 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 75 1 76 1 77 1 78 1 79 1 80 1 81 1 82 1 83 1 84 1 85 1 86 1 87 1 88 1 89 1 90 1 91 1 92 1 93 1 9...
result:
ok
Test #6:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
912/7
output:
266 265 1 2 1 264 1 265 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 ...
result:
ok
Test #7:
score: 0
Accepted
time: 0ms
memory: 3748kb
input:
1/1
output:
3 2 1 2 2 3
result:
ok
Test #8:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
1/1000
output:
impossible
result:
ok
Test #9:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
1000/999
output:
999 998 1 2 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 1 62...
result:
ok
Test #10:
score: 0
Accepted
time: 0ms
memory: 3528kb
input:
999/1000
output:
1000 999 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61...
result:
ok
Test #11:
score: 0
Accepted
time: 1ms
memory: 3532kb
input:
1000/1
output:
2001 2000 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 5...
result:
ok
Test #12:
score: 0
Accepted
time: 1ms
memory: 3564kb
input:
999/2
output:
1000 999 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52...
result:
ok
Test #13:
score: 0
Accepted
time: 1ms
memory: 3796kb
input:
1000/3
output:
669 668 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 ...
result:
ok
Test #14:
score: 0
Accepted
time: 0ms
memory: 3484kb
input:
26/3
output:
21 20 1 2 1 20 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 10 21 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19
result:
ok
Test #15:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
79/9
output:
27 26 1 2 1 23 1 24 1 25 1 26 2 3 2 27 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22
result:
ok
Test #16:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
80/9
output:
27 26 1 2 1 23 1 24 1 25 1 26 2 3 3 4 4 5 5 6 5 27 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22
result:
ok
Test #17:
score: 0
Accepted
time: 1ms
memory: 3600kb
input:
998/999
output:
999 998 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 ...
result:
ok
Test #18:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
997/999
output:
impossible
result:
ok
Test #19:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
997/1000
output:
impossible
result:
ok
Test #20:
score: 0
Accepted
time: 0ms
memory: 3748kb
input:
99/200
output:
impossible
result:
ok
Test #21:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
101/200
output:
impossible
result:
ok
Test #22:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
99/199
output:
impossible
result:
ok
Test #23:
score: 0
Accepted
time: 0ms
memory: 3488kb
input:
2/1
output:
5 4 1 2 2 3 3 4 4 5
result:
ok
Test #24:
score: 0
Accepted
time: 0ms
memory: 3484kb
input:
200/99
output:
99 98 1 2 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 ...
result:
ok
Test #25:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
200/101
output:
101 100 1 2 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 7...
result:
ok
Test #26:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
199/100
output:
100 99 1 2 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73...
result:
ok
Test #27:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
201/100
output:
100 99 1 2 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73...
result:
ok
Test #28:
score: 0
Accepted
time: 0ms
memory: 3480kb
input:
999/500
output:
500 499 1 2 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 75 1 76 1 77 1 78 1 79 1 80 1 81 1 82 1 83 1 84 1 85 1 86 1 87 1 88 1 89 1 90 1 9...
result:
ok
Test #29:
score: 0
Accepted
time: 0ms
memory: 3528kb
input:
333/167
output:
167 166 1 2 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 75 1 76 1 7...
result:
ok
Test #30:
score: 0
Accepted
time: 0ms
memory: 3480kb
input:
3/1
output:
7 6 1 2 2 3 3 4 4 5 5 6 6 7
result:
ok
Test #31:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
301/100
output:
100 99 1 2 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 75 1 76 1 77 1 78 1 79...
result:
ok
Test #32:
score: 0
Accepted
time: 0ms
memory: 3464kb
input:
299/100
output:
100 99 1 2 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 75 1 76 1 77 1 78 1 79...
result:
ok
Test #33:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
1000/333
output:
333 332 1 2 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 75 1 76 1 77 1 78 1 79 1 80 1 81 1 82 1 83 1 84 1 85 1 86 1 87 1 88 1 89 1 90 1 91 1 92 1 93 1 94 1 95 1 9...
result:
ok
Test #34:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
500/167
output:
167 166 1 2 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 75 1 76 1 77 1 78 1 79 1 80 1 81 1 82 1 83 1 84 1 8...
result:
ok
Test #35:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
14/5
output:
10 9 1 2 1 8 1 9 2 3 3 4 4 5 5 6 5 10 6 7
result:
ok
Test #36:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
16/5
output:
10 9 1 2 1 9 2 3 3 4 3 10 4 5 5 6 6 7 7 8
result:
ok
Test #37:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
15/4
output:
12 11 1 2 1 10 1 11 2 3 3 4 4 5 5 6 6 7 7 8 7 12 8 9
result:
ok
Test #38:
score: 0
Accepted
time: 0ms
memory: 3832kb
input:
5/2
output:
6 5 1 2 2 3 3 4 4 5 5 6
result:
ok
Test #39:
score: 0
Accepted
time: 0ms
memory: 3484kb
input:
409/19
output:
57 56 1 2 1 50 1 51 1 52 1 53 1 54 1 55 1 56 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 44 57 45 46 ...
result:
ok
Test #40:
score: 0
Accepted
time: 0ms
memory: 3488kb
input:
818/39
output:
78 77 1 2 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 75 1 76 1 77 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 20 78 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 3...
result:
ok
Test #41:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
409/20
output:
60 59 1 2 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 41 60 42 43 43 ...
result:
ok
Test #42:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
818/41
output:
41 40 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 38 41 39 40
result:
ok
Test #43:
score: 0
Accepted
time: 0ms
memory: 3524kb
input:
819/38
output:
76 75 1 2 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 75 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 24 76 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37...
result:
ok
Test #44:
score: 0
Accepted
time: 0ms
memory: 3536kb
input:
21/1
output:
43 42 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43
result:
ok
Test #45:
score: 0
Accepted
time: 0ms
memory: 3484kb
input:
819/40
output:
80 79 1 2 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 75 1 76 1 77 1 78 1 79 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 20 80 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 ...
result:
ok
Test #46:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
819/41
output:
41 40 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 39 41
result:
ok
Test #47:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
410/19
output:
57 56 1 2 1 50 1 51 1 52 1 53 1 54 1 55 1 56 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 ...
result:
ok
Test #48:
score: 0
Accepted
time: 0ms
memory: 3516kb
input:
820/39
output:
78 77 1 2 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 75 1 76 1 77 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 24 78 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 3...
result:
ok
Test #49:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
41/2
output:
42 41 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42
result:
ok
Test #50:
score: 0
Accepted
time: 0ms
memory: 3820kb
input:
20/1
output:
41 40 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41
result:
ok
Test #51:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
821/38
output:
76 75 1 2 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 75 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 28 76 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37...
result:
ok
Test #52:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
821/39
output:
78 77 1 2 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 75 1 76 1 77 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 26 78 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 3...
result:
ok
Test #53:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
821/40
output:
80 79 1 2 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 75 1 76 1 77 1 78 1 79 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 24 80 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 ...
result:
ok
Test #54:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
821/41
output:
82 81 1 2 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 75 1 76 1 77 1 78 1 79 1 80 1 81 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 22 82 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32...
result:
ok
Test #55:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
512/1
output:
1025 1024 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 5...
result:
ok
Test #56:
score: 0
Accepted
time: 1ms
memory: 3536kb
input:
729/1
output:
1459 1458 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 5...
result:
ok
Test #57:
score: 0
Accepted
time: 1ms
memory: 3620kb
input:
625/1
output:
1251 1250 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 5...
result:
ok
Test #58:
score: 0
Accepted
time: 0ms
memory: 3528kb
input:
127/626
output:
impossible
result:
ok
Test #59:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
429/838
output:
impossible
result:
ok
Test #60:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
563/710
output:
impossible
result:
ok
Test #61:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
40/207
output:
impossible
result:
ok
Test #62:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
145/298
output:
impossible
result:
ok
Test #63:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
109/286
output:
impossible
result:
ok
Test #64:
score: 0
Accepted
time: 0ms
memory: 3484kb
input:
219/305
output:
impossible
result:
ok
Test #65:
score: 0
Accepted
time: 0ms
memory: 3528kb
input:
11/258
output:
impossible
result:
ok
Test #66:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
59/105
output:
impossible
result:
ok
Test #67:
score: 0
Accepted
time: 0ms
memory: 3536kb
input:
59/660
output:
impossible
result:
ok
Test #68:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
209/210
output:
210 209 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 ...
result:
ok
Test #69:
score: 0
Accepted
time: 1ms
memory: 3816kb
input:
484/485
output:
485 484 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 ...
result:
ok
Test #70:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
178/179
output:
179 178 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 ...
result:
ok
Test #71:
score: 0
Accepted
time: 1ms
memory: 3792kb
input:
947/948
output:
948 947 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 ...
result:
ok
Test #72:
score: 0
Accepted
time: 0ms
memory: 3536kb
input:
635/636
output:
636 635 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 ...
result:
ok
Test #73:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
11/12
output:
12 11 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12
result:
ok
Test #74:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
451/452
output:
452 451 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 ...
result:
ok
Test #75:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
144/145
output:
145 144 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 ...
result:
ok
Test #76:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
478/479
output:
479 478 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 ...
result:
ok
Test #77:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
603/604
output:
604 603 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 ...
result:
ok
Test #78:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
34/897
output:
impossible
result:
ok
Test #79:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
794/101
output:
101 100 1 2 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 75 1 76 1 77 1 78 1 79 1 80 1 81 1 82 1 83 1 84 1 85 1 86 1 87 1 88 1 89 1 90 1 91 1 92 1 93 1 94 1 95 1 9...
result:
ok
Test #80:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
303/169
output:
169 168 1 2 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 7...
result:
ok
Test #81:
score: 0
Accepted
time: 0ms
memory: 3484kb
input:
539/734
output:
impossible
result:
ok
Test #82:
score: 0
Accepted
time: 0ms
memory: 3484kb
input:
725/603
output:
603 602 1 2 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 7...
result:
ok
Test #83:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
83/393
output:
impossible
result:
ok
Test #84:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
713/855
output:
impossible
result:
ok
Test #85:
score: 0
Accepted
time: 0ms
memory: 3484kb
input:
349/753
output:
impossible
result:
ok
Test #86:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
505/87
output:
87 86 1 2 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 75 1 76 1 77 1 78 1 79 1 80 1 81 1 82 1 83 1 84 1 85 1 86 2 3 3 4 4 ...
result:
ok
Test #87:
score: 0
Accepted
time: 0ms
memory: 3536kb
input:
631/690
output:
impossible
result:
ok
Test #88:
score: 0
Accepted
time: 0ms
memory: 3528kb
input:
357/104
output:
104 103 1 2 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 1 62 1 63 1 64 1 65 1 66 1 67 1 68 1 69 1 70 1 71 1 72 1 73 1 74 1 75 1 76 1 77 1 78 1 79 1 80 1 81 1 8...
result:
ok
Test #89:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
176/849
output:
impossible
result:
ok
Test #90:
score: 0
Accepted
time: 0ms
memory: 3524kb
input:
616/757
output:
impossible
result:
ok
Test #91:
score: 0
Accepted
time: 0ms
memory: 3820kb
input:
138/953
output:
impossible
result:
ok
Test #92:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
152/389
output:
impossible
result:
ok
Test #93:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
31/425
output:
impossible
result:
ok
Test #94:
score: 0
Accepted
time: 0ms
memory: 3536kb
input:
91/550
output:
impossible
result:
ok
Test #95:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
531/956
output:
impossible
result:
ok
Test #96:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
283/737
output:
impossible
result:
ok
Test #97:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
490/3
output:
330 329 1 2 1 329 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 ...
result:
ok
Test #98:
score: 0
Accepted
time: 0ms
memory: 3832kb
input:
473/1
output:
947 946 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 ...
result:
ok
Test #99:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
980/1
output:
1961 1960 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 5...
result:
ok
Test #100:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
926/5
output:
375 374 1 2 1 374 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 ...
result:
ok
Test #101:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
457/1
output:
915 914 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 ...
result:
ok
Test #102:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
909/2
output:
910 909 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 ...
result:
ok
Test #103:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
156/1
output:
313 312 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 ...
result:
ok
Test #104:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
486/1
output:
973 972 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 ...
result:
ok
Test #105:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
249/2
output:
250 249 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 ...
result:
ok
Test #106:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
948/1
output:
1897 1896 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 5...
result:
ok