QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#720169 | #5209. King's Puzzle | ydzr00000 | AC ✓ | 5ms | 4012kb | C++17 | 911b | 2024-11-07 11:03:33 | 2024-11-07 11:03:33 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
vector<pair<int,int>>E;
int deg[501];
int main(){
int n,k;
scanf("%d %d",&n,&k);
if(n==1)
{
puts("YES");
printf("0\n");
return 0;
}
if(n==k)
{
puts("NO");
return 0;
}
if(k==1)
{
puts("YES");
if(n==2)
{
printf("1\n1 2\n");
return 0;
}
printf("%d\n",n);
for(int i=1;i<=n;i++)
printf("%d %d\n",i,i%n+1);
return 0;
}
int t=k+1;
for(int i=t+1;i<=n;i++)
E.push_back({i-1,i});
for(int i=1;i<=t/2;i++)
{
int deg=k-2*(i-1);
for(int j=1;j<=deg;j++)
E.push_back({i,i+j});
}
puts("YES");
printf("%d\n",(int)E.size());
for(auto [u,v]: E)
printf("%d %d\n",u,v);
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3856kb
input:
5 2
output:
YES 4 3 4 4 5 1 2 1 3
result:
ok n = 5, k = 2: nice job dude
Test #2:
score: 0
Accepted
time: 0ms
memory: 3748kb
input:
4 1
output:
YES 4 1 2 2 3 3 4 4 1
result:
ok n = 4, k = 1: nice job dude
Test #3:
score: 0
Accepted
time: 0ms
memory: 3876kb
input:
11 1
output:
YES 11 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 1
result:
ok n = 11, k = 1: nice job dude
Test #4:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
11 2
output:
YES 10 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 1 2 1 3
result:
ok n = 11, k = 2: nice job dude
Test #5:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
11 3
output:
YES 11 4 5 5 6 6 7 7 8 8 9 9 10 10 11 1 2 1 3 1 4 2 3
result:
ok n = 11, k = 3: nice job dude
Test #6:
score: 0
Accepted
time: 0ms
memory: 3880kb
input:
11 9
output:
YES 26 10 11 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 4 3 5 3 6 3 7 3 8 4 5 4 6 4 7 5 6
result:
ok n = 11, k = 9: nice job dude
Test #7:
score: 0
Accepted
time: 0ms
memory: 3872kb
input:
11 10
output:
YES 30 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 3 4 3 5 3 6 3 7 3 8 3 9 4 5 4 6 4 7 4 8 5 6 5 7
result:
ok n = 11, k = 10: nice job dude
Test #8:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
11 11
output:
NO
result:
ok n = 11, k = 11: nice job dude
Test #9:
score: 0
Accepted
time: 0ms
memory: 3944kb
input:
53 1
output:
YES 53 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 5...
result:
ok n = 53, k = 1: nice job dude
Test #10:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
53 2
output:
YES 52 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 1 2 1 3
result:
ok n = 53, k = 2: nice job dude
Test #11:
score: 0
Accepted
time: 0ms
memory: 3872kb
input:
53 3
output:
YES 53 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 1 2 1 3 1 ...
result:
ok n = 53, k = 3: nice job dude
Test #12:
score: 0
Accepted
time: 0ms
memory: 3888kb
input:
53 51
output:
YES 677 52 53 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2...
result:
ok n = 53, k = 51: nice job dude
Test #13:
score: 0
Accepted
time: 0ms
memory: 3896kb
input:
53 52
output:
YES 702 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 ...
result:
ok n = 53, k = 52: nice job dude
Test #14:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
53 53
output:
NO
result:
ok n = 53, k = 53: nice job dude
Test #15:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
267 1
output:
YES 267 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 ...
result:
ok n = 267, k = 1: nice job dude
Test #16:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
267 2
output:
YES 266 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 53 54...
result:
ok n = 267, k = 2: nice job dude
Test #17:
score: 0
Accepted
time: 0ms
memory: 3892kb
input:
267 3
output:
YES 267 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 53 54 54 ...
result:
ok n = 267, k = 3: nice job dude
Test #18:
score: 0
Accepted
time: 2ms
memory: 3880kb
input:
267 265
output:
YES 17690 266 267 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 ...
result:
ok n = 267, k = 265: nice job dude
Test #19:
score: 0
Accepted
time: 2ms
memory: 3924kb
input:
267 266
output:
YES 17822 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 6...
result:
ok n = 267, k = 266: nice job dude
Test #20:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
267 267
output:
NO
result:
ok n = 267, k = 267: nice job dude
Test #21:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
499 1
output:
YES 499 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 ...
result:
ok n = 499, k = 1: nice job dude
Test #22:
score: 0
Accepted
time: 0ms
memory: 3948kb
input:
499 2
output:
YES 498 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 53 54...
result:
ok n = 499, k = 2: nice job dude
Test #23:
score: 0
Accepted
time: 0ms
memory: 3952kb
input:
499 3
output:
YES 499 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 53 54 54 ...
result:
ok n = 499, k = 3: nice job dude
Test #24:
score: 0
Accepted
time: 5ms
memory: 4012kb
input:
499 497
output:
YES 62002 498 499 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 ...
result:
ok n = 499, k = 497: nice job dude
Test #25:
score: 0
Accepted
time: 5ms
memory: 3876kb
input:
499 498
output:
YES 62250 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 6...
result:
ok n = 499, k = 498: nice job dude
Test #26:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
499 499
output:
NO
result:
ok n = 499, k = 499: nice job dude
Test #27:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
500 1
output:
YES 500 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 ...
result:
ok n = 500, k = 1: nice job dude
Test #28:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
500 2
output:
YES 499 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 53 54...
result:
ok n = 500, k = 2: nice job dude
Test #29:
score: 0
Accepted
time: 0ms
memory: 3880kb
input:
500 3
output:
YES 500 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 53 54 54 ...
result:
ok n = 500, k = 3: nice job dude
Test #30:
score: 0
Accepted
time: 5ms
memory: 3920kb
input:
500 498
output:
YES 62251 499 500 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 ...
result:
ok n = 500, k = 498: nice job dude
Test #31:
score: 0
Accepted
time: 5ms
memory: 4008kb
input:
500 499
output:
YES 62500 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 6...
result:
ok n = 500, k = 499: nice job dude
Test #32:
score: 0
Accepted
time: 1ms
memory: 3756kb
input:
500 500
output:
NO
result:
ok n = 500, k = 500: nice job dude
Test #33:
score: 0
Accepted
time: 0ms
memory: 3880kb
input:
1 1
output:
YES 0
result:
ok n = 1, k = 1: nice job dude
Test #34:
score: 0
Accepted
time: 0ms
memory: 3880kb
input:
2 1
output:
YES 1 1 2
result:
ok n = 2, k = 1: nice job dude
Test #35:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
2 2
output:
NO
result:
ok n = 2, k = 2: nice job dude
Test #36:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
3 1
output:
YES 3 1 2 2 3 3 1
result:
ok n = 3, k = 1: nice job dude
Test #37:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
3 2
output:
YES 2 1 2 1 3
result:
ok n = 3, k = 2: nice job dude
Test #38:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
3 3
output:
NO
result:
ok n = 3, k = 3: nice job dude
Test #39:
score: 0
Accepted
time: 0ms
memory: 3748kb
input:
4 1
output:
YES 4 1 2 2 3 3 4 4 1
result:
ok n = 4, k = 1: nice job dude
Test #40:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
4 2
output:
YES 3 3 4 1 2 1 3
result:
ok n = 4, k = 2: nice job dude
Test #41:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
4 3
output:
YES 4 1 2 1 3 1 4 2 3
result:
ok n = 4, k = 3: nice job dude
Test #42:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
4 4
output:
NO
result:
ok n = 4, k = 4: nice job dude
Test #43:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
5 1
output:
YES 5 1 2 2 3 3 4 4 5 5 1
result:
ok n = 5, k = 1: nice job dude
Test #44:
score: 0
Accepted
time: 0ms
memory: 3944kb
input:
5 2
output:
YES 4 3 4 4 5 1 2 1 3
result:
ok n = 5, k = 2: nice job dude
Test #45:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
5 3
output:
YES 5 4 5 1 2 1 3 1 4 2 3
result:
ok n = 5, k = 3: nice job dude
Test #46:
score: 0
Accepted
time: 0ms
memory: 3944kb
input:
5 4
output:
YES 6 1 2 1 3 1 4 1 5 2 3 2 4
result:
ok n = 5, k = 4: nice job dude
Test #47:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
5 5
output:
NO
result:
ok n = 5, k = 5: nice job dude
Test #48:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
6 1
output:
YES 6 1 2 2 3 3 4 4 5 5 6 6 1
result:
ok n = 6, k = 1: nice job dude
Test #49:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
6 2
output:
YES 5 3 4 4 5 5 6 1 2 1 3
result:
ok n = 6, k = 2: nice job dude
Test #50:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
6 3
output:
YES 6 4 5 5 6 1 2 1 3 1 4 2 3
result:
ok n = 6, k = 3: nice job dude
Test #51:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
6 4
output:
YES 7 5 6 1 2 1 3 1 4 1 5 2 3 2 4
result:
ok n = 6, k = 4: nice job dude
Test #52:
score: 0
Accepted
time: 0ms
memory: 3876kb
input:
6 5
output:
YES 9 1 2 1 3 1 4 1 5 1 6 2 3 2 4 2 5 3 4
result:
ok n = 6, k = 5: nice job dude
Test #53:
score: 0
Accepted
time: 0ms
memory: 3740kb
input:
6 6
output:
NO
result:
ok n = 6, k = 6: nice job dude
Test #54:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
103 85
output:
YES 1866 86 87 87 88 88 89 89 90 90 91 91 92 92 93 93 94 94 95 95 96 96 97 97 98 98 99 99 100 100 101 101 102 102 103 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 ...
result:
ok n = 103, k = 85: nice job dude
Test #55:
score: 0
Accepted
time: 1ms
memory: 3988kb
input:
373 203
output:
YES 10573 204 205 205 206 206 207 207 208 208 209 209 210 210 211 211 212 212 213 213 214 214 215 215 216 216 217 217 218 218 219 219 220 220 221 221 222 222 223 223 224 224 225 225 226 226 227 227 228 228 229 229 230 230 231 231 232 232 233 233 234 234 235 235 236 236 237 237 238 238 239 239 240 24...
result:
ok n = 373, k = 203: nice job dude
Test #56:
score: 0
Accepted
time: 1ms
memory: 3984kb
input:
443 143
output:
YES 5483 144 145 145 146 146 147 147 148 148 149 149 150 150 151 151 152 152 153 153 154 154 155 155 156 156 157 157 158 158 159 159 160 160 161 161 162 162 163 163 164 164 165 165 166 166 167 167 168 168 169 169 170 170 171 171 172 172 173 173 174 174 175 175 176 176 177 177 178 178 179 179 180 180...
result:
ok n = 443, k = 143: nice job dude
Test #57:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
124 30
output:
YES 333 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 53 54 54 55 55 56 56 57 57 58 58 59 59 60 60 61 61 62 62 63 63 64 64 65 65 66 66 67 67 68 68 69 69 70 70 71 71 72 72 73 73 74 74 75 75 76 76 77 77 78 78 79 79 8...
result:
ok n = 124, k = 30: nice job dude
Test #58:
score: 0
Accepted
time: 0ms
memory: 3948kb
input:
194 6
output:
YES 199 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 53 54 54 55 55 56 56 ...
result:
ok n = 194, k = 6: nice job dude
Test #59:
score: 0
Accepted
time: 3ms
memory: 3984kb
input:
464 369
output:
YES 34319 370 371 371 372 372 373 373 374 374 375 375 376 376 377 377 378 378 379 379 380 380 381 381 382 382 383 383 384 384 385 385 386 386 387 387 388 388 389 389 390 390 391 391 392 392 393 393 394 394 395 395 396 396 397 397 398 398 399 399 400 400 401 401 402 402 403 403 404 404 405 405 406 40...
result:
ok n = 464, k = 369: nice job dude
Test #60:
score: 0
Accepted
time: 0ms
memory: 3876kb
input:
45 42
output:
YES 464 43 44 44 45 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 ...
result:
ok n = 45, k = 42: nice job dude
Test #61:
score: 0
Accepted
time: 1ms
memory: 3844kb
input:
115 106
output:
YES 2870 107 108 108 109 109 110 110 111 111 112 112 113 113 114 114 115 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 ...
result:
ok n = 115, k = 106: nice job dude
Test #62:
score: 0
Accepted
time: 1ms
memory: 3908kb
input:
285 220
output:
YES 12274 221 222 222 223 223 224 224 225 225 226 226 227 227 228 228 229 229 230 230 231 231 232 232 233 233 234 234 235 235 236 236 237 237 238 238 239 239 240 240 241 241 242 242 243 243 244 244 245 245 246 246 247 247 248 248 249 249 250 250 251 251 252 252 253 253 254 254 255 255 256 256 257 25...
result:
ok n = 285, k = 220: nice job dude
Test #63:
score: 0
Accepted
time: 1ms
memory: 3928kb
input:
143 106
output:
YES 2898 107 108 108 109 109 110 110 111 111 112 112 113 113 114 114 115 115 116 116 117 117 118 118 119 119 120 120 121 121 122 122 123 123 124 124 125 125 126 126 127 127 128 128 129 129 130 130 131 131 132 132 133 133 134 134 135 135 136 136 137 137 138 138 139 139 140 140 141 141 142 142 143 1 2...
result:
ok n = 143, k = 106: nice job dude