QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#751419 | #8651. Table Tennis | 275307894a | 5 | 128ms | 73932kb | C++14 | 1.7kb | 2024-11-15 18:36:12 | 2024-11-15 18:36:13 |
Judging History
answer
#include<bits/stdc++.h>
#define Gc() getchar()
#define Me(x,y) memset(x,y,sizeof(x))
#define Mc(x,y) memcpy(x,y,sizeof(x))
#define d(x,y) ((m)*(x-1)+(y))
#define R(n) (rnd()%(n)+1)
#define Pc(x) putchar(x)
#define LB lower_bound
#define UB upper_bound
#define fi first
#define se second
#define eb emplace_back
#define all(x) x.begin(),x.end()
using namespace std;using ll=long long;using db=double;using lb=long db;using ui=unsigned;using ull=unsigned long long;using pii=pair<int,int>;
const int N=5e3+5,M=N*4+5,K=1000+5,mod=1e9+7,Mod=mod-1;const db eps=1e-9;const int INF=1e9+7;mt19937 rnd(28382);
#define Tp template<typename T>
#define Ts template<typename T,typename... Ar>
namespace Debug{
Tp void _debug(char* f,T t){cerr<<f<<'='<<t<<endl;}
Ts void _debug(char* f,T x,Ar... y){while(*f!=',') cerr<<*f++;cerr<<'='<<x<<",";_debug(f+1,y...);}
#ifdef LOCAL
#define gdb(...) _debug((char*)#__VA_ARGS__,__VA_ARGS__)
#else
#define gdb(...) void()
#endif
}using namespace Debug;
int n,m,d[N],e[N][N];
void Solve(){
scanf("%d%d",&n,&m);
for(int i=1;i<=n;i++) for(int j=i+1;j<=n;j++) e[i][j]=0;
for(int i=1;i<=n;i++) d[i]=i-1;
for(int i=n-1;i*2>n&&m;i--){
for(int j=i+1;j<=n&&m;j++){
if(m>=i-(n-1-i)-1) m-=i-(n-1-i)-1,d[j]--,d[n-j+1]++;
else d[j]--,d[j-m-1]++,m=0;
}
}
if(m){puts("No");return;}puts("Yes");
for(int i=1;i<=n;i++) gdb(d[i]);
for(int i=n;i;i--){
d[i]=i-d[i]-1;
for(int r=i-1,l;r;r=l-1){
for(l=r;d[l]==d[r]&&l;l--);l++;
for(int j=l;j<=r&&d[i];j++) e[j][i]=1,d[i]--,d[j]--;
}
gdb(d[1],d[2]);
}
for(int i=2;i<=n;putchar('\n'),i++) for(int j=1;j<i;j++) putchar('0'^e[j][i]^1);
}
int main(){
int t=1;
scanf("%d",&t);
while(t--) Solve();
cerr<<clock()*1.0/CLOCKS_PER_SEC<<'\n';
}
詳細信息
Subtask #1:
score: 5
Accepted
Test #1:
score: 5
Accepted
time: 2ms
memory: 6432kb
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: 95ms
memory: 67672kb
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: 14ms
memory: 25844kb
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: 15ms
memory: 27424kb
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: 3988kb
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: 3996kb
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: 4112kb
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: 0ms
memory: 3916kb
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: 1ms
memory: 6380kb
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: 1ms
memory: 6476kb
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: 3ms
memory: 11452kb
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: 0ms
memory: 7068kb
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: 128ms
memory: 70600kb
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: 108ms
memory: 70776kb
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: 1ms
memory: 4068kb
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 1 01 Yes 1 11 111 Yes 1 11 101 Yes 1 01 110 Yes 1 11 111 1111 Yes 1 11 111 1101 Yes 1 11 101 1110 Yes 1 01 110 1110 Yes 1 11 111 1111 11111 Yes 1 11 111 1111 11101 Yes 1 11 111 1101 11110 Yes 1 11 101 1110 11110 Yes 1 01 110 1110 11110 Yes 1 11 111 1111 11111 111111 Yes 1 11 111 1111 11...
result:
ok good job! (291 test cases)
Test #16:
score: 5
Accepted
time: 16ms
memory: 21204kb
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 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 #17:
score: 5
Accepted
time: 47ms
memory: 29128kb
input:
7 1948 1328 2367 1910 216 211 374 276 36 32 20 8 39 6
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! (7 test cases)
Test #18:
score: 5
Accepted
time: 23ms
memory: 50060kb
input:
6 3051 778 750 222 966 939 138 126 90 28 4 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! (6 test cases)
Test #19:
score: 5
Accepted
time: 0ms
memory: 4012kb
input:
1 6 0
output:
Yes 1 11 111 1111 11111
result:
ok good job! (1 test case)
Test #20:
score: 5
Accepted
time: 0ms
memory: 4068kb
input:
1 7 2
output:
Yes 1 11 111 1111 11101 111110
result:
ok good job! (1 test case)
Test #21:
score: 5
Accepted
time: 0ms
memory: 4116kb
input:
1 19 7
output:
Yes 1 11 111 1111 11111 111111 1111111 11111111 111111111 1111111111 11111111111 111111111101 1111111111110 11111111111110 111111111111110 1111111111111110 11111111111111110 111111111111111110
result:
ok good job! (1 test case)
Test #22:
score: 5
Accepted
time: 1ms
memory: 6160kb
input:
1 20 14
output:
Yes 1 11 111 1111 11111 111101 1111110 11111110 111111110 1111111110 11111111110 111111111110 1111111111110 11111111111110 111111111111110 1111111111111110 11111111111111110 111111111111111110 1111111111111111110
result:
ok good job! (1 test case)
Test #23:
score: 5
Accepted
time: 1ms
memory: 8108kb
input:
1 149 6
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 #24:
score: 5
Accepted
time: 1ms
memory: 8104kb
input:
1 150 44
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 #25:
score: 5
Accepted
time: 0ms
memory: 16452kb
input:
1 599 503
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 #26:
score: 5
Accepted
time: 3ms
memory: 16664kb
input:
1 600 218
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 #27:
score: 5
Accepted
time: 99ms
memory: 73916kb
input:
1 4999 4407
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 #28:
score: 5
Accepted
time: 78ms
memory: 72884kb
input:
1 4999 1436
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 #29:
score: 5
Accepted
time: 82ms
memory: 72552kb
input:
1 5000 107
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 #30:
score: 5
Accepted
time: 80ms
memory: 73932kb
input:
1 5000 1509
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 #31:
score: 5
Accepted
time: 97ms
memory: 72240kb
input:
1 5000 2242
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 #32:
score: 5
Accepted
time: 0ms
memory: 3984kb
input:
1 4 2
output:
Yes 1 01 110
result:
ok good job! (1 test case)
Test #33:
score: 5
Accepted
time: 0ms
memory: 3972kb
input:
1 5 3
output:
Yes 1 01 110 1110
result:
ok good job! (1 test case)
Test #34:
score: 5
Accepted
time: 0ms
memory: 4060kb
input:
1 6 4
output:
Yes 1 01 110 1110 11110
result:
ok good job! (1 test case)
Test #35:
score: 5
Accepted
time: 0ms
memory: 4076kb
input:
1 7 5
output:
Yes 1 01 110 1110 11110 111110
result:
ok good job! (1 test case)
Test #36:
score: 5
Accepted
time: 0ms
memory: 4044kb
input:
1 19 17
output:
Yes 1 01 110 1110 11110 111110 1111110 11111110 111111110 1111111110 11111111110 111111111110 1111111111110 11111111111110 111111111111110 1111111111111110 11111111111111110 111111111111111110
result:
ok good job! (1 test case)
Test #37:
score: 5
Accepted
time: 0ms
memory: 4116kb
input:
1 20 18
output:
Yes 1 01 110 1110 11110 111110 1111110 11111110 111111110 1111111110 11111111110 111111111110 1111111111110 11111111111110 111111111111110 1111111111111110 11111111111111110 111111111111111110 1111111111111111110
result:
ok good job! (1 test case)
Test #38:
score: 5
Accepted
time: 1ms
memory: 8176kb
input:
1 149 147
output:
Yes 1 01 110 1110 11110 111110 1111110 11111110 111111110 1111111110 11111111110 111111111110 1111111111110 11111111111110 111111111111110 1111111111111110 11111111111111110 111111111111111110 1111111111111111110 11111111111111111110 111111111111111111110 1111111111111111111110 111111111111111111111...
result:
ok good job! (1 test case)
Test #39:
score: 5
Accepted
time: 1ms
memory: 6376kb
input:
1 150 148
output:
Yes 1 01 110 1110 11110 111110 1111110 11111110 111111110 1111111110 11111111110 111111111110 1111111111110 11111111111110 111111111111110 1111111111111110 11111111111111110 111111111111111110 1111111111111111110 11111111111111111110 111111111111111111110 1111111111111111111110 111111111111111111111...
result:
ok good job! (1 test case)
Test #40:
score: 5
Accepted
time: 3ms
memory: 16588kb
input:
1 599 597
output:
Yes 1 01 110 1110 11110 111110 1111110 11111110 111111110 1111111110 11111111110 111111111110 1111111111110 11111111111110 111111111111110 1111111111111110 11111111111111110 111111111111111110 1111111111111111110 11111111111111111110 111111111111111111110 1111111111111111111110 111111111111111111111...
result:
ok good job! (1 test case)
Test #41:
score: 5
Accepted
time: 0ms
memory: 16512kb
input:
1 600 598
output:
Yes 1 01 110 1110 11110 111110 1111110 11111110 111111110 1111111110 11111111110 111111111110 1111111111110 11111111111110 111111111111110 1111111111111110 11111111111111110 111111111111111110 1111111111111111110 11111111111111111110 111111111111111111110 1111111111111111111110 111111111111111111111...
result:
ok good job! (1 test case)
Test #42:
score: 5
Accepted
time: 80ms
memory: 72680kb
input:
1 4999 4997
output:
Yes 1 01 110 1110 11110 111110 1111110 11111110 111111110 1111111110 11111111110 111111111110 1111111111110 11111111111110 111111111111110 1111111111111110 11111111111111110 111111111111111110 1111111111111111110 11111111111111111110 111111111111111111110 1111111111111111111110 111111111111111111111...
result:
ok good job! (1 test case)
Test #43:
score: 5
Accepted
time: 95ms
memory: 73348kb
input:
1 5000 4998
output:
Yes 1 01 110 1110 11110 111110 1111110 11111110 111111110 1111111110 11111111110 111111111110 1111111111110 11111111111110 111111111111110 1111111111111110 11111111111111110 111111111111111110 1111111111111111110 11111111111111111110 111111111111111111110 1111111111111111111110 111111111111111111111...
result:
ok good job! (1 test case)
Test #44:
score: 5
Accepted
time: 0ms
memory: 3980kb
input:
1 4 0
output:
Yes 1 11 111
result:
ok good job! (1 test case)
Test #45:
score: 5
Accepted
time: 1ms
memory: 6020kb
input:
1 5 1
output:
Yes 1 11 111 1101
result:
ok good job! (1 test case)
Test #46:
score: 5
Accepted
time: 0ms
memory: 3864kb
input:
1 6 1
output:
Yes 1 11 111 1111 11101
result:
ok good job! (1 test case)
Test #47:
score: 5
Accepted
time: 0ms
memory: 4072kb
input:
1 7 1
output:
Yes 1 11 111 1111 11111 111101
result:
ok good job! (1 test case)
Test #48:
score: 5
Accepted
time: 0ms
memory: 4124kb
input:
1 19 12
output:
Yes 1 11 111 1111 11111 111111 1111101 11111110 111111110 1111111110 11111111110 111111111110 1111111111110 11111111111110 111111111111110 1111111111111110 11111111111111110 111111111111111110
result:
ok good job! (1 test case)
Test #49:
score: 5
Accepted
time: 0ms
memory: 4012kb
input:
1 20 13
output:
Yes 1 11 111 1111 11111 111111 1111101 11111110 111111110 1111111110 11111111110 111111111110 1111111111110 11111111111110 111111111111110 1111111111111110 11111111111111110 111111111111111110 1111111111111111110
result:
ok good job! (1 test case)
Test #50:
score: 5
Accepted
time: 1ms
memory: 8260kb
input:
1 149 146
output:
Yes 1 11 101 1110 11110 111110 1111110 11111110 111111110 1111111110 11111111110 111111111110 1111111111110 11111111111110 111111111111110 1111111111111110 11111111111111110 111111111111111110 1111111111111111110 11111111111111111110 111111111111111111110 1111111111111111111110 111111111111111111111...
result:
ok good job! (1 test case)
Test #51:
score: 5
Accepted
time: 0ms
memory: 8276kb
input:
1 150 145
output:
Yes 1 11 111 1111 11101 111110 1111110 11111110 111111110 1111111110 11111111110 111111111110 1111111111110 11111111111110 111111111111110 1111111111111110 11111111111111110 111111111111111110 1111111111111111110 11111111111111111110 111111111111111111110 1111111111111111111110 111111111111111111111...
result:
ok good job! (1 test case)
Test #52:
score: 5
Accepted
time: 3ms
memory: 16420kb
input:
1 599 595
output:
Yes 1 11 111 1101 11110 111110 1111110 11111110 111111110 1111111110 11111111110 111111111110 1111111111110 11111111111110 111111111111110 1111111111111110 11111111111111110 111111111111111110 1111111111111111110 11111111111111111110 111111111111111111110 1111111111111111111110 111111111111111111111...
result:
ok good job! (1 test case)
Test #53:
score: 5
Accepted
time: 0ms
memory: 14788kb
input:
1 600 597
output:
Yes 1 11 101 1110 11110 111110 1111110 11111110 111111110 1111111110 11111111110 111111111110 1111111111110 11111111111110 111111111111110 1111111111111110 11111111111111110 111111111111111110 1111111111111111110 11111111111111111110 111111111111111111110 1111111111111111111110 111111111111111111111...
result:
ok good job! (1 test case)
Test #54:
score: 5
Accepted
time: 86ms
memory: 73808kb
input:
1 4999 4992
output:
Yes 1 11 111 1111 11111 111111 1111101 11111110 111111110 1111111110 11111111110 111111111110 1111111111110 11111111111110 111111111111110 1111111111111110 11111111111111110 111111111111111110 1111111111111111110 11111111111111111110 111111111111111111110 1111111111111111111110 111111111111111111111...
result:
ok good job! (1 test case)
Test #55:
score: 5
Accepted
time: 84ms
memory: 73052kb
input:
1 4999 4994
output:
Yes 1 11 111 1111 11101 111110 1111110 11111110 111111110 1111111110 11111111110 111111111110 1111111111110 11111111111110 111111111111110 1111111111111110 11111111111111110 111111111111111110 1111111111111111110 11111111111111111110 111111111111111111110 1111111111111111111110 111111111111111111111...
result:
ok good job! (1 test case)
Test #56:
score: 5
Accepted
time: 73ms
memory: 72544kb
input:
1 5000 4994
output:
Yes 1 11 111 1111 11111 111101 1111110 11111110 111111110 1111111110 11111111110 111111111110 1111111111110 11111111111110 111111111111110 1111111111111110 11111111111111110 111111111111111110 1111111111111111110 11111111111111111110 111111111111111111110 1111111111111111111110 111111111111111111111...
result:
ok good job! (1 test case)
Test #57:
score: 5
Accepted
time: 84ms
memory: 72320kb
input:
1 5000 4994
output:
Yes 1 11 111 1111 11111 111101 1111110 11111110 111111110 1111111110 11111111110 111111111110 1111111111110 11111111111110 111111111111110 1111111111111110 11111111111111110 111111111111111110 1111111111111111110 11111111111111111110 111111111111111111110 1111111111111111111110 111111111111111111111...
result:
ok good job! (1 test case)
Subtask #2:
score: 0
Wrong Answer
Test #58:
score: 4
Accepted
time: 1ms
memory: 3996kb
input:
1 4 4
output:
No
result:
ok good job! (1 test case)
Test #59:
score: 4
Accepted
time: 1ms
memory: 6016kb
input:
1 5 10
output:
No
result:
ok good job! (1 test case)
Test #60:
score: 4
Accepted
time: 0ms
memory: 4060kb
input:
1 6 20
output:
No
result:
ok good job! (1 test case)
Test #61:
score: 4
Accepted
time: 0ms
memory: 3992kb
input:
1 7 35
output:
No
result:
ok good job! (1 test case)
Test #62:
score: 4
Accepted
time: 0ms
memory: 4056kb
input:
1 5 10
output:
No
result:
ok good job! (1 test case)
Test #63:
score: 4
Accepted
time: 0ms
memory: 4040kb
input:
1 6 19
output:
No
result:
ok good job! (1 test case)
Test #64:
score: 4
Accepted
time: 0ms
memory: 4012kb
input:
1 6 20
output:
No
result:
ok good job! (1 test case)
Test #65:
score: 4
Accepted
time: 1ms
memory: 6032kb
input:
1 7 33
output:
No
result:
ok good job! (1 test case)
Test #66:
score: 4
Accepted
time: 0ms
memory: 4016kb
input:
1 7 33
output:
No
result:
ok good job! (1 test case)
Test #67:
score: 4
Accepted
time: 0ms
memory: 3980kb
input:
1 4 3
output:
No
result:
ok good job! (1 test case)
Test #68:
score: 4
Accepted
time: 0ms
memory: 3980kb
input:
1 5 8
output:
No
result:
ok good job! (1 test case)
Test #69:
score: 4
Accepted
time: 0ms
memory: 4064kb
input:
1 6 17
output:
No
result:
ok good job! (1 test case)
Test #70:
score: 4
Accepted
time: 0ms
memory: 4064kb
input:
1 7 30
output:
No
result:
ok good job! (1 test case)
Test #71:
score: 4
Accepted
time: 0ms
memory: 4064kb
input:
2 3 0 3 1
output:
Yes 1 11 Yes 1 01
result:
ok good job! (2 test cases)
Test #72:
score: 4
Accepted
time: 0ms
memory: 3968kb
input:
2 3 0 3 1
output:
Yes 1 11 Yes 1 01
result:
ok good job! (2 test cases)
Test #73:
score: 4
Accepted
time: 0ms
memory: 4000kb
input:
1 4 2
output:
Yes 1 01 110
result:
ok good job! (1 test case)
Test #74:
score: 4
Accepted
time: 0ms
memory: 3988kb
input:
1 5 5
output:
Yes 1 01 110 0011
result:
ok good job! (1 test case)
Test #75:
score: 4
Accepted
time: 0ms
memory: 3920kb
input:
1 6 8
output:
Yes 1 01 110 0011 11100
result:
ok good job! (1 test case)
Test #76:
score: 4
Accepted
time: 0ms
memory: 3860kb
input:
1 7 14
output:
Yes 1 01 110 0011 11100 000111
result:
ok good job! (1 test case)
Test #77:
score: 4
Accepted
time: 0ms
memory: 4012kb
input:
1 6 5
output:
Yes 1 01 110 1110 11011
result:
ok good job! (1 test case)
Test #78:
score: 4
Accepted
time: 0ms
memory: 3992kb
input:
1 6 4
output:
Yes 1 01 110 1110 11110
result:
ok good job! (1 test case)
Test #79:
score: 4
Accepted
time: 0ms
memory: 4016kb
input:
1 7 7
output:
Yes 1 01 110 1110 11011 111101
result:
ok good job! (1 test case)
Test #80:
score: 4
Accepted
time: 0ms
memory: 4072kb
input:
1 7 6
output:
Yes 1 01 110 1110 11110 111011
result:
ok good job! (1 test case)
Test #81:
score: 4
Accepted
time: 0ms
memory: 4016kb
input:
1 7 8
output:
Yes 1 01 110 1011 11101 111101
result:
ok good job! (1 test case)
Test #82:
score: 0
Wrong Answer
time: 0ms
memory: 4076kb
input:
1 6 7
output:
Yes 1 01 110 1010 11100
result:
wrong answer expected 7 ways, but found 6 ways (test case 1)
Subtask #3:
score: 0
Skipped
Dependency #2:
0%
Subtask #4:
score: 0
Skipped
Dependency #3:
0%
Subtask #5:
score: 0
Skipped
Dependency #4:
0%
Subtask #6:
score: 0
Skipped
Dependency #1:
100%
Accepted
Dependency #2:
0%