QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#511160 | #8651. Table Tennis | Max_s_xaM | 100 ✓ | 357ms | 30268kb | C++14 | 4.6kb | 2024-08-09 17:01:33 | 2024-08-09 17:01:33 |
Judging History
answer
#include <iostream>
typedef long long ll;
typedef double lf;
// #define DEBUG 1
struct IO
{
#define MAXSIZE (1 << 20)
#define isdigit(x) (x >= '0' && x <= '9')
char buf[MAXSIZE], *p1, *p2;
char pbuf[MAXSIZE], *pp;
#if DEBUG
#else
IO() : p1(buf), p2(buf), pp(pbuf) {}
~IO() {fwrite(pbuf, 1, pp - pbuf, stdout);}
#endif
#define gc() (p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, MAXSIZE, stdin), p1 == p2) ? ' ' : *p1++)
#define blank(x) (x == ' ' || x == '\n' || x == '\r' || x == '\t')
template <typename T>
void Read(T &x)
{
#if DEBUG
std::cin >> x;
#else
bool sign = 0; char ch = gc(); x = 0;
for (; !isdigit(ch); ch = gc())
if (ch == '-') sign = 1;
for (; isdigit(ch); ch = gc()) x = x * 10 + (ch ^ 48);
if (sign) x = -x;
#endif
}
void Read(char *s)
{
#if DEBUG
std::cin >> s;
#else
char ch = gc();
for (; blank(ch); ch = gc());
for (; !blank(ch); ch = gc()) *s++ = ch;
*s = 0;
#endif
}
void Read(char &c) {for (c = gc(); blank(c); c = gc());}
void Push(const char &c)
{
#if DEBUG
putchar(c);
#else
if (pp - pbuf == MAXSIZE) fwrite(pbuf, 1, MAXSIZE, stdout), pp = pbuf;
*pp++ = c;
#endif
}
template <typename T>
void Write(T x)
{
if (x < 0) x = -x, Push('-');
static T sta[35];
int top = 0;
do sta[top++] = x % 10, x /= 10; while (x);
while (top) Push(sta[--top] ^ 48);
}
template <typename T>
void Write(T x, char lst) {Write(x), Push(lst);}
} IO;
#define Read(x) IO.Read(x)
#define Write(x, y) IO.Write(x, y)
#define Put(x) IO.Push(x)
using namespace std;
const int MAXN = 5010;
int n; ll m;
ll d[MAXN];
bool e[MAXN][MAXN];
inline int Calc()
{
int cnt = 0;
for (int i = 1; i <= n; i++)
for (int j = i + 1; j <= n; j++)
for (int k = j + 1; k <= n; k++)
if ((e[i][j] && e[j][k] && !e[i][k]) || (!e[i][j] && !e[j][k] && e[i][k]))
cnt++;
return cnt;
}
int st[MAXN], top;
int main()
{
// freopen("C.in", "r", stdin);
// freopen("C.out", "w", stdout);
#if DEBUG
#else
ios::sync_with_stdio(0), cin.tie(0);
#endif
// for (int i = 3; i <= 9; i++)
// for (int j = 0; j <= i * i / 3; j++)
// cout << i << ' ' << j << '\n';
// return 0;
int T;
Read(T);
while (T--)
{
Read(n), Read(m);
ll sum = (ll)n * (n - 1) * (n - 2) / 3 + (ll)n * (n - 1) / 2 - 2 * m;
if (n & 1)
for (int i = 1; i <= n; i++) d[i] = n >> 1;
else
{
for (int i = 1; i <= n >> 1; i++) d[i] = (n >> 1) - 1;
for (int i = (n >> 1) + 1; i <= n; i++) d[i] = n >> 1;
}
ll cur = 0;
for (int i = 1; i <= n; i++) cur += d[i] * d[i];
// for (int i = 1; i <= n; i++) cout << d[i] << ' '; cout << '\n';
// cout << cur << ' ' << sum << '\n';
if (sum < cur) { cout << "No\n"; continue; }
for (int i = 1; i <= n / 2; i++)
while (d[i] > i - 1 && cur + 2 * (d[n - i + 1] - d[i]) + 2 <= sum) cur += 2 * (d[n - i + 1] - d[i]) + 2, d[i]--, d[n - i + 1]++;
if (cur == sum - 2)
{
d[n + 1] = -1;
for (int i = 1; i < n; i++)
if (d[i] > i - 1 && d[i] == d[i + 1] && d[i + 1] != d[i + 2])
{ d[i]--, d[i + 1]++, cur += 2; break; }
}
// for (int i = 1; i <= n; i++) cout << d[i] << ' '; cout << '\n';
// cout << cur << ' ' << sum << '\n';
if (cur != sum) cout << "Error " << n << ' ' << m << '\n';
for (int i = 1; i < n; i++)
{
top = 0;
for (int l = i + 1, r; l <= n; l = r + 1)
{
r = l;
while (r < n && d[r + 1] == d[l]) r++;
for (int k = r; k >= l; k--) st[++top] = k;
}
for (int j = 1; j <= d[i]; j++) e[i][st[j]] = 1;
for (int j = d[i] + 1; j <= top; j++) e[i][st[j]] = 0, d[st[j]]--;
}
// for (int i = 1; i <= n; i++) cout << d[i] << ' '; cout << '\n';
cout << "Yes\n";
for (int i = 2; i <= n; i++, cout << '\n')
for (int j = 1; j < i; j++)
cout << e[j][i];
// int cnt = Calc();
// if (cnt != m) cout << "WA " << n << ' ' << m << ' ' << cnt << "\n";
}
return 0;
}
詳細信息
Subtask #1:
score: 5
Accepted
Test #1:
score: 5
Accepted
time: 5ms
memory: 6088kb
input:
97 3 0 4 0 5 0 6 0 7 0 8 0 9 0 10 0 11 0 12 0 13 0 14 0 15 0 16 0 17 0 18 0 19 0 20 0 21 0 22 0 23 0 24 0 25 0 26 0 27 0 28 0 29 0 30 0 31 0 32 0 33 0 34 0 35 0 36 0 37 0 38 0 39 0 40 0 41 0 42 0 43 0 44 0 45 0 46 0 47 0 48 0 49 0 50 0 51 0 52 0 53 0 54 0 55 0 56 0 57 0 58 0 59 0 60 0 61 0 62 0 63 0...
output:
Yes 0 00 Yes 0 00 000 Yes 0 00 000 0000 Yes 0 00 000 0000 00000 Yes 0 00 000 0000 00000 000000 Yes 0 00 000 0000 00000 000000 0000000 Yes 0 00 000 0000 00000 000000 0000000 00000000 Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 00...
result:
ok good job! (97 test cases)
Test #2:
score: 5
Accepted
time: 311ms
memory: 29704kb
input:
5 4839 0 127 0 22 0 7 0 5 0
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (5 test cases)
Test #3:
score: 5
Accepted
time: 79ms
memory: 13480kb
input:
11 1191 0 1580 0 199 0 484 0 209 0 1226 0 92 0 5 0 4 0 4 0 6 0
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (11 test cases)
Test #4:
score: 5
Accepted
time: 102ms
memory: 14848kb
input:
8 953 0 1747 0 1782 0 213 0 210 0 82 0 10 0 3 0
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (8 test cases)
Test #5:
score: 5
Accepted
time: 0ms
memory: 5712kb
input:
1 6 0
output:
Yes 0 00 000 0000 00000
result:
ok good job! (1 test case)
Test #6:
score: 5
Accepted
time: 0ms
memory: 5768kb
input:
1 7 0
output:
Yes 0 00 000 0000 00000 000000
result:
ok good job! (1 test case)
Test #7:
score: 5
Accepted
time: 0ms
memory: 5764kb
input:
1 19 0
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000
result:
ok good job! (1 test case)
Test #8:
score: 5
Accepted
time: 1ms
memory: 5760kb
input:
1 20 0
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000
result:
ok good job! (1 test case)
Test #9:
score: 5
Accepted
time: 1ms
memory: 7952kb
input:
1 149 0
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #10:
score: 5
Accepted
time: 1ms
memory: 7764kb
input:
1 150 0
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #11:
score: 5
Accepted
time: 6ms
memory: 10224kb
input:
1 599 0
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #12:
score: 5
Accepted
time: 6ms
memory: 11536kb
input:
1 600 0
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #13:
score: 5
Accepted
time: 345ms
memory: 30244kb
input:
1 4999 0
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #14:
score: 5
Accepted
time: 344ms
memory: 29164kb
input:
1 5000 0
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #15:
score: 5
Accepted
time: 2ms
memory: 5716kb
input:
291 3 0 3 1 4 0 4 1 4 2 5 0 5 1 5 2 5 3 6 0 6 1 6 2 6 3 6 4 7 0 7 1 7 2 7 3 7 4 7 5 8 0 8 1 8 2 8 3 8 4 8 5 8 6 9 0 9 1 9 2 9 3 9 4 9 5 9 6 9 7 10 0 10 1 10 2 10 3 10 4 10 5 10 6 10 7 10 8 11 0 11 1 11 2 11 3 11 4 11 5 11 6 11 7 11 8 11 9 12 0 12 1 12 2 12 3 12 4 12 5 12 6 12 7 12 8 12 9 12 10 13 0 ...
output:
Yes 0 00 Yes 0 10 Yes 0 00 000 Yes 0 00 010 Yes 1 00 010 Yes 0 00 000 0000 Yes 0 00 010 0000 Yes 0 01 000 0010 Yes 1 01 000 0010 Yes 0 00 000 0000 00000 Yes 0 00 000 0010 00000 Yes 0 01 000 0010 00000 Yes 0 01 001 0000 00010 Yes 1 01 001 0000 00010 Yes 0 00 000 0000 00000 000000 Yes 0 00 000 0010 00...
result:
ok good job! (291 test cases)
Test #16:
score: 5
Accepted
time: 84ms
memory: 15400kb
input:
11 123 75 1445 897 1645 84 577 115 634 455 118 80 411 132 18 8 23 8 3 1 3 1
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (11 test cases)
Test #17:
score: 5
Accepted
time: 122ms
memory: 18536kb
input:
7 1948 1328 2367 1910 216 211 374 276 36 32 20 8 39 6
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (7 test cases)
Test #18:
score: 5
Accepted
time: 152ms
memory: 21944kb
input:
6 3051 778 750 222 966 939 138 126 90 28 4 0
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (6 test cases)
Test #19:
score: 5
Accepted
time: 1ms
memory: 5660kb
input:
1 6 0
output:
Yes 0 00 000 0000 00000
result:
ok good job! (1 test case)
Test #20:
score: 5
Accepted
time: 1ms
memory: 5696kb
input:
1 7 2
output:
Yes 0 00 001 0000 00010 000000
result:
ok good job! (1 test case)
Test #21:
score: 5
Accepted
time: 1ms
memory: 5828kb
input:
1 19 7
output:
Yes 0 00 000 0000 00000 000000 0000001 00000000 000000010 0000000001 00000000100 000000000010 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000
result:
ok good job! (1 test case)
Test #22:
score: 5
Accepted
time: 1ms
memory: 5760kb
input:
1 20 14
output:
Yes 0 00 000 0000 00000 000000 0000000 00000001 000000100 0000000010 00000000101 000000010100 0000000000010 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000
result:
ok good job! (1 test case)
Test #23:
score: 5
Accepted
time: 1ms
memory: 6248kb
input:
1 149 6
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #24:
score: 5
Accepted
time: 1ms
memory: 8296kb
input:
1 150 44
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #25:
score: 5
Accepted
time: 6ms
memory: 10204kb
input:
1 599 503
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #26:
score: 5
Accepted
time: 6ms
memory: 9192kb
input:
1 600 218
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #27:
score: 5
Accepted
time: 338ms
memory: 29892kb
input:
1 4999 4407
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #28:
score: 5
Accepted
time: 347ms
memory: 29684kb
input:
1 4999 1436
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #29:
score: 5
Accepted
time: 333ms
memory: 28688kb
input:
1 5000 107
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #30:
score: 5
Accepted
time: 340ms
memory: 29260kb
input:
1 5000 1509
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #31:
score: 5
Accepted
time: 357ms
memory: 29408kb
input:
1 5000 2242
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #32:
score: 5
Accepted
time: 1ms
memory: 5656kb
input:
1 4 2
output:
Yes 1 00 010
result:
ok good job! (1 test case)
Test #33:
score: 5
Accepted
time: 0ms
memory: 5688kb
input:
1 5 3
output:
Yes 1 01 000 0010
result:
ok good job! (1 test case)
Test #34:
score: 5
Accepted
time: 0ms
memory: 5784kb
input:
1 6 4
output:
Yes 1 01 001 0000 00010
result:
ok good job! (1 test case)
Test #35:
score: 5
Accepted
time: 1ms
memory: 5724kb
input:
1 7 5
output:
Yes 0 00 001 0100 01010 000000
result:
ok good job! (1 test case)
Test #36:
score: 5
Accepted
time: 1ms
memory: 5712kb
input:
1 19 17
output:
Yes 0 00 000 0000 00000 000001 0000000 00000001 000000010 0000001010 00000010101 000000000100 0000000000010 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000
result:
ok good job! (1 test case)
Test #37:
score: 5
Accepted
time: 1ms
memory: 5696kb
input:
1 20 18
output:
Yes 0 00 000 0000 00000 000000 0000000 00000010 000000101 0000000010 00000001001 000000010100 0000000001010 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000
result:
ok good job! (1 test case)
Test #38:
score: 5
Accepted
time: 1ms
memory: 8408kb
input:
1 149 147
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #39:
score: 5
Accepted
time: 0ms
memory: 6376kb
input:
1 150 148
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #40:
score: 5
Accepted
time: 7ms
memory: 8844kb
input:
1 599 597
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #41:
score: 5
Accepted
time: 6ms
memory: 8672kb
input:
1 600 598
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #42:
score: 5
Accepted
time: 338ms
memory: 29492kb
input:
1 4999 4997
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #43:
score: 5
Accepted
time: 339ms
memory: 29088kb
input:
1 5000 4998
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #44:
score: 5
Accepted
time: 0ms
memory: 5700kb
input:
1 4 0
output:
Yes 0 00 000
result:
ok good job! (1 test case)
Test #45:
score: 5
Accepted
time: 1ms
memory: 5692kb
input:
1 5 1
output:
Yes 0 00 010 0000
result:
ok good job! (1 test case)
Test #46:
score: 5
Accepted
time: 1ms
memory: 5640kb
input:
1 6 1
output:
Yes 0 00 000 0010 00000
result:
ok good job! (1 test case)
Test #47:
score: 5
Accepted
time: 0ms
memory: 5640kb
input:
1 7 1
output:
Yes 0 00 000 0010 00000 000000
result:
ok good job! (1 test case)
Test #48:
score: 5
Accepted
time: 0ms
memory: 5840kb
input:
1 19 12
output:
Yes 0 00 000 0000 00000 000000 0000001 00000001 000000010 0000001001 00000000100 000000001010 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000
result:
ok good job! (1 test case)
Test #49:
score: 5
Accepted
time: 0ms
memory: 5844kb
input:
1 20 13
output:
Yes 0 00 000 0000 00000 000000 0000001 00000001 000000000 0000000010 00000001001 000000010100 0000000000010 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000
result:
ok good job! (1 test case)
Test #50:
score: 5
Accepted
time: 0ms
memory: 8064kb
input:
1 149 146
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #51:
score: 5
Accepted
time: 1ms
memory: 6284kb
input:
1 150 145
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #52:
score: 5
Accepted
time: 3ms
memory: 9812kb
input:
1 599 595
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #53:
score: 5
Accepted
time: 6ms
memory: 8856kb
input:
1 600 597
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #54:
score: 5
Accepted
time: 339ms
memory: 28440kb
input:
1 4999 4992
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #55:
score: 5
Accepted
time: 343ms
memory: 29860kb
input:
1 4999 4994
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #56:
score: 5
Accepted
time: 334ms
memory: 28668kb
input:
1 5000 4994
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #57:
score: 5
Accepted
time: 338ms
memory: 29388kb
input:
1 5000 4994
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Subtask #2:
score: 4
Accepted
Test #58:
score: 4
Accepted
time: 1ms
memory: 5688kb
input:
1 4 4
output:
No
result:
ok good job! (1 test case)
Test #59:
score: 4
Accepted
time: 1ms
memory: 5620kb
input:
1 5 10
output:
No
result:
ok good job! (1 test case)
Test #60:
score: 4
Accepted
time: 1ms
memory: 5692kb
input:
1 6 20
output:
No
result:
ok good job! (1 test case)
Test #61:
score: 4
Accepted
time: 1ms
memory: 5704kb
input:
1 7 35
output:
No
result:
ok good job! (1 test case)
Test #62:
score: 4
Accepted
time: 0ms
memory: 5676kb
input:
1 5 10
output:
No
result:
ok good job! (1 test case)
Test #63:
score: 4
Accepted
time: 1ms
memory: 5636kb
input:
1 6 19
output:
No
result:
ok good job! (1 test case)
Test #64:
score: 4
Accepted
time: 1ms
memory: 5768kb
input:
1 6 20
output:
No
result:
ok good job! (1 test case)
Test #65:
score: 4
Accepted
time: 0ms
memory: 5608kb
input:
1 7 33
output:
No
result:
ok good job! (1 test case)
Test #66:
score: 4
Accepted
time: 1ms
memory: 5636kb
input:
1 7 33
output:
No
result:
ok good job! (1 test case)
Test #67:
score: 4
Accepted
time: 1ms
memory: 5640kb
input:
1 4 3
output:
No
result:
ok good job! (1 test case)
Test #68:
score: 4
Accepted
time: 1ms
memory: 5636kb
input:
1 5 8
output:
No
result:
ok good job! (1 test case)
Test #69:
score: 4
Accepted
time: 0ms
memory: 5764kb
input:
1 6 17
output:
No
result:
ok good job! (1 test case)
Test #70:
score: 4
Accepted
time: 1ms
memory: 5620kb
input:
1 7 30
output:
No
result:
ok good job! (1 test case)
Test #71:
score: 4
Accepted
time: 1ms
memory: 5716kb
input:
2 3 0 3 1
output:
Yes 0 00 Yes 0 10
result:
ok good job! (2 test cases)
Test #72:
score: 4
Accepted
time: 1ms
memory: 5680kb
input:
2 3 0 3 1
output:
Yes 0 00 Yes 0 10
result:
ok good job! (2 test cases)
Test #73:
score: 4
Accepted
time: 1ms
memory: 5628kb
input:
1 4 2
output:
Yes 1 00 010
result:
ok good job! (1 test case)
Test #74:
score: 4
Accepted
time: 0ms
memory: 5700kb
input:
1 5 5
output:
Yes 0 01 100 1010
result:
ok good job! (1 test case)
Test #75:
score: 4
Accepted
time: 1ms
memory: 5664kb
input:
1 6 8
output:
Yes 1 10 001 0100 01010
result:
ok good job! (1 test case)
Test #76:
score: 4
Accepted
time: 1ms
memory: 5640kb
input:
1 7 14
output:
Yes 0 01 010 1001 10100 101010
result:
ok good job! (1 test case)
Test #77:
score: 4
Accepted
time: 0ms
memory: 5660kb
input:
1 6 5
output:
Yes 1 00 001 0100 00010
result:
ok good job! (1 test case)
Test #78:
score: 4
Accepted
time: 0ms
memory: 5700kb
input:
1 6 4
output:
Yes 1 01 001 0000 00010
result:
ok good job! (1 test case)
Test #79:
score: 4
Accepted
time: 1ms
memory: 5724kb
input:
1 7 7
output:
Yes 1 00 010 0001 00100 000010
result:
ok good job! (1 test case)
Test #80:
score: 4
Accepted
time: 1ms
memory: 5724kb
input:
1 7 6
output:
Yes 1 00 001 0101 00000 000010
result:
ok good job! (1 test case)
Test #81:
score: 4
Accepted
time: 1ms
memory: 5704kb
input:
1 7 8
output:
Yes 0 10 010 0001 00100 000010
result:
ok good job! (1 test case)
Test #82:
score: 4
Accepted
time: 1ms
memory: 5720kb
input:
1 6 7
output:
Yes 1 00 001 0100 10010
result:
ok good job! (1 test case)
Test #83:
score: 4
Accepted
time: 1ms
memory: 5656kb
input:
1 6 6
output:
Yes 0 10 001 0100 00010
result:
ok good job! (1 test case)
Test #84:
score: 4
Accepted
time: 1ms
memory: 5788kb
input:
1 7 11
output:
Yes 1 11 010 0001 00100 001010
result:
ok good job! (1 test case)
Test #85:
score: 4
Accepted
time: 1ms
memory: 5640kb
input:
1 7 11
output:
Yes 1 11 010 0001 00100 001010
result:
ok good job! (1 test case)
Test #86:
score: 4
Accepted
time: 0ms
memory: 5792kb
input:
1 7 13
output:
Yes 0 01 010 1001 10100 001010
result:
ok good job! (1 test case)
Test #87:
score: 4
Accepted
time: 1ms
memory: 5788kb
input:
1 6 6
output:
Yes 0 10 001 0100 00010
result:
ok good job! (1 test case)
Test #88:
score: 4
Accepted
time: 1ms
memory: 5668kb
input:
1 7 9
output:
Yes 1 00 010 0101 00100 000010
result:
ok good job! (1 test case)
Test #89:
score: 4
Accepted
time: 1ms
memory: 5760kb
input:
1 4 3
output:
No
result:
ok good job! (1 test case)
Test #90:
score: 4
Accepted
time: 1ms
memory: 5712kb
input:
1 5 10
output:
No
result:
ok good job! (1 test case)
Test #91:
score: 4
Accepted
time: 1ms
memory: 5692kb
input:
1 6 13
output:
No
result:
ok good job! (1 test case)
Test #92:
score: 4
Accepted
time: 1ms
memory: 5700kb
input:
1 7 23
output:
No
result:
ok good job! (1 test case)
Test #93:
score: 4
Accepted
time: 1ms
memory: 5736kb
input:
1 6 5
output:
Yes 1 00 001 0100 00010
result:
ok good job! (1 test case)
Test #94:
score: 4
Accepted
time: 1ms
memory: 5628kb
input:
1 6 2
output:
Yes 0 01 000 0010 00000
result:
ok good job! (1 test case)
Test #95:
score: 4
Accepted
time: 0ms
memory: 7832kb
input:
1 7 7
output:
Yes 1 00 010 0001 00100 000010
result:
ok good job! (1 test case)
Test #96:
score: 4
Accepted
time: 1ms
memory: 5660kb
input:
1 7 6
output:
Yes 1 00 001 0101 00000 000010
result:
ok good job! (1 test case)
Test #97:
score: 4
Accepted
time: 1ms
memory: 7768kb
input:
1 7 8
output:
Yes 0 10 010 0001 00100 000010
result:
ok good job! (1 test case)
Test #98:
score: 4
Accepted
time: 1ms
memory: 5660kb
input:
1 6 5
output:
Yes 1 00 001 0100 00010
result:
ok good job! (1 test case)
Test #99:
score: 4
Accepted
time: 1ms
memory: 5640kb
input:
1 6 4
output:
Yes 1 01 001 0000 00010
result:
ok good job! (1 test case)
Test #100:
score: 4
Accepted
time: 1ms
memory: 5716kb
input:
1 7 7
output:
Yes 1 00 010 0001 00100 000010
result:
ok good job! (1 test case)
Test #101:
score: 4
Accepted
time: 1ms
memory: 5772kb
input:
1 7 6
output:
Yes 1 00 001 0101 00000 000010
result:
ok good job! (1 test case)
Test #102:
score: 4
Accepted
time: 1ms
memory: 5660kb
input:
1 7 8
output:
Yes 0 10 010 0001 00100 000010
result:
ok good job! (1 test case)
Test #103:
score: 4
Accepted
time: 1ms
memory: 5724kb
input:
1 6 1
output:
Yes 0 00 000 0010 00000
result:
ok good job! (1 test case)
Test #104:
score: 4
Accepted
time: 1ms
memory: 5780kb
input:
1 6 1
output:
Yes 0 00 000 0010 00000
result:
ok good job! (1 test case)
Test #105:
score: 4
Accepted
time: 0ms
memory: 5644kb
input:
1 7 3
output:
Yes 0 01 001 0000 00010 000000
result:
ok good job! (1 test case)
Test #106:
score: 4
Accepted
time: 1ms
memory: 5784kb
input:
1 7 3
output:
Yes 0 01 001 0000 00010 000000
result:
ok good job! (1 test case)
Test #107:
score: 4
Accepted
time: 0ms
memory: 5788kb
input:
1 7 3
output:
Yes 0 01 001 0000 00010 000000
result:
ok good job! (1 test case)
Test #108:
score: 4
Accepted
time: 1ms
memory: 5696kb
input:
1 5 2
output:
Yes 0 01 000 0010
result:
ok good job! (1 test case)
Test #109:
score: 4
Accepted
time: 1ms
memory: 5720kb
input:
1 6 5
output:
Yes 1 00 001 0100 00010
result:
ok good job! (1 test case)
Test #110:
score: 4
Accepted
time: 1ms
memory: 5764kb
input:
2 4 1 3 0
output:
Yes 0 00 010 Yes 0 00
result:
ok good job! (2 test cases)
Test #111:
score: 4
Accepted
time: 1ms
memory: 5724kb
input:
1 6 1
output:
Yes 0 00 000 0010 00000
result:
ok good job! (1 test case)
Test #112:
score: 4
Accepted
time: 1ms
memory: 5620kb
input:
2 3 0 3 1
output:
Yes 0 00 Yes 0 10
result:
ok good job! (2 test cases)
Test #113:
score: 4
Accepted
time: 1ms
memory: 5784kb
input:
1 6 1
output:
Yes 0 00 000 0010 00000
result:
ok good job! (1 test case)
Test #114:
score: 4
Accepted
time: 1ms
memory: 5692kb
input:
1 6 4
output:
Yes 1 01 001 0000 00010
result:
ok good job! (1 test case)
Test #115:
score: 4
Accepted
time: 1ms
memory: 5792kb
input:
1 7 14
output:
Yes 0 01 010 1001 10100 101010
result:
ok good job! (1 test case)
Test #116:
score: 4
Accepted
time: 1ms
memory: 5704kb
input:
1 7 8
output:
Yes 0 10 010 0001 00100 000010
result:
ok good job! (1 test case)
Test #117:
score: 4
Accepted
time: 1ms
memory: 7676kb
input:
1 7 10
output:
Yes 0 00 010 0101 10100 000010
result:
ok good job! (1 test case)
Subtask #3:
score: 23
Accepted
Dependency #2:
100%
Accepted
Test #118:
score: 23
Accepted
time: 1ms
memory: 5632kb
input:
1 19 969
output:
No
result:
ok good job! (1 test case)
Test #119:
score: 23
Accepted
time: 1ms
memory: 5684kb
input:
1 20 1140
output:
No
result:
ok good job! (1 test case)
Test #120:
score: 23
Accepted
time: 1ms
memory: 5616kb
input:
1 19 968
output:
No
result:
ok good job! (1 test case)
Test #121:
score: 23
Accepted
time: 0ms
memory: 5760kb
input:
1 19 969
output:
No
result:
ok good job! (1 test case)
Test #122:
score: 23
Accepted
time: 1ms
memory: 5684kb
input:
1 20 1138
output:
No
result:
ok good job! (1 test case)
Test #123:
score: 23
Accepted
time: 1ms
memory: 5688kb
input:
1 20 1138
output:
No
result:
ok good job! (1 test case)
Test #124:
score: 23
Accepted
time: 1ms
memory: 5676kb
input:
1 20 1140
output:
No
result:
ok good job! (1 test case)
Test #125:
score: 23
Accepted
time: 0ms
memory: 5680kb
input:
1 19 846
output:
No
result:
ok good job! (1 test case)
Test #126:
score: 23
Accepted
time: 0ms
memory: 5760kb
input:
1 20 1003
output:
No
result:
ok good job! (1 test case)
Test #127:
score: 23
Accepted
time: 1ms
memory: 5708kb
input:
5 3 0 3 1 4 0 4 1 4 2
output:
Yes 0 00 Yes 0 10 Yes 0 00 000 Yes 0 00 010 Yes 1 00 010
result:
ok good job! (5 test cases)
Test #128:
score: 23
Accepted
time: 1ms
memory: 5780kb
input:
5 3 0 3 1 4 0 4 1 4 2
output:
Yes 0 00 Yes 0 10 Yes 0 00 000 Yes 0 00 010 Yes 1 00 010
result:
ok good job! (5 test cases)
Test #129:
score: 23
Accepted
time: 1ms
memory: 5748kb
input:
1 19 285
output:
Yes 0 01 010 0101 01010 010101 0101010 01010101 010101010 1001010101 10100101010 101010010101 1010101001010 10101010100101 101010101010010 1010101010101001 10101010101010100 101010101010101010
result:
ok good job! (1 test case)
Test #130:
score: 23
Accepted
time: 1ms
memory: 5712kb
input:
1 20 330
output:
Yes 1 10 101 1010 10101 101010 1010101 10101010 101010101 0010101010 01001010101 010100101010 0101010010101 01010101001010 010101010100101 0101010101010010 01010101010101001 010101010101010100 0101010101010101010
result:
ok good job! (1 test case)
Test #131:
score: 23
Accepted
time: 1ms
memory: 5744kb
input:
1 19 274
output:
Yes 1 10 001 0100 01010 010101 0101010 01010101 010101010 0101010101 01010101010 101010010101 1010101001010 10101010100101 101010101010010 0010101010101001 00101010101010100 000000101010101010
result:
ok good job! (1 test case)
Test #132:
score: 23
Accepted
time: 1ms
memory: 5704kb
input:
1 19 271
output:
Yes 1 10 001 0010 01010 010101 0101010 01010101 010101010 0101010101 01010101010 101010010101 1010101001010 10101010100101 101010101010010 0010101010101001 00001010101010100 000000101010101010
result:
ok good job! (1 test case)
Test #133:
score: 23
Accepted
time: 0ms
memory: 5760kb
input:
1 20 289
output:
Yes 1 11 010 0101 01010 010101 0101010 10101001 101010100 0010101010 00101010101 001010101010 0010101010101 00101010101010 010101010100101 0001010101010010 00010101010101001 000001010101010100 0000000000010101010
result:
ok good job! (1 test case)
Test #134:
score: 23
Accepted
time: 1ms
memory: 5684kb
input:
1 20 328
output:
Yes 0 10 101 1010 10101 101010 1010101 10101010 101010101 0010101010 01001010101 010100101010 0101010010101 01010101001010 010101010100101 0101010101010010 01010101010101001 010101010101010100 0001010101010101010
result:
ok good job! (1 test case)
Test #135:
score: 23
Accepted
time: 1ms
memory: 7712kb
input:
1 20 313
output:
Yes 1 01 010 0101 10100 101010 1010101 10101010 101010101 0010101010 00101010101 001010101010 0101010010101 01010101001010 010101010100101 0101010101010010 00010101010101001 000101010101010100 0000000101010101010
result:
ok good job! (1 test case)
Test #136:
score: 23
Accepted
time: 1ms
memory: 5776kb
input:
1 19 114
output:
Yes 0 00 001 0000 00001 000010 0000101 00010010 000101001 0001010100 00010101010 000101010101 0001010101010 00101010101001 000010101010100 0000000000001010 00000000000000000 000000000000000000
result:
ok good job! (1 test case)
Test #137:
score: 23
Accepted
time: 1ms
memory: 5780kb
input:
1 19 96
output:
Yes 0 00 000 0011 00000 000010 0000101 00001010 000010101 0000110010 00010101001 000101010100 0001010101010 00000001010101 000000101010100 0000000000000010 00000000000000000 000000000000000000
result:
ok good job! (1 test case)
Test #138:
score: 23
Accepted
time: 1ms
memory: 5752kb
input:
1 20 152
output:
Yes 0 00 001 0011 00010 000101 0001100 00101010 001010101 0000101010 00001010101 000010101010 0001010100101 00010101010010 000001010101001 0000010101010100 00000000010101010 000000000000000000 0000000000000000000
result:
ok good job! (1 test case)
Test #139:
score: 23
Accepted
time: 1ms
memory: 5684kb
input:
1 20 250
output:
Yes 1 01 001 0101 01010 010101 0101010 01010101 010101010 0001010101 00101001010 001010100101 0010101010010 00101010101001 001010101010100 0010101010101010 00001010101010101 000001010101010100 0000000000000000010
result:
ok good job! (1 test case)
Test #140:
score: 23
Accepted
time: 1ms
memory: 5764kb
input:
1 20 28
output:
Yes 0 00 000 0000 00000 000000 0000001 00000010 000001001 0000000100 00000001010 000000010101 0000001010100 00000000000010 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000
result:
ok good job! (1 test case)
Test #141:
score: 23
Accepted
time: 1ms
memory: 5744kb
input:
1 19 231
output:
Yes 1 10 001 0010 00101 001010 0010101 00101010 010100101 0101010010 01010101001 010101010100 0101010101010 01010101010101 010101010101010 0010101010101001 00001010101010100 000000000000001010
result:
ok good job! (1 test case)
Test #142:
score: 23
Accepted
time: 0ms
memory: 5760kb
input:
1 19 270
output:
Yes 1 10 101 0010 01010 010101 0101010 01010101 010101010 0101010101 01010101010 101010010101 1010101001010 10101010100101 001010101010010 0010101010101001 00001010101010100 000000101010101010
result:
ok good job! (1 test case)
Test #143:
score: 23
Accepted
time: 1ms
memory: 5752kb
input:
1 20 258
output:
Yes 0 01 010 0101 01010 010101 0101010 01010101 100101010 0010010101 00101001010 001010100101 0010101010010 00101010101001 001010101010100 0010101010101010 00101010101010101 010101010101010100 0000000000000000010
result:
ok good job! (1 test case)
Test #144:
score: 23
Accepted
time: 1ms
memory: 5820kb
input:
1 20 263
output:
Yes 1 11 001 0101 01010 010101 0101010 01010101 010101010 0010100101 00101010010 001010101001 0010101010100 00101010101010 001010101010101 0000101010101010 00010101010101001 000001010101010100 0000000000000001010
result:
ok good job! (1 test case)
Test #145:
score: 23
Accepted
time: 1ms
memory: 5748kb
input:
1 20 286
output:
Yes 1 01 010 0101 01010 010101 0101010 10100101 101010010 0010101001 00101010100 001010101010 0010101010101 00101010101010 001010101010101 0101010101010010 01010101010101001 000101010101010100 0000000000000101010
result:
ok good job! (1 test case)
Test #146:
score: 23
Accepted
time: 1ms
memory: 5772kb
input:
1 19 241
output:
Yes 1 11 001 0010 00101 001010 0010101 00110010 010101001 0101010100 01010101010 010101010101 0101010101010 01010101010101 101010101010010 0000101010101001 00001010101010100 000000000000101010
result:
ok good job! (1 test case)
Test #147:
score: 23
Accepted
time: 1ms
memory: 5768kb
input:
1 20 286
output:
Yes 1 01 010 0101 01010 010101 0101010 10100101 101010010 0010101001 00101010100 001010101010 0010101010101 00101010101010 001010101010101 0101010101010010 01010101010101001 000101010101010100 0000000000000101010
result:
ok good job! (1 test case)
Test #148:
score: 23
Accepted
time: 0ms
memory: 5692kb
input:
1 19 294
output:
No
result:
ok good job! (1 test case)
Test #149:
score: 23
Accepted
time: 1ms
memory: 5612kb
input:
1 19 289
output:
No
result:
ok good job! (1 test case)
Test #150:
score: 23
Accepted
time: 1ms
memory: 5700kb
input:
1 20 338
output:
No
result:
ok good job! (1 test case)
Test #151:
score: 23
Accepted
time: 1ms
memory: 5696kb
input:
1 20 336
output:
No
result:
ok good job! (1 test case)
Test #152:
score: 23
Accepted
time: 0ms
memory: 5772kb
input:
1 20 335
output:
No
result:
ok good job! (1 test case)
Test #153:
score: 23
Accepted
time: 1ms
memory: 5744kb
input:
1 19 19
output:
Yes 0 00 000 0000 00000 000000 0000010 00000001 000000100 0000001010 00000000101 000000010100 0000000000010 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000
result:
ok good job! (1 test case)
Test #154:
score: 23
Accepted
time: 1ms
memory: 5756kb
input:
1 19 1
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000010 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000
result:
ok good job! (1 test case)
Test #155:
score: 23
Accepted
time: 0ms
memory: 5708kb
input:
1 20 2
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000001 0000000000 00000000010 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000
result:
ok good job! (1 test case)
Test #156:
score: 23
Accepted
time: 1ms
memory: 5716kb
input:
1 20 40
output:
Yes 0 00 000 0000 00000 000001 0000010 00000101 000001010 0000000101 00000010010 000000101001 0000001010100 00000010101010 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000
result:
ok good job! (1 test case)
Test #157:
score: 23
Accepted
time: 0ms
memory: 5716kb
input:
1 20 18
output:
Yes 0 00 000 0000 00000 000000 0000000 00000010 000000101 0000000010 00000001001 000000010100 0000000001010 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000
result:
ok good job! (1 test case)
Test #158:
score: 23
Accepted
time: 1ms
memory: 5816kb
input:
1 19 114
output:
Yes 0 00 001 0000 00001 000010 0000101 00010010 000101001 0001010100 00010101010 000101010101 0001010101010 00101010101001 000010101010100 0000000000001010 00000000000000000 000000000000000000
result:
ok good job! (1 test case)
Test #159:
score: 23
Accepted
time: 1ms
memory: 5760kb
input:
1 19 96
output:
Yes 0 00 000 0011 00000 000010 0000101 00001010 000010101 0000110010 00010101001 000101010100 0001010101010 00000001010101 000000101010100 0000000000000010 00000000000000000 000000000000000000
result:
ok good job! (1 test case)
Test #160:
score: 23
Accepted
time: 1ms
memory: 5688kb
input:
1 20 152
output:
Yes 0 00 001 0011 00010 000101 0001100 00101010 001010101 0000101010 00001010101 000010101010 0001010100101 00010101010010 000001010101001 0000010101010100 00000000010101010 000000000000000000 0000000000000000000
result:
ok good job! (1 test case)
Test #161:
score: 23
Accepted
time: 1ms
memory: 5848kb
input:
1 20 250
output:
Yes 1 01 001 0101 01010 010101 0101010 01010101 010101010 0001010101 00101001010 001010100101 0010101010010 00101010101001 001010101010100 0010101010101010 00001010101010101 000001010101010100 0000000000000000010
result:
ok good job! (1 test case)
Test #162:
score: 23
Accepted
time: 0ms
memory: 7788kb
input:
1 20 28
output:
Yes 0 00 000 0000 00000 000000 0000001 00000010 000001001 0000000100 00000001010 000000010101 0000001010100 00000000000010 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000
result:
ok good job! (1 test case)
Test #163:
score: 23
Accepted
time: 1ms
memory: 5752kb
input:
1 19 68
output:
Yes 0 00 000 0001 00001 000011 0001010 00000101 000010100 0000101010 00000010101 000000101010 0000010101001 00000001010100 000000000001010 0000000000000000 00000000000000000 000000000000000000
result:
ok good job! (1 test case)
Test #164:
score: 23
Accepted
time: 1ms
memory: 5708kb
input:
1 19 49
output:
Yes 0 00 000 0000 00001 000010 0000010 00000101 000001010 0000010101 00001010010 000000101001 0000001010100 00000000101010 000000000000000 0000000000000000 00000000000000000 000000000000000000
result:
ok good job! (1 test case)
Test #165:
score: 23
Accepted
time: 1ms
memory: 5756kb
input:
1 20 21
output:
Yes 0 00 000 0000 00000 000001 0000001 00000011 000000001 0000000010 00000001010 000000010101 0000000000100 00000000000010 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000
result:
ok good job! (1 test case)
Test #166:
score: 23
Accepted
time: 1ms
memory: 5780kb
input:
1 20 34
output:
Yes 0 00 000 0000 00000 000000 0000001 00000100 000001010 0000000101 00000001010 000000101001 0000001010100 00000000001010 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000
result:
ok good job! (1 test case)
Test #167:
score: 23
Accepted
time: 1ms
memory: 5780kb
input:
1 20 34
output:
Yes 0 00 000 0000 00000 000000 0000001 00000100 000001010 0000000101 00000001010 000000101001 0000001010100 00000000001010 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000
result:
ok good job! (1 test case)
Test #168:
score: 23
Accepted
time: 1ms
memory: 5736kb
input:
2 13 8 7 3
output:
Yes 0 00 000 0000 00010 000010 0000001 00000100 000000010 0000000000 00000000000 000000000000 Yes 0 01 001 0000 00010 000000
result:
ok good job! (2 test cases)
Test #169:
score: 23
Accepted
time: 1ms
memory: 5804kb
input:
3 10 3 3 1 7 0
output:
Yes 0 00 000 0001 00001 000000 0000010 00000000 000000000 Yes 0 10 Yes 0 00 000 0000 00000 000000
result:
ok good job! (3 test cases)
Test #170:
score: 23
Accepted
time: 1ms
memory: 5696kb
input:
4 7 6 6 3 4 2 3 0
output:
Yes 1 00 001 0101 00000 000010 Yes 0 01 001 0000 00010 Yes 1 00 010 Yes 0 00
result:
ok good job! (4 test cases)
Test #171:
score: 23
Accepted
time: 1ms
memory: 5740kb
input:
2 17 120 3 0
output:
Yes 0 01 000 0001 00010 000101 0010100 00101010 001010101 0010101010 00101010101 010101010010 0101010101001 00000101010100 000000000101010 0000000000000000 Yes 0 00
result:
ok good job! (2 test cases)
Test #172:
score: 23
Accepted
time: 1ms
memory: 5716kb
input:
4 6 1 6 7 4 0 4 0
output:
Yes 0 00 000 0010 00000 Yes 1 00 001 0100 10010 Yes 0 00 000 Yes 0 00 000
result:
ok good job! (4 test cases)
Test #173:
score: 23
Accepted
time: 1ms
memory: 5768kb
input:
1 19 181
output:
Yes 0 01 010 0101 01010 000101 0010100 00101010 001010101 0010101010 00101010101 001010101010 0001010100101 00010101010010 000101010101001 0000010101010100 00000000010101010 000000000000000000
result:
ok good job! (1 test case)
Test #174:
score: 23
Accepted
time: 1ms
memory: 5776kb
input:
1 19 17
output:
Yes 0 00 000 0000 00000 000001 0000000 00000001 000000010 0000001010 00000010101 000000000100 0000000000010 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000
result:
ok good job! (1 test case)
Test #175:
score: 23
Accepted
time: 1ms
memory: 5720kb
input:
1 20 170
output:
Yes 0 01 001 0001 00010 001010 0010101 00101010 001010101 0000101010 00001010101 000101010010 0001010101001 00010101010100 000101010101010 0000010101010101 00000000101010100 000000000000000010 0000000000000000000
result:
ok good job! (1 test case)
Test #176:
score: 23
Accepted
time: 1ms
memory: 5744kb
input:
1 20 30
output:
Yes 0 00 000 0000 00000 000001 0000011 00000010 000000110 0000000101 00000001010 000000001001 0000000010100 00000000001010 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000
result:
ok good job! (1 test case)
Test #177:
score: 23
Accepted
time: 1ms
memory: 5840kb
input:
1 20 183
output:
Yes 0 00 001 0011 00111 001111 0111111 00110101 000001011 0000011010 00001010101 000010110010 0000101101001 00001011010100 000100110101010 0001010101010101 00100101101010100 000000000000000010 0000000000000000000
result:
ok good job! (1 test case)
Subtask #4:
score: 30
Accepted
Dependency #3:
100%
Accepted
Test #178:
score: 30
Accepted
time: 0ms
memory: 5632kb
input:
1 149 540274
output:
No
result:
ok good job! (1 test case)
Test #179:
score: 30
Accepted
time: 0ms
memory: 5768kb
input:
1 150 551300
output:
No
result:
ok good job! (1 test case)
Test #180:
score: 30
Accepted
time: 1ms
memory: 5640kb
input:
1 149 540272
output:
No
result:
ok good job! (1 test case)
Test #181:
score: 30
Accepted
time: 1ms
memory: 5708kb
input:
1 149 540272
output:
No
result:
ok good job! (1 test case)
Test #182:
score: 30
Accepted
time: 1ms
memory: 5688kb
input:
1 150 551299
output:
No
result:
ok good job! (1 test case)
Test #183:
score: 30
Accepted
time: 1ms
memory: 5704kb
input:
1 150 551299
output:
No
result:
ok good job! (1 test case)
Test #184:
score: 30
Accepted
time: 1ms
memory: 5748kb
input:
1 150 551299
output:
No
result:
ok good job! (1 test case)
Test #185:
score: 30
Accepted
time: 1ms
memory: 5636kb
input:
1 149 468391
output:
No
result:
ok good job! (1 test case)
Test #186:
score: 30
Accepted
time: 0ms
memory: 5760kb
input:
1 150 482173
output:
No
result:
ok good job! (1 test case)
Test #187:
score: 30
Accepted
time: 0ms
memory: 5784kb
input:
29 3 0 3 1 4 0 4 1 4 2 4 3 4 4 5 0 5 1 5 2 5 3 5 4 5 5 5 6 5 7 5 8 5 9 5 10 6 0 6 1 6 2 6 3 6 4 6 5 6 6 6 7 6 8 6 9 6 10
output:
Yes 0 00 Yes 0 10 Yes 0 00 000 Yes 0 00 010 Yes 1 00 010 No No Yes 0 00 000 0000 Yes 0 00 010 0000 Yes 0 01 000 0010 Yes 1 01 000 0010 Yes 0 01 100 0010 Yes 0 01 100 1010 No No No No No Yes 0 00 000 0000 00000 Yes 0 00 000 0010 00000 Yes 0 01 000 0010 00000 Yes 0 01 001 0000 00010 Yes 1 01 001 0000 ...
result:
ok good job! (29 test cases)
Test #188:
score: 30
Accepted
time: 1ms
memory: 5704kb
input:
26 3 0 3 1 4 0 4 1 4 2 5 0 5 1 5 2 5 3 5 4 5 5 6 0 6 1 6 2 6 3 6 4 6 5 6 6 6 7 6 8 7 0 7 1 7 2 7 3 7 4 7 5
output:
Yes 0 00 Yes 0 10 Yes 0 00 000 Yes 0 00 010 Yes 1 00 010 Yes 0 00 000 0000 Yes 0 00 010 0000 Yes 0 01 000 0010 Yes 1 01 000 0010 Yes 0 01 100 0010 Yes 0 01 100 1010 Yes 0 00 000 0000 00000 Yes 0 00 000 0010 00000 Yes 0 01 000 0010 00000 Yes 0 01 001 0000 00010 Yes 1 01 001 0000 00010 Yes 1 00 001 01...
result:
ok good job! (26 test cases)
Test #189:
score: 30
Accepted
time: 1ms
memory: 6296kb
input:
1 149 137825
output:
Yes 0 01 010 0101 01010 010101 0101010 01010101 010101010 0101010101 01010101010 010101010101 0101010101010 01010101010101 010101010101010 0101010101010101 01010101010101010 010101010101010101 0101010101010101010 01010101010101010101 010101010101010101010 0101010101010101010101 010101010101010101010...
result:
ok good job! (1 test case)
Test #190:
score: 30
Accepted
time: 1ms
memory: 6252kb
input:
1 150 140600
output:
Yes 1 10 101 1010 10101 101010 1010101 10101010 101010101 1010101010 10101010101 101010101010 1010101010101 10101010101010 101010101010101 1010101010101010 10101010101010101 101010101010101010 1010101010101010101 10101010101010101010 101010101010101010101 1010101010101010101010 101010101010101010101...
result:
ok good job! (1 test case)
Test #191:
score: 30
Accepted
time: 0ms
memory: 7916kb
input:
1 149 137691
output:
Yes 1 11 001 0010 00101 001010 0010101 00101010 001010101 0010101010 00101010101 001010101010 0010101010101 00110100101010 010101010010101 0101010101001010 01010101010100101 010101010101010010 0101010101010101001 01010101010101010100 010101010101010101010 0101010101010101010101 010101010101010101010...
result:
ok good job! (1 test case)
Test #192:
score: 30
Accepted
time: 1ms
memory: 6372kb
input:
1 149 137531
output:
Yes 1 10 001 0010 00101 001010 0010101 00101010 001010101 0010101010 00101010101 001010101010 0010101010101 00101010101010 001010101010101 0010101010101010 00101010101010101 001010101010101010 0101001010101010101 01010100101010101010 010101010010101010101 0101010101001010101010 010101010101001010101...
result:
ok good job! (1 test case)
Test #193:
score: 30
Accepted
time: 1ms
memory: 6288kb
input:
1 150 140481
output:
Yes 1 11 011 0111 01111 011111 0111111 01111111 011111111 0111111111 11111111111 111111111111 1111111111111 11111111111111 111111111111111 1111111111111111 11111111111111111 111111111111111111 1111111111111111111 11111111111111111111 111111111111111111111 1111111111111111111111 111111111111111111111...
result:
ok good job! (1 test case)
Test #194:
score: 30
Accepted
time: 1ms
memory: 6248kb
input:
1 150 140455
output:
Yes 1 01 011 0111 01111 011111 0111111 01111111 011111111 0111111111 11111111111 111111111111 1111111111111 11111111111111 111111111111111 1111111111111111 11111111111111111 111111111111111111 1111111111111111111 11111111111111111111 111111111111111111111 1111111111111111111111 111111111111111111111...
result:
ok good job! (1 test case)
Test #195:
score: 30
Accepted
time: 0ms
memory: 6280kb
input:
1 150 140554
output:
Yes 1 11 010 0101 01010 010101 0101010 01100101 101010010 1010101001 10101010100 101010101010 1010101010101 10101010101010 101010101010101 1010101010101010 10101010101010101 101010101010101010 1010101010101010101 10101010101010101010 101010101010101010101 1010101010101010101010 101010101010101010101...
result:
ok good job! (1 test case)
Test #196:
score: 30
Accepted
time: 1ms
memory: 7768kb
input:
1 149 77527
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000010 00000000000000101 000000000000001010 0000000000000010101 00000000000000101010 000000000000001010101 0000000000000010101010 000000000000001010101...
result:
ok good job! (1 test case)
Test #197:
score: 30
Accepted
time: 1ms
memory: 6244kb
input:
1 149 123264
output:
Yes 0 00 001 0011 00101 000010 0000101 00001010 000010101 0000101010 00001010101 000010101010 0000101010101 00001010101010 000010101010101 0000101010101010 00001010101010101 000010101010101010 0000101010101010101 00001010101010101010 000010101010101010101 0000101010101010101010 000010101010101010101...
result:
ok good job! (1 test case)
Test #198:
score: 30
Accepted
time: 1ms
memory: 8024kb
input:
1 150 123655
output:
Yes 0 00 000 0001 00011 000010 0000101 00001010 000010101 0000101010 00001010101 000010101010 0000101010101 00001010101010 000010101010101 0000101010101010 00001010101010101 000010101010101010 0000101010101010101 00001010101010101010 000010101010101010101 0000101010101010101010 000010101010101010101...
result:
ok good job! (1 test case)
Test #199:
score: 30
Accepted
time: 1ms
memory: 6372kb
input:
1 150 128371
output:
Yes 0 00 001 0011 00010 000101 0001010 00010101 000101010 0001010101 00010101010 000101010101 0001010101010 00010101010101 000101010101010 0001010101010101 00010101010101010 000101010101010101 0001010101010101010 00010101010101010101 000101010101010101010 0001010101010101010101 000101010101010101010...
result:
ok good job! (1 test case)
Test #200:
score: 30
Accepted
time: 1ms
memory: 8344kb
input:
1 150 124526
output:
Yes 0 00 001 0001 00011 000011 0001010 00010101 000101010 0001010101 00010101010 000101010101 0001010101010 00010101010101 000101010101010 0001010101010101 00010101010101010 000101010101010101 0001010101010101010 00010101010101010101 000101010101010101010 0001010101010101010101 000101010101010101010...
result:
ok good job! (1 test case)
Test #201:
score: 30
Accepted
time: 1ms
memory: 6288kb
input:
1 149 132911
output:
Yes 1 11 101 0010 00101 001010 0010101 00101010 001010101 0010101010 00101010101 001010101010 0010101010101 00101010101010 001010101010101 0010101010101010 00101010101010101 001010101010101010 0010101010101010101 00101010101010101010 001010101010101010101 0010101010101010101010 001010101010101010101...
result:
ok good job! (1 test case)
Test #202:
score: 30
Accepted
time: 1ms
memory: 8336kb
input:
1 149 129426
output:
Yes 0 01 010 0101 01010 000101 0001010 00010101 000101010 0001010101 00010101010 000101010101 0001010101010 00010101010101 000101010101010 0001010101010101 00010101010101010 000101010101010101 0001010101010101010 00010101010101010101 000101010101010101010 0001010101010101010101 000101010101010101010...
result:
ok good job! (1 test case)
Test #203:
score: 30
Accepted
time: 1ms
memory: 6304kb
input:
1 150 108351
output:
Yes 0 00 000 0000 00000 000000 0000001 00000001 000000011 0000000111 00000001111 000000011111 0000000111111 00000001111111 000000011111111 0000000111111111 00000001111111111 000000011111111111 0000000111111111111 00000001111111111111 000000011111111111111 0000000111111111111111 000000011111111111111...
result:
ok good job! (1 test case)
Test #204:
score: 30
Accepted
time: 1ms
memory: 7920kb
input:
1 150 132640
output:
Yes 0 01 011 0010 00101 001010 0010101 00101010 001010101 0010101010 00101010101 001010101010 0010101010101 00101010101010 001010101010101 0010101010101010 00101010101010101 001010101010101010 0010101010101010101 00101010101010101010 001010101010101010101 0010101010101010101010 001010101010101010101...
result:
ok good job! (1 test case)
Test #205:
score: 30
Accepted
time: 1ms
memory: 8332kb
input:
1 150 111366
output:
Yes 0 00 000 0000 00000 000001 0000011 00000110 000001101 0000001010 00000010101 000000101010 0000001010101 00000010101010 000000101010101 0000001010101010 00000010101010101 000000101010101010 0000001010101010101 00000010101010101010 000000101010101010101 0000001010101010101010 000000101010101010101...
result:
ok good job! (1 test case)
Test #206:
score: 30
Accepted
time: 0ms
memory: 6280kb
input:
1 149 135051
output:
Yes 1 11 101 1010 00101 001010 0010101 00101010 001010101 0010101010 00101010101 001010101010 0010101010101 00101010101010 001010101010101 0010101010101010 00101010101010101 001010101010101010 0010101010101010101 00101010101010101010 001010101010101010101 0010101010101010101010 001010101010101010101...
result:
ok good job! (1 test case)
Test #207:
score: 30
Accepted
time: 0ms
memory: 6300kb
input:
1 150 137826
output:
Yes 1 11 010 0101 01010 010101 0101010 01010101 010101010 0101010101 01010101010 010101010101 0101010101010 01010101010101 010101010101010 0101010101010101 01010101010101010 010101010101010101 0101010101010101010 01010101010101010101 010101010101010101010 0101010101010101010101 010101010101010101010...
result:
ok good job! (1 test case)
Test #208:
score: 30
Accepted
time: 1ms
memory: 5752kb
input:
1 149 137827
output:
No
result:
ok good job! (1 test case)
Test #209:
score: 30
Accepted
time: 1ms
memory: 5680kb
input:
1 149 137827
output:
No
result:
ok good job! (1 test case)
Test #210:
score: 30
Accepted
time: 0ms
memory: 5700kb
input:
1 150 140609
output:
No
result:
ok good job! (1 test case)
Test #211:
score: 30
Accepted
time: 1ms
memory: 5688kb
input:
1 150 140608
output:
No
result:
ok good job! (1 test case)
Test #212:
score: 30
Accepted
time: 1ms
memory: 5640kb
input:
1 150 140607
output:
No
result:
ok good job! (1 test case)
Test #213:
score: 30
Accepted
time: 1ms
memory: 6220kb
input:
1 149 379
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #214:
score: 30
Accepted
time: 1ms
memory: 6372kb
input:
1 149 298
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #215:
score: 30
Accepted
time: 1ms
memory: 6284kb
input:
1 150 75
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #216:
score: 30
Accepted
time: 1ms
memory: 6308kb
input:
1 150 129
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #217:
score: 30
Accepted
time: 1ms
memory: 6280kb
input:
1 150 44
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #218:
score: 30
Accepted
time: 1ms
memory: 6248kb
input:
1 149 58042
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000001 00000000000000000000 000000000000000000001 0000000000000000000010 000000000000000000001...
result:
ok good job! (1 test case)
Test #219:
score: 30
Accepted
time: 0ms
memory: 6300kb
input:
1 149 22946
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #220:
score: 30
Accepted
time: 0ms
memory: 6244kb
input:
1 150 21975
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #221:
score: 30
Accepted
time: 1ms
memory: 6244kb
input:
1 150 12279
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #222:
score: 30
Accepted
time: 1ms
memory: 6380kb
input:
1 150 21044
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #223:
score: 30
Accepted
time: 1ms
memory: 6280kb
input:
1 149 3859
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #224:
score: 30
Accepted
time: 0ms
memory: 6276kb
input:
1 149 2822
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #225:
score: 30
Accepted
time: 1ms
memory: 6376kb
input:
1 150 11132
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #226:
score: 30
Accepted
time: 0ms
memory: 6204kb
input:
1 150 2249
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #227:
score: 30
Accepted
time: 0ms
memory: 8312kb
input:
1 150 29569
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #228:
score: 30
Accepted
time: 1ms
memory: 6160kb
input:
5 96 35791 6 0 32 367 13 49 3 1
output:
Yes 0 01 011 0111 01111 011111 0111111 01111111 011111111 0111111111 01111111111 011111111111 0111111111111 01111111111111 011111111111111 0111111111111111 01111111111111111 011111111111111111 0111111111111111111 01111111111111111111 011111111111111111111 0111111111111111111111 011111111111111111111...
result:
ok good job! (5 test cases)
Test #229:
score: 30
Accepted
time: 1ms
memory: 5884kb
input:
5 37 1827 21 52 40 1995 44 1032 7 5
output:
Yes 1 10 000 0001 00100 001010 0010101 00101010 001010101 0010101010 00101010101 001010101010 0010101010101 00101010101010 001010101010101 0010101010101010 00101010101010101 001010101010101010 0010101010101010101 00101010101010101010 010101010100101010101 0101010101010010101010 010101010101010010101...
result:
ok good job! (5 test cases)
Test #230:
score: 30
Accepted
time: 0ms
memory: 6048kb
input:
5 74 4427 43 920 25 422 5 5 3 0
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000001 000000000000011 0000000000000010 00000000000000101 000000000000001010 0000000000000010101 00000000000000101010 000000000000001010101 0000000000000010101010 000000000000001010101...
result:
ok good job! (5 test cases)
Test #231:
score: 30
Accepted
time: 1ms
memory: 6192kb
input:
2 125 56690 24 84
output:
Yes 0 00 000 0000 00000 000000 0000000 00000001 000000000 0000000001 00000000010 000000000101 0000000001010 00000000010101 000000000101010 0000000001010101 00000000010101010 000000000101010101 0000000001010101010 00000000010101010101 000000000101010101010 0000000001010101010101 000000000101010101010...
result:
ok good job! (2 test cases)
Test #232:
score: 30
Accepted
time: 0ms
memory: 7816kb
input:
5 80 19621 46 3138 10 35 8 5 5 1
output:
Yes 0 01 001 0011 00111 001111 0011111 00111111 001111111 0011111111 00111111111 011111111111 0111111111111 01111111111111 011111111111111 0111111111111111 01111111111111111 011111111111111111 0111111111111111111 01111111111111111111 011111111111111111111 0111111111111111111111 011111111111111111111...
result:
ok good job! (5 test cases)
Test #233:
score: 30
Accepted
time: 1ms
memory: 5616kb
input:
1 149 205917
output:
No
result:
ok good job! (1 test case)
Test #234:
score: 30
Accepted
time: 0ms
memory: 6308kb
input:
1 149 91736
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000001 00000000011 000000000001 0000000000010 00000000000101 000000000001010 0000000000010101 00000000000101010 000000000001010101 0000000000010101010 00000000000101010101 000000000001010101010 0000000000010101010101 000000000001010101010...
result:
ok good job! (1 test case)
Test #235:
score: 30
Accepted
time: 0ms
memory: 8340kb
input:
1 150 8430
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #236:
score: 30
Accepted
time: 1ms
memory: 6212kb
input:
1 150 86431
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000001 0000000000011 00000000000011 000000000000111 0000000000001111 00000000000011111 000000000000111111 0000000000001111111 00000000000011111111 000000000000111111111 0000000000001111111111 000000000000111111111...
result:
ok good job! (1 test case)
Test #237:
score: 30
Accepted
time: 1ms
memory: 8012kb
input:
1 150 139998
output:
Yes 1 01 010 0101 01010 010101 0101010 01010101 010101010 0101010101 01010101010 010101010101 0101010101010 01010101010101 010101010101010 0101010101010101 01010101010101010 010101010101010101 0101010101010101010 01010101010101010101 010101010101010101010 0101010101010101010101 010101010101010101010...
result:
ok good job! (1 test case)
Subtask #5:
score: 15
Accepted
Dependency #4:
100%
Accepted
Test #238:
score: 15
Accepted
time: 0ms
memory: 5640kb
input:
1 599 35641099
output:
No
result:
ok good job! (1 test case)
Test #239:
score: 15
Accepted
time: 0ms
memory: 5768kb
input:
1 600 35820200
output:
No
result:
ok good job! (1 test case)
Test #240:
score: 15
Accepted
time: 1ms
memory: 5672kb
input:
1 599 35641097
output:
No
result:
ok good job! (1 test case)
Test #241:
score: 15
Accepted
time: 1ms
memory: 5700kb
input:
1 599 35641098
output:
No
result:
ok good job! (1 test case)
Test #242:
score: 15
Accepted
time: 0ms
memory: 5676kb
input:
1 600 35820198
output:
No
result:
ok good job! (1 test case)
Test #243:
score: 15
Accepted
time: 0ms
memory: 5708kb
input:
1 600 35820199
output:
No
result:
ok good job! (1 test case)
Test #244:
score: 15
Accepted
time: 1ms
memory: 5640kb
input:
1 600 35820200
output:
No
result:
ok good job! (1 test case)
Test #245:
score: 15
Accepted
time: 1ms
memory: 5692kb
input:
1 599 31149736
output:
No
result:
ok good job! (1 test case)
Test #246:
score: 15
Accepted
time: 1ms
memory: 7688kb
input:
1 600 31381017
output:
No
result:
ok good job! (1 test case)
Test #247:
score: 15
Accepted
time: 1ms
memory: 5664kb
input:
92 3 0 3 1 4 0 4 1 4 2 4 3 4 4 5 0 5 1 5 2 5 3 5 4 5 5 5 6 5 7 5 8 5 9 5 10 6 0 6 1 6 2 6 3 6 4 6 5 6 6 6 7 6 8 6 9 6 10 6 11 6 12 6 13 6 14 6 15 6 16 6 17 6 18 6 19 6 20 7 0 7 1 7 2 7 3 7 4 7 5 7 6 7 7 7 8 7 9 7 10 7 11 7 12 7 13 7 14 7 15 7 16 7 17 7 18 7 19 7 20 7 21 7 22 7 23 7 24 7 25 7 26 7 27...
output:
Yes 0 00 Yes 0 10 Yes 0 00 000 Yes 0 00 010 Yes 1 00 010 No No Yes 0 00 000 0000 Yes 0 00 010 0000 Yes 0 01 000 0010 Yes 1 01 000 0010 Yes 0 01 100 0010 Yes 0 01 100 1010 No No No No No Yes 0 00 000 0000 00000 Yes 0 00 000 0010 00000 Yes 0 01 000 0010 00000 Yes 0 01 001 0000 00010 Yes 1 01 001 0000 ...
result:
ok good job! (92 test cases)
Test #248:
score: 15
Accepted
time: 1ms
memory: 5704kb
input:
81 3 0 3 1 4 0 4 1 4 2 5 0 5 1 5 2 5 3 5 4 5 5 6 0 6 1 6 2 6 3 6 4 6 5 6 6 6 7 6 8 7 0 7 1 7 2 7 3 7 4 7 5 7 6 7 7 7 8 7 9 7 10 7 11 7 12 7 13 7 14 8 0 8 1 8 2 8 3 8 4 8 5 8 6 8 7 8 8 8 9 8 10 8 11 8 12 8 13 8 14 8 15 8 16 8 17 8 18 8 19 8 20 9 0 9 1 9 2 9 3 9 4 9 5 9 6 9 7 9 8 9 9 9 10 9 11 9 12 9 ...
output:
Yes 0 00 Yes 0 10 Yes 0 00 000 Yes 0 00 010 Yes 1 00 010 Yes 0 00 000 0000 Yes 0 00 010 0000 Yes 0 01 000 0010 Yes 1 01 000 0010 Yes 0 01 100 0010 Yes 0 01 100 1010 Yes 0 00 000 0000 00000 Yes 0 00 000 0010 00000 Yes 0 01 000 0010 00000 Yes 0 01 001 0000 00010 Yes 1 01 001 0000 00010 Yes 1 00 001 01...
result:
ok good job! (81 test cases)
Test #249:
score: 15
Accepted
time: 6ms
memory: 9096kb
input:
1 599 8955050
output:
Yes 0 01 010 0101 01010 010101 0101010 01010101 010101010 0101010101 01010101010 010101010101 0101010101010 01010101010101 010101010101010 0101010101010101 01010101010101010 010101010101010101 0101010101010101010 01010101010101010101 010101010101010101010 0101010101010101010101 010101010101010101010...
result:
ok good job! (1 test case)
Test #250:
score: 15
Accepted
time: 6ms
memory: 10548kb
input:
1 600 8999900
output:
Yes 1 10 101 1010 10101 101010 1010101 10101010 101010101 1010101010 10101010101 101010101010 1010101010101 10101010101010 101010101010101 1010101010101010 10101010101010101 101010101010101010 1010101010101010101 10101010101010101010 101010101010101010101 1010101010101010101010 101010101010101010101...
result:
ok good job! (1 test case)
Test #251:
score: 15
Accepted
time: 6ms
memory: 9968kb
input:
1 599 8954812
output:
Yes 1 11 001 0010 00101 001010 0010101 00101010 001010101 0010101010 00101010101 001010101010 0010101010101 00101010101010 001010101010101 0010101010101010 00101010101010101 001101001010101010 0101010100101010101 01010101010010101010 010101010101001010101 0101010101010100101010 010101010101010100101...
result:
ok good job! (1 test case)
Test #252:
score: 15
Accepted
time: 6ms
memory: 9012kb
input:
1 599 8954621
output:
Yes 1 11 001 0010 00101 001010 0010101 00101010 001010101 0010101010 00101010101 001010101010 0010101010101 00101010101010 001010101010101 0010101010101010 00101010101010101 001010101010101010 0010101010101010101 00101010101010101010 001010101010101010101 0010101010101010101010 001010101010101010101...
result:
ok good job! (1 test case)
Test #253:
score: 15
Accepted
time: 3ms
memory: 8860kb
input:
1 600 8998543
output:
Yes 1 11 010 0101 01010 010101 0101010 01010101 010101010 0101010101 01010101010 010101010101 0101010101010 01010101010101 010101010101010 0101010101010101 01010101010101010 010101010101010101 0101010101010101010 01010101010101010101 010101010101010101010 0101010101010101010101 010101010101010101010...
result:
ok good job! (1 test case)
Test #254:
score: 15
Accepted
time: 6ms
memory: 10192kb
input:
1 600 8999826
output:
Yes 1 01 010 0101 01010 010101 0101010 01010101 010101010 1010010101 10101001010 101010100101 1010101010010 10101010101001 101010101010100 1010101010101010 10101010101010101 101010101010101010 1010101010101010101 10101010101010101010 101010101010101010101 1010101010101010101010 101010101010101010101...
result:
ok good job! (1 test case)
Test #255:
score: 15
Accepted
time: 6ms
memory: 8576kb
input:
1 600 8999510
output:
Yes 1 11 110 0101 01010 010101 0101010 01010101 010101010 0101010101 01010101010 010101010101 0101010101010 01010101010101 010101010101010 0101010101010101 01010101010101010 010101010101010101 0101010101010101010 01010101010101010101 010101010101010101010 0110100101010101010101 101010100101010101010...
result:
ok good job! (1 test case)
Test #256:
score: 15
Accepted
time: 3ms
memory: 10480kb
input:
1 599 8345787
output:
Yes 0 00 000 0000 00000 000000 0000001 00000011 000000100 0000001001 00000000010 000000000101 0000000001010 00000000010101 000000000101010 0000000001010101 00000000010101010 000000000101010101 0000000001010101010 00000000010101010101 000000000101010101010 0000000001010101010101 000000000101010101010...
result:
ok good job! (1 test case)
Test #257:
score: 15
Accepted
time: 6ms
memory: 8508kb
input:
1 599 8722378
output:
Yes 0 00 001 0011 00001 000010 0000101 00001010 000010101 0000101010 00001010101 000010101010 0000101010101 00001010101010 000010101010101 0000101010101010 00001010101010101 000010101010101010 0000101010101010101 00001010101010101010 000010101010101010101 0000101010101010101010 000010101010101010101...
result:
ok good job! (1 test case)
Test #258:
score: 15
Accepted
time: 6ms
memory: 8520kb
input:
1 600 8782693
output:
Yes 0 00 001 0011 00011 000111 0001111 00011111 000111111 0001111111 00011111111 000111111111 0001111111111 00011111111111 000111111111111 0001111111111111 00011111111111111 000111111111111111 0001111111111111111 00011111111111111111 000111111111111111111 0001111111111111111111 000111111111111111111...
result:
ok good job! (1 test case)
Test #259:
score: 15
Accepted
time: 6ms
memory: 9124kb
input:
1 600 8889455
output:
Yes 0 01 011 0011 00111 001111 0011111 00111111 001111111 0011111111 00111111111 001111111111 0011111111111 00111111111111 001111111111111 0011111111111111 00111111111111111 001111111111111111 0011111111111111111 00111111111111111111 001111111111111111111 0011111111111111111111 001111111111111111111...
result:
ok good job! (1 test case)
Test #260:
score: 15
Accepted
time: 6ms
memory: 10220kb
input:
1 600 8643126
output:
Yes 0 00 000 0000 00001 000001 0000010 00000101 000001010 0000010101 00000101010 000001010101 0000010101010 00000101010101 000001010101010 0000010101010101 00000101010101010 000001010101010101 0000010101010101010 00000101010101010101 000001010101010101010 0000010101010101010101 000001010101010101010...
result:
ok good job! (1 test case)
Test #261:
score: 15
Accepted
time: 6ms
memory: 10332kb
input:
1 599 7287746
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000001 000000000000000000011 0000000000000000000111 000000000000000000010...
result:
ok good job! (1 test case)
Test #262:
score: 15
Accepted
time: 6ms
memory: 9976kb
input:
1 599 8113340
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000001 00000000011 000000000111 0000000000010 00000000000101 000000000001010 0000000000010101 00000000000101010 000000000001010101 0000000000010101010 00000000000101010101 000000000001010101010 0000000000010101010101 000000000001010101010...
result:
ok good job! (1 test case)
Test #263:
score: 15
Accepted
time: 6ms
memory: 10356kb
input:
1 600 6980363
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #264:
score: 15
Accepted
time: 6ms
memory: 9384kb
input:
1 600 6932760
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #265:
score: 15
Accepted
time: 6ms
memory: 9360kb
input:
1 600 8996064
output:
Yes 1 11 010 0101 01010 010101 0101010 01010101 010101010 0101010101 01010101010 010101010101 0101010101010 01010101010101 010101010101010 0101010101010101 01010101010101010 010101010101010101 0101010101010101010 01010101010101010101 010101010101010101010 0101010101010101010101 010101010101010101010...
result:
ok good job! (1 test case)
Test #266:
score: 15
Accepted
time: 6ms
memory: 10256kb
input:
1 599 8910201
output:
Yes 1 11 001 0010 00101 001010 0010101 00101010 001010101 0010101010 00101010101 001010101010 0010101010101 00101010101010 001010101010101 0010101010101010 00101010101010101 001010101010101010 0010101010101010101 00101010101010101010 001010101010101010101 0010101010101010101010 001010101010101010101...
result:
ok good job! (1 test case)
Test #267:
score: 15
Accepted
time: 6ms
memory: 8880kb
input:
1 600 8955051
output:
Yes 1 11 011 0111 01111 011111 0111111 01111111 011111111 0111111111 01111111111 011111111111 0111111111111 01111111111111 011111111111111 0111111111111111 01111111111111111 011111111111111111 0111111111111111111 01111111111111111111 011111111111111111111 0111111111111111111111 011111111111111111111...
result:
ok good job! (1 test case)
Test #268:
score: 15
Accepted
time: 1ms
memory: 5688kb
input:
1 599 8955056
output:
No
result:
ok good job! (1 test case)
Test #269:
score: 15
Accepted
time: 1ms
memory: 5772kb
input:
1 599 8955056
output:
No
result:
ok good job! (1 test case)
Test #270:
score: 15
Accepted
time: 1ms
memory: 5608kb
input:
1 600 8999908
output:
No
result:
ok good job! (1 test case)
Test #271:
score: 15
Accepted
time: 1ms
memory: 5636kb
input:
1 600 8999908
output:
No
result:
ok good job! (1 test case)
Test #272:
score: 15
Accepted
time: 1ms
memory: 5680kb
input:
1 600 8999904
output:
No
result:
ok good job! (1 test case)
Test #273:
score: 15
Accepted
time: 6ms
memory: 8580kb
input:
1 599 992
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #274:
score: 15
Accepted
time: 6ms
memory: 9352kb
input:
1 599 337
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #275:
score: 15
Accepted
time: 6ms
memory: 10096kb
input:
1 600 1774
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #276:
score: 15
Accepted
time: 6ms
memory: 10532kb
input:
1 600 275
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #277:
score: 15
Accepted
time: 3ms
memory: 9312kb
input:
1 600 102
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #278:
score: 15
Accepted
time: 6ms
memory: 9156kb
input:
1 599 355600
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #279:
score: 15
Accepted
time: 3ms
memory: 10340kb
input:
1 599 475943
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #280:
score: 15
Accepted
time: 6ms
memory: 9096kb
input:
1 600 120574
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #281:
score: 15
Accepted
time: 3ms
memory: 9008kb
input:
1 600 167075
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #282:
score: 15
Accepted
time: 3ms
memory: 9908kb
input:
1 600 302502
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #283:
score: 15
Accepted
time: 6ms
memory: 10080kb
input:
1 599 2048448
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #284:
score: 15
Accepted
time: 7ms
memory: 10100kb
input:
1 599 960012
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #285:
score: 15
Accepted
time: 6ms
memory: 8692kb
input:
1 600 141777
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #286:
score: 15
Accepted
time: 6ms
memory: 10176kb
input:
1 600 1243588
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #287:
score: 15
Accepted
time: 6ms
memory: 9972kb
input:
1 600 487443
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #288:
score: 15
Accepted
time: 2ms
memory: 6504kb
input:
6 74 16212 201 158009 162 66397 47 1639 112 49261 4 2
output:
Yes 1 11 110 0101 01010 010101 0101010 01010101 010101010 0101010101 01010101010 010101010101 0101010101010 01010101010101 010101010101010 0101010101010101 01010101010101010 010101010101010101 0101010101010101010 01010101010101010101 010101010101010101010 0101010101010101010101 010101010101010101010...
result:
ok good job! (6 test cases)
Test #289:
score: 15
Accepted
time: 0ms
memory: 9820kb
input:
5 529 4771609 21 288 42 2532 5 0 3 1
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000001 000000000000000000000...
result:
ok good job! (5 test cases)
Test #290:
score: 15
Accepted
time: 4ms
memory: 8656kb
input:
9 481 2328203 26 209 27 95 12 7 13 41 23 129 9 25 6 2 3 0
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (9 test cases)
Test #291:
score: 15
Accepted
time: 5ms
memory: 9816kb
input:
5 552 4970748 9 15 16 122 14 105 8 12
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (5 test cases)
Test #292:
score: 15
Accepted
time: 2ms
memory: 7948kb
input:
7 222 86559 159 151626 166 15153 25 610 4 2 17 184 7 7
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (7 test cases)
Test #293:
score: 15
Accepted
time: 3ms
memory: 9444kb
input:
1 599 3698652
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #294:
score: 15
Accepted
time: 3ms
memory: 10344kb
input:
1 599 2692237
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #295:
score: 15
Accepted
time: 0ms
memory: 10304kb
input:
1 600 2516897
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #296:
score: 15
Accepted
time: 6ms
memory: 9024kb
input:
1 600 2315976
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #297:
score: 15
Accepted
time: 3ms
memory: 9796kb
input:
1 600 969595
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Subtask #6:
score: 23
Accepted
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Dependency #3:
100%
Accepted
Dependency #4:
100%
Accepted
Dependency #5:
100%
Accepted
Test #298:
score: 23
Accepted
time: 2ms
memory: 5760kb
input:
379 3 0 3 1 4 0 4 1 4 2 5 0 5 1 5 2 5 3 5 4 6 0 6 1 6 2 6 3 6 4 6 5 6 6 7 0 7 1 7 2 7 3 7 4 7 5 7 6 7 7 7 8 7 9 8 0 8 1 8 2 8 3 8 4 8 5 8 6 8 7 8 8 8 9 8 10 8 11 8 12 9 0 9 1 9 2 9 3 9 4 9 5 9 6 9 7 9 8 9 9 9 10 9 11 9 12 9 13 9 14 9 15 9 16 10 0 10 1 10 2 10 3 10 4 10 5 10 6 10 7 10 8 10 9 10 10 10...
output:
Yes 0 00 Yes 0 10 Yes 0 00 000 Yes 0 00 010 Yes 1 00 010 Yes 0 00 000 0000 Yes 0 00 010 0000 Yes 0 01 000 0010 Yes 1 01 000 0010 Yes 0 01 100 0010 Yes 0 00 000 0000 00000 Yes 0 00 000 0010 00000 Yes 0 01 000 0010 00000 Yes 0 01 001 0000 00010 Yes 1 01 001 0000 00010 Yes 1 00 001 0100 00010 Yes 0 10 ...
result:
ok good job! (379 test cases)
Test #299:
score: 23
Accepted
time: 217ms
memory: 25920kb
input:
10 4017 2564275 484 28572 129 402 192 3351 113 188 31 98 11 4 4 2 4 1 13 2
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (10 test cases)
Test #300:
score: 23
Accepted
time: 83ms
memory: 17064kb
input:
12 2006 756194 319 10305 479 35228 1295 125738 12 4 427 11376 111 1348 303 17209 39 52 3 0 3 1 3 0
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (12 test cases)
Test #301:
score: 23
Accepted
time: 143ms
memory: 20552kb
input:
9 3004 1215321 1223 238579 259 4165 424 33877 25 6 38 170 7 6 12 9 8 1
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (9 test cases)
Test #302:
score: 23
Accepted
time: 1ms
memory: 5788kb
input:
1 6 3
output:
Yes 0 01 001 0000 00010
result:
ok good job! (1 test case)
Test #303:
score: 23
Accepted
time: 1ms
memory: 5632kb
input:
1 7 4
output:
Yes 0 00 001 0100 00010 000000
result:
ok good job! (1 test case)
Test #304:
score: 23
Accepted
time: 1ms
memory: 5752kb
input:
1 19 37
output:
Yes 0 00 000 0000 00000 000010 0000001 00000010 000001001 0000010100 00000101010 000000010101 0000001010100 00000000000010 000000000000000 0000000000000000 00000000000000000 000000000000000000
result:
ok good job! (1 test case)
Test #305:
score: 23
Accepted
time: 0ms
memory: 5680kb
input:
1 20 90
output:
Yes 0 00 000 0001 00001 000010 0000101 00001010 000101001 0000010100 00000101010 000001010101 0000010101010 00001010101001 000000101010100 0000000000001010 00000000000000000 000000000000000000 0000000000000000000
result:
ok good job! (1 test case)
Test #306:
score: 23
Accepted
time: 1ms
memory: 8144kb
input:
1 149 1610
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #307:
score: 23
Accepted
time: 1ms
memory: 8008kb
input:
1 150 895
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #308:
score: 23
Accepted
time: 6ms
memory: 9052kb
input:
1 599 83482
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #309:
score: 23
Accepted
time: 7ms
memory: 9232kb
input:
1 600 23667
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #310:
score: 23
Accepted
time: 341ms
memory: 29896kb
input:
1 4999 3217919
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #311:
score: 23
Accepted
time: 344ms
memory: 28780kb
input:
1 4999 3832640
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #312:
score: 23
Accepted
time: 344ms
memory: 30212kb
input:
1 5000 980053
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #313:
score: 23
Accepted
time: 336ms
memory: 29252kb
input:
1 5000 1846859
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #314:
score: 23
Accepted
time: 338ms
memory: 29356kb
input:
1 5000 4406415
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #315:
score: 23
Accepted
time: 1ms
memory: 7828kb
input:
1 4 2
output:
Yes 1 00 010
result:
ok good job! (1 test case)
Test #316:
score: 23
Accepted
time: 1ms
memory: 5720kb
input:
1 5 4
output:
Yes 0 01 100 0010
result:
ok good job! (1 test case)
Test #317:
score: 23
Accepted
time: 1ms
memory: 5628kb
input:
1 6 6
output:
Yes 0 10 001 0100 00010
result:
ok good job! (1 test case)
Test #318:
score: 23
Accepted
time: 1ms
memory: 5724kb
input:
1 7 9
output:
Yes 1 00 010 0101 00100 000010
result:
ok good job! (1 test case)
Test #319:
score: 23
Accepted
time: 1ms
memory: 5756kb
input:
1 19 81
output:
Yes 0 00 000 0001 00000 000001 0000100 00001010 000010101 0000101010 00001010101 000101010010 0001010101001 00000101010100 000000000101010 0000000000000000 00000000000000000 000000000000000000
result:
ok good job! (1 test case)
Test #320:
score: 23
Accepted
time: 1ms
memory: 5764kb
input:
1 20 90
output:
Yes 0 00 000 0001 00001 000010 0000101 00001010 000101001 0000010100 00000101010 000001010101 0000010101010 00001010101001 000000101010100 0000000000001010 00000000000000000 000000000000000000 0000000000000000000
result:
ok good job! (1 test case)
Test #321:
score: 23
Accepted
time: 1ms
memory: 6280kb
input:
1 149 5476
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #322:
score: 23
Accepted
time: 1ms
memory: 6288kb
input:
1 150 5550
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #323:
score: 23
Accepted
time: 6ms
memory: 8952kb
input:
1 599 89401
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #324:
score: 23
Accepted
time: 6ms
memory: 8916kb
input:
1 600 89700
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #325:
score: 23
Accepted
time: 332ms
memory: 28776kb
input:
1 4999 6245001
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #326:
score: 23
Accepted
time: 338ms
memory: 28720kb
input:
1 5000 6247500
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #327:
score: 23
Accepted
time: 1ms
memory: 5628kb
input:
1 4 0
output:
Yes 0 00 000
result:
ok good job! (1 test case)
Test #328:
score: 23
Accepted
time: 1ms
memory: 5696kb
input:
1 5 2
output:
Yes 0 01 000 0010
result:
ok good job! (1 test case)
Test #329:
score: 23
Accepted
time: 1ms
memory: 5652kb
input:
1 6 3
output:
Yes 0 01 001 0000 00010
result:
ok good job! (1 test case)
Test #330:
score: 23
Accepted
time: 1ms
memory: 5728kb
input:
1 7 5
output:
Yes 0 00 001 0100 01010 000000
result:
ok good job! (1 test case)
Test #331:
score: 23
Accepted
time: 1ms
memory: 5676kb
input:
1 19 76
output:
Yes 0 00 000 0001 00010 000101 0000010 00001010 000010101 0000101010 00001010101 000001010010 0000010101001 00000001010100 000000000101010 0000000000000000 00000000000000000 000000000000000000
result:
ok good job! (1 test case)
Test #332:
score: 23
Accepted
time: 1ms
memory: 5824kb
input:
1 20 85
output:
Yes 0 00 000 0001 00001 000011 0001111 00001101 000000101 0000001100 00000011010 000000110101 0000010101010 00000101101001 000000001010100 0000000000001010 00000000000000000 000000000000000000 0000000000000000000
result:
ok good job! (1 test case)
Test #333:
score: 23
Accepted
time: 1ms
memory: 6296kb
input:
1 149 5475
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #334:
score: 23
Accepted
time: 1ms
memory: 6216kb
input:
1 150 5547
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #335:
score: 23
Accepted
time: 6ms
memory: 9916kb
input:
1 599 89399
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #336:
score: 23
Accepted
time: 3ms
memory: 10476kb
input:
1 600 89699
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #337:
score: 23
Accepted
time: 341ms
memory: 28996kb
input:
1 4999 6244996
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #338:
score: 23
Accepted
time: 325ms
memory: 29060kb
input:
1 4999 6244998
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #339:
score: 23
Accepted
time: 330ms
memory: 28988kb
input:
1 5000 6247496
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #340:
score: 23
Accepted
time: 332ms
memory: 29804kb
input:
1 5000 6247496
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #341:
score: 23
Accepted
time: 0ms
memory: 5692kb
input:
1 4999 20808342499
output:
No
result:
ok good job! (1 test case)
Test #342:
score: 23
Accepted
time: 1ms
memory: 5640kb
input:
1 5000 20820835000
output:
No
result:
ok good job! (1 test case)
Test #343:
score: 23
Accepted
time: 0ms
memory: 5692kb
input:
1 4999 20808342499
output:
No
result:
ok good job! (1 test case)
Test #344:
score: 23
Accepted
time: 1ms
memory: 5772kb
input:
1 4999 20808342498
output:
No
result:
ok good job! (1 test case)
Test #345:
score: 23
Accepted
time: 0ms
memory: 5636kb
input:
1 4999 20808342499
output:
No
result:
ok good job! (1 test case)
Test #346:
score: 23
Accepted
time: 0ms
memory: 5688kb
input:
1 5000 20820834999
output:
No
result:
ok good job! (1 test case)
Test #347:
score: 23
Accepted
time: 1ms
memory: 5676kb
input:
1 5000 20820834999
output:
No
result:
ok good job! (1 test case)
Test #348:
score: 23
Accepted
time: 1ms
memory: 5680kb
input:
1 5000 20820835000
output:
No
result:
ok good job! (1 test case)
Test #349:
score: 23
Accepted
time: 1ms
memory: 5764kb
input:
1 5000 20820834999
output:
No
result:
ok good job! (1 test case)
Test #350:
score: 23
Accepted
time: 1ms
memory: 5668kb
input:
1 5000 20820834999
output:
No
result:
ok good job! (1 test case)
Test #351:
score: 23
Accepted
time: 1ms
memory: 5648kb
input:
1 4999 18290677170
output:
No
result:
ok good job! (1 test case)
Test #352:
score: 23
Accepted
time: 1ms
memory: 5696kb
input:
1 5000 18277696017
output:
No
result:
ok good job! (1 test case)
Test #353:
score: 23
Accepted
time: 1ms
memory: 5724kb
input:
527 3 0 3 1 4 0 4 1 4 2 4 3 4 4 5 0 5 1 5 2 5 3 5 4 5 5 5 6 5 7 5 8 5 9 5 10 6 0 6 1 6 2 6 3 6 4 6 5 6 6 6 7 6 8 6 9 6 10 6 11 6 12 6 13 6 14 6 15 6 16 6 17 6 18 6 19 6 20 7 0 7 1 7 2 7 3 7 4 7 5 7 6 7 7 7 8 7 9 7 10 7 11 7 12 7 13 7 14 7 15 7 16 7 17 7 18 7 19 7 20 7 21 7 22 7 23 7 24 7 25 7 26 7 2...
output:
Yes 0 00 Yes 0 10 Yes 0 00 000 Yes 0 00 010 Yes 1 00 010 No No Yes 0 00 000 0000 Yes 0 00 010 0000 Yes 0 01 000 0010 Yes 1 01 000 0010 Yes 0 01 100 0010 Yes 0 01 100 1010 No No No No No Yes 0 00 000 0000 00000 Yes 0 00 000 0010 00000 Yes 0 01 000 0010 00000 Yes 0 01 001 0000 00010 Yes 1 01 001 0000 ...
result:
ok good job! (527 test cases)
Test #354:
score: 23
Accepted
time: 1ms
memory: 5760kb
input:
437 3 0 3 1 4 0 4 1 4 2 5 0 5 1 5 2 5 3 5 4 5 5 6 0 6 1 6 2 6 3 6 4 6 5 6 6 6 7 6 8 7 0 7 1 7 2 7 3 7 4 7 5 7 6 7 7 7 8 7 9 7 10 7 11 7 12 7 13 7 14 8 0 8 1 8 2 8 3 8 4 8 5 8 6 8 7 8 8 8 9 8 10 8 11 8 12 8 13 8 14 8 15 8 16 8 17 8 18 8 19 8 20 9 0 9 1 9 2 9 3 9 4 9 5 9 6 9 7 9 8 9 9 9 10 9 11 9 12 9...
output:
Yes 0 00 Yes 0 10 Yes 0 00 000 Yes 0 00 010 Yes 1 00 010 Yes 0 00 000 0000 Yes 0 00 010 0000 Yes 0 01 000 0010 Yes 1 01 000 0010 Yes 0 01 100 0010 Yes 0 01 100 1010 Yes 0 00 000 0000 00000 Yes 0 00 000 0010 00000 Yes 0 01 000 0010 00000 Yes 0 01 001 0000 00010 Yes 1 01 001 0000 00010 Yes 1 00 001 01...
result:
ok good job! (437 test cases)
Test #355:
score: 23
Accepted
time: 327ms
memory: 29592kb
input:
1 4999 5205208750
output:
Yes 0 01 010 0101 01010 010101 0101010 01010101 010101010 0101010101 01010101010 010101010101 0101010101010 01010101010101 010101010101010 0101010101010101 01010101010101010 010101010101010101 0101010101010101010 01010101010101010101 010101010101010101010 0101010101010101010101 010101010101010101010...
result:
ok good job! (1 test case)
Test #356:
score: 23
Accepted
time: 320ms
memory: 30240kb
input:
1 5000 5208332500
output:
Yes 1 10 101 1010 10101 101010 1010101 10101010 101010101 1010101010 10101010101 101010101010 1010101010101 10101010101010 101010101010101 1010101010101010 10101010101010101 101010101010101010 1010101010101010101 10101010101010101010 101010101010101010101 1010101010101010101010 101010101010101010101...
result:
ok good job! (1 test case)
Test #357:
score: 23
Accepted
time: 326ms
memory: 29656kb
input:
1 4999 5205204564
output:
Yes 1 11 001 0010 00101 001010 0010101 00101010 001010101 0010101010 00101010101 001010101010 0010101010101 00101010101010 001010101010101 0010101010101010 00101010101010101 001010101010101010 0010101010101010101 00101010101010101010 001010101010101010101 0010101010101010101010 001010101010101010101...
result:
ok good job! (1 test case)
Test #358:
score: 23
Accepted
time: 307ms
memory: 28944kb
input:
1 4999 5205207651
output:
Yes 1 10 001 0010 00101 001010 0010101 00101010 001010101 0010101010 00101010101 001010101010 0010101010101 00101010101010 001010101010101 0010101010101010 00101010101010101 001010101010101010 0010101010101010101 00101010101010101010 001010101010101010101 0010101010101010101010 001010101010101010101...
result:
ok good job! (1 test case)
Test #359:
score: 23
Accepted
time: 334ms
memory: 28780kb
input:
1 4999 5205206252
output:
Yes 1 11 001 0010 00101 001010 0010101 00101010 001010101 0010101010 00101010101 001010101010 0010101010101 00101010101010 001010101010101 0010101010101010 00101010101010101 001010101010101010 0010101010101010101 00101010101010101010 001010101010101010101 0010101010101010101010 001010101010101010101...
result:
ok good job! (1 test case)
Test #360:
score: 23
Accepted
time: 334ms
memory: 28440kb
input:
1 5000 5208325001
output:
Yes 1 11 010 0101 01010 010101 0101010 01010101 010101010 0101010101 01010101010 010101010101 0101010101010 01010101010101 010101010101010 0101010101010101 01010101010101010 010101010101010101 0101010101010101010 01010101010101010101 010101010101010101010 0101010101010101010101 010101010101010101010...
result:
ok good job! (1 test case)
Test #361:
score: 23
Accepted
time: 310ms
memory: 28624kb
input:
1 5000 5208329137
output:
Yes 1 01 011 0111 01111 011111 0111111 01111111 011111111 0111111111 01111111111 011111111111 0111111111111 01111111111111 011111111111111 0111111111111111 01111111111111111 011111111111111111 0111111111111111111 01111111111111111111 011111111111111111111 0111111111111111111111 011111111111111111111...
result:
ok good job! (1 test case)
Test #362:
score: 23
Accepted
time: 316ms
memory: 28856kb
input:
1 5000 5208324886
output:
Yes 1 01 010 0101 01010 010101 0101010 01010101 010101010 0101010101 01010101010 010101010101 0101010101010 01010101010101 010101010101010 0101010101010101 01010101010101010 010101010101010101 0101010101010101010 01010101010101010101 010101010101010101010 0101010101010101010101 010101010101010101010...
result:
ok good job! (1 test case)
Test #363:
score: 23
Accepted
time: 324ms
memory: 30116kb
input:
1 5000 5208321567
output:
Yes 1 01 011 0111 01111 011111 0111111 01111111 011111111 0111111111 01111111111 011111111111 0111111111111 01111111111111 011111111111111 0111111111111111 01111111111111111 011111111111111111 0111111111111111111 01111111111111111111 011111111111111111111 0111111111111111111111 011111111111111111111...
result:
ok good job! (1 test case)
Test #364:
score: 23
Accepted
time: 329ms
memory: 28580kb
input:
1 5000 5208332281
output:
Yes 1 11 011 0111 01111 011111 0111111 01111111 011111111 0111111111 01111111111 011111111111 0111111111111 01111111111111 111111111111111 1111111111111111 11111111111111111 111111111111111111 1111111111111111111 11111111111111111111 111111111111111111111 1111111111111111111111 111111111111111111111...
result:
ok good job! (1 test case)
Test #365:
score: 23
Accepted
time: 328ms
memory: 30236kb
input:
1 4999 5135965230
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000001 0000000000011 00000000000001 000000000000010 0000000000000101 00000000000001010 000000000000010101 0000000000000101010 00000000000001010101 000000000000010101010 0000000000000101010101 000000000000010101010...
result:
ok good job! (1 test case)
Test #366:
score: 23
Accepted
time: 315ms
memory: 28324kb
input:
1 4999 5204297521
output:
Yes 1 11 111 1110 00101 001010 0010101 00101010 001010101 0010101010 00101010101 001010101010 0010101010101 00101010101010 001010101010101 0010101010101010 00101010101010101 001010101010101010 0010101010101010101 00101010101010101010 001010101010101010101 0010101010101010101010 001010101010101010101...
result:
ok good job! (1 test case)
Test #367:
score: 23
Accepted
time: 333ms
memory: 28764kb
input:
1 4999 5183922040
output:
Yes 0 00 000 0001 00010 000101 0001010 00000101 000001010 0000010101 00000101010 000001010101 0000010101010 00000101010101 000001010101010 0000010101010101 00000101010101010 000001010101010101 0000010101010101010 00000101010101010101 000001010101010101010 0000010101010101010101 000001010101010101010...
result:
ok good job! (1 test case)
Test #368:
score: 23
Accepted
time: 317ms
memory: 29600kb
input:
1 5000 5155967728
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000001 0000000011 00000000010 000000000101 0000000001010 00000000010101 000000000101010 0000000001010101 00000000010101010 000000000101010101 0000000001010101010 00000000010101010101 000000000101010101010 0000000001010101010101 000000000101010101010...
result:
ok good job! (1 test case)
Test #369:
score: 23
Accepted
time: 325ms
memory: 29716kb
input:
1 5000 5187380758
output:
Yes 0 00 000 0001 00011 000110 0001101 00001010 000010101 0000101010 00001010101 000010101010 0000101010101 00001010101010 000010101010101 0000101010101010 00001010101010101 000010101010101010 0000101010101010101 00001010101010101010 000010101010101010101 0000101010101010101010 000010101010101010101...
result:
ok good job! (1 test case)
Test #370:
score: 23
Accepted
time: 323ms
memory: 29508kb
input:
1 5000 5194844191
output:
Yes 0 00 001 0011 00111 000111 0001111 00011111 000111111 0001111111 00011111111 000111111111 0001111111111 00011111111111 000111111111111 0001111111111111 00011111111111111 000111111111111111 0001111111111111111 00011111111111111111 000111111111111111111 0001111111111111111111 000111111111111111111...
result:
ok good job! (1 test case)
Test #371:
score: 23
Accepted
time: 340ms
memory: 28300kb
input:
1 5000 5181277861
output:
Yes 0 00 000 0000 00001 000001 0000011 00000111 000001111 0000011111 00000111111 000001111111 0000011111111 00000111111111 000001111111111 0000011111111111 00000111111111111 000001111111111111 0000011111111111111 00000111111111111111 000001111111111111111 0000011111111111111111 000001111111111111111...
result:
ok good job! (1 test case)
Test #372:
score: 23
Accepted
time: 330ms
memory: 29800kb
input:
1 5000 5162060211
output:
Yes 0 00 000 0000 00000 000000 0000000 00000001 000000011 0000000111 00000000111 000000001111 0000000011111 00000000111111 000000001111111 0000000011111111 00000000111111111 000000001111111111 0000000011111111111 00000000111111111111 000000001111111111111 0000000011111111111111 000000001111111111111...
result:
ok good job! (1 test case)
Test #373:
score: 23
Accepted
time: 327ms
memory: 29652kb
input:
1 4999 4069506833
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #374:
score: 23
Accepted
time: 312ms
memory: 29420kb
input:
1 4999 4300556425
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #375:
score: 23
Accepted
time: 333ms
memory: 28564kb
input:
1 4999 4348897699
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #376:
score: 23
Accepted
time: 325ms
memory: 29984kb
input:
1 5000 5030666205
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #377:
score: 23
Accepted
time: 325ms
memory: 29872kb
input:
1 5000 4693049796
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #378:
score: 23
Accepted
time: 312ms
memory: 29336kb
input:
1 5000 4571580553
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #379:
score: 23
Accepted
time: 340ms
memory: 29900kb
input:
1 5000 4914362477
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #380:
score: 23
Accepted
time: 329ms
memory: 28972kb
input:
1 5000 4287851573
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #381:
score: 23
Accepted
time: 312ms
memory: 28748kb
input:
1 4999 5202085001
output:
Yes 1 11 001 0010 00101 001010 0010101 00101010 001010101 0010101010 00101010101 001010101010 0010101010101 00101010101010 001010101010101 0010101010101010 00101010101010101 001010101010101010 0010101010101010101 00101010101010101010 001010101010101010101 0010101010101010101010 001010101010101010101...
result:
ok good job! (1 test case)
Test #382:
score: 23
Accepted
time: 326ms
memory: 29724kb
input:
1 5000 5205208751
output:
Yes 1 11 111 0101 01010 010101 0101010 01010101 010101010 0101010101 01010101010 010101010101 0101010101010 01010101010101 010101010101010 0101010101010101 01010101010101010 010101010101010101 0101010101010101010 01010101010101010101 010101010101010101010 0101010101010101010101 010101010101010101010...
result:
ok good job! (1 test case)
Test #383:
score: 23
Accepted
time: 1ms
memory: 5732kb
input:
1 4999 5205208752
output:
No
result:
ok good job! (1 test case)
Test #384:
score: 23
Accepted
time: 1ms
memory: 7608kb
input:
1 4999 5205208757
output:
No
result:
ok good job! (1 test case)
Test #385:
score: 23
Accepted
time: 1ms
memory: 5732kb
input:
1 4999 5205208758
output:
No
result:
ok good job! (1 test case)
Test #386:
score: 23
Accepted
time: 1ms
memory: 5644kb
input:
1 5000 5208332508
output:
No
result:
ok good job! (1 test case)
Test #387:
score: 23
Accepted
time: 1ms
memory: 5616kb
input:
1 5000 5208332507
output:
No
result:
ok good job! (1 test case)
Test #388:
score: 23
Accepted
time: 1ms
memory: 5764kb
input:
1 5000 5208332502
output:
No
result:
ok good job! (1 test case)
Test #389:
score: 23
Accepted
time: 1ms
memory: 5676kb
input:
1 5000 5208332509
output:
No
result:
ok good job! (1 test case)
Test #390:
score: 23
Accepted
time: 1ms
memory: 5640kb
input:
1 5000 5208332506
output:
No
result:
ok good job! (1 test case)
Test #391:
score: 23
Accepted
time: 343ms
memory: 30236kb
input:
1 4999 4509
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #392:
score: 23
Accepted
time: 334ms
memory: 28260kb
input:
1 4999 1108
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #393:
score: 23
Accepted
time: 341ms
memory: 30176kb
input:
1 4999 2694
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #394:
score: 23
Accepted
time: 337ms
memory: 28668kb
input:
1 5000 3247
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #395:
score: 23
Accepted
time: 330ms
memory: 29272kb
input:
1 5000 251
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #396:
score: 23
Accepted
time: 355ms
memory: 30108kb
input:
1 5000 7242
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #397:
score: 23
Accepted
time: 350ms
memory: 28884kb
input:
1 5000 13031
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #398:
score: 23
Accepted
time: 339ms
memory: 28160kb
input:
1 5000 5260
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #399:
score: 23
Accepted
time: 356ms
memory: 28784kb
input:
1 4999 72889929
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #400:
score: 23
Accepted
time: 346ms
memory: 29728kb
input:
1 4999 21771753
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #401:
score: 23
Accepted
time: 334ms
memory: 30268kb
input:
1 4999 24307832
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #402:
score: 23
Accepted
time: 351ms
memory: 28764kb
input:
1 5000 11643247
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #403:
score: 23
Accepted
time: 334ms
memory: 29424kb
input:
1 5000 9670251
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #404:
score: 23
Accepted
time: 332ms
memory: 29416kb
input:
1 5000 34307242
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #405:
score: 23
Accepted
time: 338ms
memory: 29612kb
input:
1 5000 43678031
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #406:
score: 23
Accepted
time: 348ms
memory: 29096kb
input:
1 5000 33625260
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #407:
score: 23
Accepted
time: 329ms
memory: 28296kb
input:
1 4999 153346012
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #408:
score: 23
Accepted
time: 333ms
memory: 29708kb
input:
1 4999 1206175180
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #409:
score: 23
Accepted
time: 337ms
memory: 28464kb
input:
1 4999 709629300
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #410:
score: 23
Accepted
time: 336ms
memory: 29324kb
input:
1 5000 1005829742
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #411:
score: 23
Accepted
time: 331ms
memory: 28856kb
input:
1 5000 1224201505
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #412:
score: 23
Accepted
time: 336ms
memory: 29480kb
input:
1 5000 925455260
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #413:
score: 23
Accepted
time: 343ms
memory: 29552kb
input:
1 5000 709941552
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #414:
score: 23
Accepted
time: 328ms
memory: 29392kb
input:
1 5000 313686067
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #415:
score: 23
Accepted
time: 108ms
memory: 19832kb
input:
9 2619 672433584 922 3971218 635 273073 59 6252 366 236521 275 738448 68 4274 52 2575 3 0
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (9 test cases)
Test #416:
score: 23
Accepted
time: 97ms
memory: 16040kb
input:
10 2065 326616173 635 5454133 258 223488 1465 94003613 501 3203523 15 124 12 19 32 380 12 11 5 0
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (10 test cases)
Test #417:
score: 23
Accepted
time: 139ms
memory: 21968kb
input:
10 133 69738 690 5626670 3110 547518324 177 104754 793 12918527 24 427 54 785 5 2 9 11 4 2
output:
Yes 0 00 000 0000 00000 000000 0000000 00000001 000000011 0000000101 00000001010 000000000101 0000000001010 00000000010101 000000000101010 0000000001010101 00000000010101010 000000000101010101 0000000001010101010 00000000010101010101 000000000101010101010 0000000001010101010101 000000000101010101010...
result:
ok good job! (10 test cases)
Test #418:
score: 23
Accepted
time: 102ms
memory: 17452kb
input:
7 2022 39262075 1722 36740513 1085 20749788 88 20124 59 7319 18 7 4 1
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (7 test cases)
Test #419:
score: 23
Accepted
time: 165ms
memory: 22188kb
input:
9 3338 546623099 251 516661 639 2660568 481 1785023 91 21946 17 169 108 35582 65 11044 9 21
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (9 test cases)
Test #420:
score: 23
Accepted
time: 330ms
memory: 28460kb
input:
1 4999 4177820680
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #421:
score: 23
Accepted
time: 316ms
memory: 29292kb
input:
1 4999 4513673892
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #422:
score: 23
Accepted
time: 1ms
memory: 5680kb
input:
1 4999 13400105025
output:
No
result:
ok good job! (1 test case)
Test #423:
score: 23
Accepted
time: 335ms
memory: 28956kb
input:
1 5000 1525081015
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #424:
score: 23
Accepted
time: 331ms
memory: 29240kb
input:
1 5000 2039452757
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #425:
score: 23
Accepted
time: 327ms
memory: 28856kb
input:
1 5000 1256450563
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #426:
score: 23
Accepted
time: 343ms
memory: 30068kb
input:
1 5000 1817271204
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Test #427:
score: 23
Accepted
time: 339ms
memory: 29632kb
input:
1 5000 487140772
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 000000000000000000000...
result:
ok good job! (1 test case)
Extra Test:
score: 0
Extra Test Passed