QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#536286 | #8651. Table Tennis | lfyszy | 4 | 461ms | 199624kb | C++14 | 2.9kb | 2024-08-28 22:51:01 | 2024-08-28 22:51:03 |
Judging History
answer
// problem:
// date:
#include <bits/stdc++.h>
#define int long long
#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = min(x, y)
#define SP << " " <<
#define fish signed
using namespace std;
const int INF = 0x3f3f3f3f3f3f3f3f;
const int N = 5e3 + 10;
int res[N][N], inq[N];
vector<int> du[N];
queue<int> q;
#define c2(n) ((n) * (n - 1) / 2)
#define c3(n) ((n) * (n - 1) * (n - 2) / 6)
int min_m(int n) {return n & 1 ? n * c2(n / 2) : (n / 2) * c2(n / 2) + (n / 2) * c2(n / 2 - 1);}
void solve()
{
int n, m; cin >> n >> m;
// if(m == 0)
// {
// cout << "Yes\n";
// for(int i = 1; i <= n; i ++)
// for(int j = 1; j < i; j ++)
// cout << 1 << (j == i - 1 ? "\n" : "\0");
// return ;
// }
/*-----*/
for(int i = 1; i <= n; i ++)
for(int j = 1; j <= n; j ++)
res[i][j] = 0;
for(int i = 0; i < n; i ++) inq[i] = 0;
for(int i = 0; i < n; i ++) du[i].clear();
while(q.size()) q.pop();
/*-----*/
m = c3(n) - m;
if(min_m(n) > m || m > c3(n)) {cout << "No\n"; return ;}
int sum = 0, tp = n;
while(tp && min_m(tp - 1) + c2(tp - 1) + sum <= m) sum += c2(tp - 1), tp --;
int k = min_m(tp) + sum;
// cout << tp SP n SP k SP m << "\n";
for(int i = 1; i <= tp; i ++)
{
if(tp & 1)
{
int j = i + 1;
for(int o = 1; o <= tp / 2; o ++)
{
if(j > tp) j = 1;
res[i][j] = 1, j ++;
}
}
else
{
int j = i + 1;
for(int o = 1; o <= tp / 2 - (i > tp / 2); o ++)
{
if(j > tp) j = 1;
res[i][j] = 1, j ++;
}
}
}
for(int i = tp + 1; i <= n; i ++)
for(int j = 1; j < i; j ++) res[i][j] = 1;
for(int i = 1; i <= n; i ++)
{
int d = 0;
for(int j = 1; j <= n; j ++) d += res[i][j];
du[d].push_back(i);
}
for(int d = 0; d < n; d ++)
if(du[d].size() >= 2)
inq[d] = 1, q.push(d);
for(; k < m; k ++)
{
int d = q.front(); q.pop();
inq[d] = 0;
int u = du[d].back(); du[d].pop_back();
int v = du[d].back(); du[d].pop_back();
swap(res[u][v], res[v][u]);
if(res[u][v] == 1) swap(u, v);
du[d - 1].push_back(u);
du[d + 1].push_back(v);
for(int i = d - 1; i <= d + 1; i ++)
if(du[i].size() >= 2)
inq[i] = 1, q.push(i);
}
cout << "Yes\n";
for(int i = 1; i <= n; i ++)
for(int j = 1; j < i; j ++)
cout << res[i][j] << (j == i - 1 ? "\n" : "\0");
}
fish main()
{
// freopen(".in", "r", stdin);
// freopen(".out", "w", stdout);
// ios::sync_with_stdio(0);
// cin.tie(0); cout.tie(0);
int t; cin >> t;
while(t --) solve();
return 0;
}
详细
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 5
Accepted
time: 3ms
memory: 8012kb
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 1 11 Yes 1 11 111 Yes 1 11 111 1111 Yes 1 11 111 1111 11111 Yes 1 11 111 1111 11111 111111 Yes 1 11 111 1111 11111 111111 1111111 Yes 1 11 111 1111 11111 111111 1111111 11111111 Yes 1 11 111 1111 11111 111111 1111111 11111111 111111111 Yes 1 11 111 1111 11111 111111 1111111 11111111 111111111 11...
result:
ok good job! (97 test cases)
Test #2:
score: 5
Accepted
time: 434ms
memory: 195356kb
input:
5 4839 0 127 0 22 0 7 0 5 0
output:
Yes 1 11 111 1111 11111 111111 1111111 11111111 111111111 1111111111 11111111111 111111111111 1111111111111 11111111111111 111111111111111 1111111111111111 11111111111111111 111111111111111111 1111111111111111111 11111111111111111111 111111111111111111111 1111111111111111111111 111111111111111111111...
result:
ok good job! (5 test cases)
Test #3:
score: 5
Accepted
time: 101ms
memory: 65844kb
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 1 11 111 1111 11111 111111 1111111 11111111 111111111 1111111111 11111111111 111111111111 1111111111111 11111111111111 111111111111111 1111111111111111 11111111111111111 111111111111111111 1111111111111111111 11111111111111111111 111111111111111111111 1111111111111111111111 111111111111111111111...
result:
ok good job! (11 test cases)
Test #4:
score: 5
Accepted
time: 125ms
memory: 74408kb
input:
8 953 0 1747 0 1782 0 213 0 210 0 82 0 10 0 3 0
output:
Yes 1 11 111 1111 11111 111111 1111111 11111111 111111111 1111111111 11111111111 111111111111 1111111111111 11111111111111 111111111111111 1111111111111111 11111111111111111 111111111111111111 1111111111111111111 11111111111111111111 111111111111111111111 1111111111111111111111 111111111111111111111...
result:
ok good job! (8 test cases)
Test #5:
score: 5
Accepted
time: 0ms
memory: 3980kb
input:
1 6 0
output:
Yes 1 11 111 1111 11111
result:
ok good job! (1 test case)
Test #6:
score: 5
Accepted
time: 0ms
memory: 3988kb
input:
1 7 0
output:
Yes 1 11 111 1111 11111 111111
result:
ok good job! (1 test case)
Test #7:
score: 5
Accepted
time: 0ms
memory: 3740kb
input:
1 19 0
output:
Yes 1 11 111 1111 11111 111111 1111111 11111111 111111111 1111111111 11111111111 111111111111 1111111111111 11111111111111 111111111111111 1111111111111111 11111111111111111 111111111111111111
result:
ok good job! (1 test case)
Test #8:
score: 5
Accepted
time: 1ms
memory: 5776kb
input:
1 20 0
output:
Yes 1 11 111 1111 11111 111111 1111111 11111111 111111111 1111111111 11111111111 111111111111 1111111111111 11111111111111 111111111111111 1111111111111111 11111111111111111 111111111111111111 1111111111111111111
result:
ok good job! (1 test case)
Test #9:
score: 5
Accepted
time: 2ms
memory: 9836kb
input:
1 149 0
output:
Yes 1 11 111 1111 11111 111111 1111111 11111111 111111111 1111111111 11111111111 111111111111 1111111111111 11111111111111 111111111111111 1111111111111111 11111111111111111 111111111111111111 1111111111111111111 11111111111111111111 111111111111111111111 1111111111111111111111 111111111111111111111...
result:
ok good job! (1 test case)
Test #10:
score: 5
Accepted
time: 0ms
memory: 10136kb
input:
1 150 0
output:
Yes 1 11 111 1111 11111 111111 1111111 11111111 111111111 1111111111 11111111111 111111111111 1111111111111 11111111111111 111111111111111 1111111111111111 11111111111111111 111111111111111111 1111111111111111111 11111111111111111111 111111111111111111111 1111111111111111111111 111111111111111111111...
result:
ok good job! (1 test case)
Test #11:
score: 5
Accepted
time: 5ms
memory: 28408kb
input:
1 599 0
output:
Yes 1 11 111 1111 11111 111111 1111111 11111111 111111111 1111111111 11111111111 111111111111 1111111111111 11111111111111 111111111111111 1111111111111111 11111111111111111 111111111111111111 1111111111111111111 11111111111111111111 111111111111111111111 1111111111111111111111 111111111111111111111...
result:
ok good job! (1 test case)
Test #12:
score: 5
Accepted
time: 7ms
memory: 28148kb
input:
1 600 0
output:
Yes 1 11 111 1111 11111 111111 1111111 11111111 111111111 1111111111 11111111111 111111111111 1111111111111 11111111111111 111111111111111 1111111111111111 11111111111111111 111111111111111111 1111111111111111111 11111111111111111111 111111111111111111111 1111111111111111111111 111111111111111111111...
result:
ok good job! (1 test case)
Test #13:
score: 5
Accepted
time: 454ms
memory: 199556kb
input:
1 4999 0
output:
Yes 1 11 111 1111 11111 111111 1111111 11111111 111111111 1111111111 11111111111 111111111111 1111111111111 11111111111111 111111111111111 1111111111111111 11111111111111111 111111111111111111 1111111111111111111 11111111111111111111 111111111111111111111 1111111111111111111111 111111111111111111111...
result:
ok good job! (1 test case)
Test #14:
score: 5
Accepted
time: 461ms
memory: 199624kb
input:
1 5000 0
output:
Yes 1 11 111 1111 11111 111111 1111111 11111111 111111111 1111111111 11111111111 111111111111 1111111111111 11111111111111 111111111111111 1111111111111111 11111111111111111 111111111111111111 1111111111111111111 11111111111111111111 111111111111111111111 1111111111111111111111 111111111111111111111...
result:
ok good job! (1 test case)
Test #15:
score: 5
Accepted
time: 3ms
memory: 5808kb
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 1 11 Yes 0 10 Yes 1 11 111 Yes 0 10 111 Yes 0 00 100 Yes 1 11 111 1111 Yes 0 10 111 1111 Yes 0 00 100 1111 Yes 0 01 100 1101 Yes 1 11 111 1111 11111 Yes 0 10 111 1111 11111 Yes 0 00 100 1111 11111 Yes 0 01 100 1101 11111 Yes 0 00 100 1101 11111 Yes 1 11 111 1111 11111 111111 Yes 0 10 111 1111 11...
result:
ok good job! (291 test cases)
Test #16:
score: 0
Wrong Answer
time: 109ms
memory: 69460kb
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 00011 000010 1011001 11000000 111000000 1111001101 11111000111 111111010001 1111111111111 11111111111111 111111111111111 1111111111111111 11111111111111111 111111111111111111 1111111111111111111 11111111111111111111 111111111111111111111 1111111111111111111111 111111111111111111111...
result:
wrong answer expected 455 ways, but found 586 ways (test case 5)
Subtask #2:
score: 4
Accepted
Test #58:
score: 4
Accepted
time: 1ms
memory: 5780kb
input:
1 4 4
output:
No
result:
ok good job! (1 test case)
Test #59:
score: 4
Accepted
time: 0ms
memory: 3624kb
input:
1 5 10
output:
No
result:
ok good job! (1 test case)
Test #60:
score: 4
Accepted
time: 1ms
memory: 5792kb
input:
1 6 20
output:
No
result:
ok good job! (1 test case)
Test #61:
score: 4
Accepted
time: 0ms
memory: 3744kb
input:
1 7 35
output:
No
result:
ok good job! (1 test case)
Test #62:
score: 4
Accepted
time: 0ms
memory: 3752kb
input:
1 5 10
output:
No
result:
ok good job! (1 test case)
Test #63:
score: 4
Accepted
time: 0ms
memory: 5724kb
input:
1 6 19
output:
No
result:
ok good job! (1 test case)
Test #64:
score: 4
Accepted
time: 1ms
memory: 5780kb
input:
1 6 20
output:
No
result:
ok good job! (1 test case)
Test #65:
score: 4
Accepted
time: 0ms
memory: 3728kb
input:
1 7 33
output:
No
result:
ok good job! (1 test case)
Test #66:
score: 4
Accepted
time: 0ms
memory: 3724kb
input:
1 7 33
output:
No
result:
ok good job! (1 test case)
Test #67:
score: 4
Accepted
time: 0ms
memory: 3732kb
input:
1 4 3
output:
No
result:
ok good job! (1 test case)
Test #68:
score: 4
Accepted
time: 0ms
memory: 3912kb
input:
1 5 8
output:
No
result:
ok good job! (1 test case)
Test #69:
score: 4
Accepted
time: 0ms
memory: 3628kb
input:
1 6 17
output:
No
result:
ok good job! (1 test case)
Test #70:
score: 4
Accepted
time: 0ms
memory: 5628kb
input:
1 7 30
output:
No
result:
ok good job! (1 test case)
Test #71:
score: 4
Accepted
time: 0ms
memory: 3732kb
input:
2 3 0 3 1
output:
Yes 1 11 Yes 0 10
result:
ok good job! (2 test cases)
Test #72:
score: 4
Accepted
time: 0ms
memory: 3708kb
input:
2 3 0 3 1
output:
Yes 1 11 Yes 0 10
result:
ok good job! (2 test cases)
Test #73:
score: 4
Accepted
time: 1ms
memory: 5712kb
input:
1 4 2
output:
Yes 0 00 100
result:
ok good job! (1 test case)
Test #74:
score: 4
Accepted
time: 0ms
memory: 3976kb
input:
1 5 5
output:
Yes 0 00 100 1100
result:
ok good job! (1 test case)
Test #75:
score: 4
Accepted
time: 0ms
memory: 3752kb
input:
1 6 8
output:
Yes 0 00 000 1000 11000
result:
ok good job! (1 test case)
Test #76:
score: 4
Accepted
time: 1ms
memory: 5776kb
input:
1 7 14
output:
Yes 0 00 000 1000 11000 111000
result:
ok good job! (1 test case)
Test #77:
score: 4
Accepted
time: 0ms
memory: 3748kb
input:
1 6 5
output:
Yes 0 00 100 1100 11111
result:
ok good job! (1 test case)
Test #78:
score: 4
Accepted
time: 0ms
memory: 3748kb
input:
1 6 4
output:
Yes 0 00 100 1101 11111
result:
ok good job! (1 test case)
Test #79:
score: 4
Accepted
time: 0ms
memory: 3720kb
input:
1 7 7
output:
Yes 0 00 000 1000 11001 111111
result:
ok good job! (1 test case)
Test #80:
score: 4
Accepted
time: 0ms
memory: 3916kb
input:
1 7 6
output:
Yes 0 00 000 1000 11101 111111
result:
ok good job! (1 test case)
Test #81:
score: 4
Accepted
time: 0ms
memory: 3752kb
input:
1 7 8
output:
Yes 0 00 000 1000 11000 111111
result:
ok good job! (1 test case)
Test #82:
score: 4
Accepted
time: 0ms
memory: 3748kb
input:
1 6 7
output:
Yes 0 00 000 1000 11001
result:
ok good job! (1 test case)
Test #83:
score: 4
Accepted
time: 0ms
memory: 3980kb
input:
1 6 6
output:
Yes 0 00 000 1000 11101
result:
ok good job! (1 test case)
Test #84:
score: 4
Accepted
time: 0ms
memory: 3700kb
input:
1 7 11
output:
Yes 0 00 000 1001 11010 111001
result:
ok good job! (1 test case)
Test #85:
score: 4
Accepted
time: 0ms
memory: 3792kb
input:
1 7 11
output:
Yes 0 00 000 1001 11010 111001
result:
ok good job! (1 test case)
Test #86:
score: 4
Accepted
time: 0ms
memory: 3648kb
input:
1 7 13
output:
Yes 0 00 000 1000 11000 111001
result:
ok good job! (1 test case)
Test #87:
score: 4
Accepted
time: 0ms
memory: 3980kb
input:
1 6 6
output:
Yes 0 00 000 1000 11101
result:
ok good job! (1 test case)
Test #88:
score: 4
Accepted
time: 0ms
memory: 3748kb
input:
1 7 9
output:
Yes 0 00 000 1001 11111 111001
result:
ok good job! (1 test case)
Test #89:
score: 4
Accepted
time: 0ms
memory: 3912kb
input:
1 4 3
output:
No
result:
ok good job! (1 test case)
Test #90:
score: 4
Accepted
time: 0ms
memory: 3744kb
input:
1 5 10
output:
No
result:
ok good job! (1 test case)
Test #91:
score: 4
Accepted
time: 0ms
memory: 3744kb
input:
1 6 13
output:
No
result:
ok good job! (1 test case)
Test #92:
score: 4
Accepted
time: 0ms
memory: 3716kb
input:
1 7 23
output:
No
result:
ok good job! (1 test case)
Test #93:
score: 4
Accepted
time: 1ms
memory: 5976kb
input:
1 6 5
output:
Yes 0 00 100 1100 11111
result:
ok good job! (1 test case)
Test #94:
score: 4
Accepted
time: 0ms
memory: 3684kb
input:
1 6 2
output:
Yes 0 00 100 1111 11111
result:
ok good job! (1 test case)
Test #95:
score: 4
Accepted
time: 0ms
memory: 3700kb
input:
1 7 7
output:
Yes 0 00 000 1000 11001 111111
result:
ok good job! (1 test case)
Test #96:
score: 4
Accepted
time: 1ms
memory: 5964kb
input:
1 7 6
output:
Yes 0 00 000 1000 11101 111111
result:
ok good job! (1 test case)
Test #97:
score: 4
Accepted
time: 0ms
memory: 3920kb
input:
1 7 8
output:
Yes 0 00 000 1000 11000 111111
result:
ok good job! (1 test case)
Test #98:
score: 4
Accepted
time: 0ms
memory: 3688kb
input:
1 6 5
output:
Yes 0 00 100 1100 11111
result:
ok good job! (1 test case)
Test #99:
score: 4
Accepted
time: 0ms
memory: 3692kb
input:
1 6 4
output:
Yes 0 00 100 1101 11111
result:
ok good job! (1 test case)
Test #100:
score: 4
Accepted
time: 0ms
memory: 3748kb
input:
1 7 7
output:
Yes 0 00 000 1000 11001 111111
result:
ok good job! (1 test case)
Test #101:
score: 4
Accepted
time: 0ms
memory: 5780kb
input:
1 7 6
output:
Yes 0 00 000 1000 11101 111111
result:
ok good job! (1 test case)
Test #102:
score: 4
Accepted
time: 0ms
memory: 3792kb
input:
1 7 8
output:
Yes 0 00 000 1000 11000 111111
result:
ok good job! (1 test case)
Test #103:
score: 4
Accepted
time: 1ms
memory: 5772kb
input:
1 6 1
output:
Yes 0 10 111 1111 11111
result:
ok good job! (1 test case)
Test #104:
score: 4
Accepted
time: 0ms
memory: 3784kb
input:
1 6 1
output:
Yes 0 10 111 1111 11111
result:
ok good job! (1 test case)
Test #105:
score: 4
Accepted
time: 0ms
memory: 3636kb
input:
1 7 3
output:
Yes 0 01 100 1101 11111 111111
result:
ok good job! (1 test case)
Test #106:
score: 4
Accepted
time: 1ms
memory: 5764kb
input:
1 7 3
output:
Yes 0 01 100 1101 11111 111111
result:
ok good job! (1 test case)
Test #107:
score: 4
Accepted
time: 0ms
memory: 3980kb
input:
1 7 3
output:
Yes 0 01 100 1101 11111 111111
result:
ok good job! (1 test case)
Test #108:
score: 4
Accepted
time: 0ms
memory: 5720kb
input:
1 5 2
output:
Yes 0 00 100 1111
result:
ok good job! (1 test case)
Test #109:
score: 4
Accepted
time: 0ms
memory: 3912kb
input:
1 6 5
output:
Yes 0 00 100 1100 11111
result:
ok good job! (1 test case)
Test #110:
score: 4
Accepted
time: 0ms
memory: 3740kb
input:
2 4 1 3 0
output:
Yes 0 10 111 Yes 1 11
result:
ok good job! (2 test cases)
Test #111:
score: 4
Accepted
time: 0ms
memory: 3948kb
input:
1 6 1
output:
Yes 0 10 111 1111 11111
result:
ok good job! (1 test case)
Test #112:
score: 4
Accepted
time: 0ms
memory: 3964kb
input:
2 3 0 3 1
output:
Yes 1 11 Yes 0 10
result:
ok good job! (2 test cases)
Test #113:
score: 4
Accepted
time: 0ms
memory: 3636kb
input:
1 6 1
output:
Yes 0 10 111 1111 11111
result:
ok good job! (1 test case)
Test #114:
score: 4
Accepted
time: 0ms
memory: 3780kb
input:
1 6 4
output:
Yes 0 00 100 1101 11111
result:
ok good job! (1 test case)
Test #115:
score: 4
Accepted
time: 1ms
memory: 6012kb
input:
1 7 14
output:
Yes 0 00 000 1000 11000 111000
result:
ok good job! (1 test case)
Test #116:
score: 4
Accepted
time: 0ms
memory: 3688kb
input:
1 7 8
output:
Yes 0 00 000 1000 11000 111111
result:
ok good job! (1 test case)
Test #117:
score: 4
Accepted
time: 0ms
memory: 3812kb
input:
1 7 10
output:
Yes 0 00 000 1001 11110 111001
result:
ok good job! (1 test case)
Subtask #3:
score: 0
Wrong Answer
Dependency #2:
100%
Accepted
Test #118:
score: 23
Accepted
time: 0ms
memory: 3808kb
input:
1 19 969
output:
No
result:
ok good job! (1 test case)
Test #119:
score: 23
Accepted
time: 0ms
memory: 6016kb
input:
1 20 1140
output:
No
result:
ok good job! (1 test case)
Test #120:
score: 23
Accepted
time: 0ms
memory: 5724kb
input:
1 19 968
output:
No
result:
ok good job! (1 test case)
Test #121:
score: 23
Accepted
time: 1ms
memory: 5948kb
input:
1 19 969
output:
No
result:
ok good job! (1 test case)
Test #122:
score: 23
Accepted
time: 0ms
memory: 3740kb
input:
1 20 1138
output:
No
result:
ok good job! (1 test case)
Test #123:
score: 23
Accepted
time: 1ms
memory: 5772kb
input:
1 20 1138
output:
No
result:
ok good job! (1 test case)
Test #124:
score: 23
Accepted
time: 0ms
memory: 3804kb
input:
1 20 1140
output:
No
result:
ok good job! (1 test case)
Test #125:
score: 23
Accepted
time: 0ms
memory: 3732kb
input:
1 19 846
output:
No
result:
ok good job! (1 test case)
Test #126:
score: 23
Accepted
time: 1ms
memory: 5724kb
input:
1 20 1003
output:
No
result:
ok good job! (1 test case)
Test #127:
score: 23
Accepted
time: 0ms
memory: 3908kb
input:
5 3 0 3 1 4 0 4 1 4 2
output:
Yes 1 11 Yes 0 10 Yes 1 11 111 Yes 0 10 111 Yes 0 00 100
result:
ok good job! (5 test cases)
Test #128:
score: 23
Accepted
time: 0ms
memory: 3968kb
input:
5 3 0 3 1 4 0 4 1 4 2
output:
Yes 1 11 Yes 0 10 Yes 1 11 111 Yes 0 10 111 Yes 0 00 100
result:
ok good job! (5 test cases)
Test #129:
score: 23
Accepted
time: 1ms
memory: 5808kb
input:
1 19 285
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 1000000000 11000000000 111000000000 1111000000000 11111000000000 111111000000000 1111111000000000 11111111000000000 111111111000000000
result:
ok good job! (1 test case)
Test #130:
score: 23
Accepted
time: 0ms
memory: 5712kb
input:
1 20 330
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 10000000000 110000000000 1110000000000 11110000000000 111110000000000 1111110000000000 11111110000000000 111111110000000000 1111111110000000000
result:
ok good job! (1 test case)
Test #131:
score: 23
Accepted
time: 1ms
memory: 5820kb
input:
1 19 274
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 1000000000 11000000011 111000000011 1111000000000 11111000000000 111111000000000 1111111000001101 11111111000000111 111111111000000001
result:
ok good job! (1 test case)
Test #132:
score: 23
Accepted
time: 0ms
memory: 3836kb
input:
1 19 271
output:
Yes 0 00 000 0000 00000 000000 0000000 00000000 000000000 1000000000 11000000011 111000000010 1111000001001 11111000000000 111111000000000 1111111000001101 11111111000000111 111111111000000001
result:
ok good job! (1 test case)
Test #133:
score: 0
Wrong Answer
time: 1ms
memory: 5712kb
input:
1 20 289
output:
Yes 0 00 000 0001 00000 000000 0000011 00000000 000000101 0000000000 10010001011 110000010101 1101100000000 11111001010000 111111100100000 1101110110000100 11111110110000000 111111110000000000 1111111111000000001
result:
wrong answer expected 289 ways, but found 293 ways (test case 1)
Subtask #4:
score: 0
Skipped
Dependency #3:
0%
Subtask #5:
score: 0
Skipped
Dependency #4:
0%
Subtask #6:
score: 0
Skipped
Dependency #1:
0%