QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#449560#8651. Table TennisDitaMirika27 176ms28392kbC++231.8kb2024-06-21 14:33:572024-06-21 14:33:57

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 5
Accepted
time: 3ms
memory: 3684kb

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: 0
Accepted
time: 155ms
memory: 3604kb

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: 0
Accepted
time: 41ms
memory: 3728kb

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: 0
Accepted
time: 47ms
memory: 3640kb

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: 0
Accepted
time: 0ms
memory: 3728kb

input:

1
6 0

output:

Yes
1
11
111
1111
11111

result:

ok good job! (1 test case)

Test #6:

score: 0
Accepted
time: 0ms
memory: 3680kb

input:

1
7 0

output:

Yes
1
11
111
1111
11111
111111

result:

ok good job! (1 test case)

Test #7:

score: 0
Accepted
time: 0ms
memory: 3608kb

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: 0
Accepted
time: 0ms
memory: 3608kb

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: 0
Accepted
time: 0ms
memory: 3612kb

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: 0
Accepted
time: 0ms
memory: 3604kb

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: 0
Accepted
time: 0ms
memory: 3736kb

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: 0
Accepted
time: 3ms
memory: 3604kb

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: 0
Accepted
time: 164ms
memory: 3736kb

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: 0
Accepted
time: 175ms
memory: 3668kb

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
Wrong Answer
time: 176ms
memory: 27308kb

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
1
10
110
Yes
0
10
110
Yes
1
11
111
1111
Yes
1
11
110
1110
Yes
1
10
110
1110
Yes
0
10
110
1110
Yes
1
11
111
1111
11111
Yes
1
11
111
1110
11110
Yes
1
11
110
1110
11110
Yes
1
10
110
1110
11110
Yes
0
10
110
1110
11110
Yes
1
11
111
1111
11111
111111
Yes
1
11
111
1111
11...

result:

wrong answer you did't find a solution but jury did (test case 191)

Subtask #2:

score: 4
Accepted

Test #58:

score: 4
Accepted
time: 1ms
memory: 7848kb

input:

1
4 4

output:

No

result:

ok good job! (1 test case)

Test #59:

score: 0
Accepted
time: 1ms
memory: 9924kb

input:

1
5 10

output:

No

result:

ok good job! (1 test case)

Test #60:

score: 0
Accepted
time: 2ms
memory: 11912kb

input:

1
6 20

output:

No

result:

ok good job! (1 test case)

Test #61:

score: 0
Accepted
time: 1ms
memory: 11916kb

input:

1
7 35

output:

No

result:

ok good job! (1 test case)

Test #62:

score: 0
Accepted
time: 1ms
memory: 9768kb

input:

1
5 10

output:

No

result:

ok good job! (1 test case)

Test #63:

score: 0
Accepted
time: 2ms
memory: 11892kb

input:

1
6 19

output:

No

result:

ok good job! (1 test case)

Test #64:

score: 0
Accepted
time: 2ms
memory: 11824kb

input:

1
6 20

output:

No

result:

ok good job! (1 test case)

Test #65:

score: 0
Accepted
time: 1ms
memory: 11972kb

input:

1
7 33

output:

No

result:

ok good job! (1 test case)

Test #66:

score: 0
Accepted
time: 0ms
memory: 11940kb

input:

1
7 33

output:

No

result:

ok good job! (1 test case)

Test #67:

score: 0
Accepted
time: 1ms
memory: 9824kb

input:

1
4 3

output:

No

result:

ok good job! (1 test case)

Test #68:

score: 0
Accepted
time: 1ms
memory: 9852kb

input:

1
5 8

output:

No

result:

ok good job! (1 test case)

Test #69:

score: 0
Accepted
time: 1ms
memory: 9872kb

input:

1
6 17

output:

No

result:

ok good job! (1 test case)

Test #70:

score: 0
Accepted
time: 0ms
memory: 11852kb

input:

1
7 30

output:

No

result:

ok good job! (1 test case)

Test #71:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

2
3 0
3 1

output:

Yes
1
11
Yes
0
10

result:

ok good job! (2 test cases)

Test #72:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

2
3 0
3 1

output:

Yes
1
11
Yes
0
10

result:

ok good job! (2 test cases)

Test #73:

score: 0
Accepted
time: 0ms
memory: 3664kb

input:

1
4 2

output:

Yes
0
10
110

result:

ok good job! (1 test case)

Test #74:

score: 0
Accepted
time: 2ms
memory: 11864kb

input:

1
5 5

output:

Yes
0
00
100
1100

result:

ok good job! (1 test case)

Test #75:

score: 0
Accepted
time: 1ms
memory: 9960kb

input:

1
6 8

output:

Yes
0
00
100
1100
11100

result:

ok good job! (1 test case)

Test #76:

score: 0
Accepted
time: 1ms
memory: 11832kb

input:

1
7 14

output:

Yes
0
00
000
1000
11000
111000

result:

ok good job! (1 test case)

Test #77:

score: 0
Accepted
time: 1ms
memory: 9876kb

input:

1
6 5

output:

Yes
1
10
100
1100
11100

result:

ok good job! (1 test case)

Test #78:

score: 0
Accepted
time: 0ms
memory: 3696kb

input:

1
6 4

output:

Yes
0
10
110
1110
11110

result:

ok good job! (1 test case)

Test #79:

score: 0
Accepted
time: 0ms
memory: 11956kb

input:

1
7 7

output:

Yes
1
10
111
1100
11010
111100

result:

ok good job! (1 test case)

Test #80:

score: 0
Accepted
time: 0ms
memory: 11976kb

input:

1
7 6

output:

Yes
1
10
110
1111
11001
111110

result:

ok good job! (1 test case)

Test #81:

score: 0
Accepted
time: 2ms
memory: 11908kb

input:

1
7 8

output:

Yes
1
10
100
1100
11100
111100

result:

ok good job! (1 test case)

Test #82:

score: 0
Accepted
time: 1ms
memory: 9816kb

input:

1
6 7

output:

Yes
0
11
100
1010
11100

result:

ok good job! (1 test case)

Test #83:

score: 0
Accepted
time: 2ms
memory: 11892kb

input:

1
6 6

output:

Yes
0
10
111
1001
11110

result:

ok good job! (1 test case)

Test #84:

score: 0
Accepted
time: 0ms
memory: 13964kb

input:

1
7 11

output:

Yes
1
00
100
1100
11001
111100

result:

ok good job! (1 test case)

Test #85:

score: 0
Accepted
time: 0ms
memory: 11864kb

input:

1
7 11

output:

Yes
1
00
100
1100
11001
111100

result:

ok good job! (1 test case)

Test #86:

score: 0
Accepted
time: 2ms
memory: 13964kb

input:

1
7 13

output:

Yes
0
00
100
1000
11000
111100

result:

ok good job! (1 test case)

Test #87:

score: 0
Accepted
time: 1ms
memory: 9884kb

input:

1
6 6

output:

Yes
0
10
111
1001
11110

result:

ok good job! (1 test case)

Test #88:

score: 0
Accepted
time: 2ms
memory: 13932kb

input:

1
7 9

output:

Yes
0
10
111
1110
10011
111100

result:

ok good job! (1 test case)

Test #89:

score: 0
Accepted
time: 1ms
memory: 7792kb

input:

1
4 3

output:

No

result:

ok good job! (1 test case)

Test #90:

score: 0
Accepted
time: 1ms
memory: 9864kb

input:

1
5 10

output:

No

result:

ok good job! (1 test case)

Test #91:

score: 0
Accepted
time: 0ms
memory: 11960kb

input:

1
6 13

output:

No

result:

ok good job! (1 test case)

Test #92:

score: 0
Accepted
time: 0ms
memory: 11928kb

input:

1
7 23

output:

No

result:

ok good job! (1 test case)

Test #93:

score: 0
Accepted
time: 1ms
memory: 9832kb

input:

1
6 5

output:

Yes
1
10
100
1100
11100

result:

ok good job! (1 test case)

Test #94:

score: 0
Accepted
time: 1ms
memory: 9892kb

input:

1
6 2

output:

Yes
1
11
110
1110
11110

result:

ok good job! (1 test case)

Test #95:

score: 0
Accepted
time: 2ms
memory: 13892kb

input:

1
7 7

output:

Yes
1
10
111
1100
11010
111100

result:

ok good job! (1 test case)

Test #96:

score: 0
Accepted
time: 1ms
memory: 11908kb

input:

1
7 6

output:

Yes
1
10
110
1111
11001
111110

result:

ok good job! (1 test case)

Test #97:

score: 0
Accepted
time: 2ms
memory: 11872kb

input:

1
7 8

output:

Yes
1
10
100
1100
11100
111100

result:

ok good job! (1 test case)

Test #98:

score: 0
Accepted
time: 0ms
memory: 11892kb

input:

1
6 5

output:

Yes
1
10
100
1100
11100

result:

ok good job! (1 test case)

Test #99:

score: 0
Accepted
time: 0ms
memory: 3648kb

input:

1
6 4

output:

Yes
0
10
110
1110
11110

result:

ok good job! (1 test case)

Test #100:

score: 0
Accepted
time: 0ms
memory: 13944kb

input:

1
7 7

output:

Yes
1
10
111
1100
11010
111100

result:

ok good job! (1 test case)

Test #101:

score: 0
Accepted
time: 1ms
memory: 11904kb

input:

1
7 6

output:

Yes
1
10
110
1111
11001
111110

result:

ok good job! (1 test case)

Test #102:

score: 0
Accepted
time: 2ms
memory: 11924kb

input:

1
7 8

output:

Yes
1
10
100
1100
11100
111100

result:

ok good job! (1 test case)

Test #103:

score: 0
Accepted
time: 1ms
memory: 9812kb

input:

1
6 1

output:

Yes
1
11
111
1110
11110

result:

ok good job! (1 test case)

Test #104:

score: 0
Accepted
time: 1ms
memory: 9900kb

input:

1
6 1

output:

Yes
1
11
111
1110
11110

result:

ok good job! (1 test case)

Test #105:

score: 0
Accepted
time: 2ms
memory: 13908kb

input:

1
7 3

output:

Yes
1
11
110
1110
11110
111110

result:

ok good job! (1 test case)

Test #106:

score: 0
Accepted
time: 2ms
memory: 11848kb

input:

1
7 3

output:

Yes
1
11
110
1110
11110
111110

result:

ok good job! (1 test case)

Test #107:

score: 0
Accepted
time: 1ms
memory: 12036kb

input:

1
7 3

output:

Yes
1
11
110
1110
11110
111110

result:

ok good job! (1 test case)

Test #108:

score: 0
Accepted
time: 1ms
memory: 9832kb

input:

1
5 2

output:

Yes
1
10
110
1110

result:

ok good job! (1 test case)

Test #109:

score: 0
Accepted
time: 1ms
memory: 9952kb

input:

1
6 5

output:

Yes
1
10
100
1100
11100

result:

ok good job! (1 test case)

Test #110:

score: 0
Accepted
time: 0ms
memory: 9812kb

input:

2
4 1
3 0

output:

Yes
1
10
110
Yes
1
11

result:

ok good job! (2 test cases)

Test #111:

score: 0
Accepted
time: 0ms
memory: 11920kb

input:

1
6 1

output:

Yes
1
11
111
1110
11110

result:

ok good job! (1 test case)

Test #112:

score: 0
Accepted
time: 0ms
memory: 3676kb

input:

2
3 0
3 1

output:

Yes
1
11
Yes
0
10

result:

ok good job! (2 test cases)

Test #113:

score: 0
Accepted
time: 0ms
memory: 9848kb

input:

1
6 1

output:

Yes
1
11
111
1110
11110

result:

ok good job! (1 test case)

Test #114:

score: 0
Accepted
time: 0ms
memory: 3680kb

input:

1
6 4

output:

Yes
0
10
110
1110
11110

result:

ok good job! (1 test case)

Test #115:

score: 0
Accepted
time: 0ms
memory: 11936kb

input:

1
7 14

output:

Yes
0
00
000
1000
11000
111000

result:

ok good job! (1 test case)

Test #116:

score: 0
Accepted
time: 0ms
memory: 13912kb

input:

1
7 8

output:

Yes
1
10
100
1100
11100
111100

result:

ok good job! (1 test case)

Test #117:

score: 0
Accepted
time: 0ms
memory: 13948kb

input:

1
7 10

output:

Yes
0
11
100
1010
11100
111100

result:

ok good job! (1 test case)

Subtask #3:

score: 23
Accepted

Dependency #2:

100%
Accepted

Test #118:

score: 23
Accepted
time: 3ms
memory: 28344kb

input:

1
19 969

output:

No

result:

ok good job! (1 test case)

Test #119:

score: 0
Accepted
time: 0ms
memory: 26832kb

input:

1
20 1140

output:

No

result:

ok good job! (1 test case)

Test #120:

score: 0
Accepted
time: 3ms
memory: 26620kb

input:

1
19 968

output:

No

result:

ok good job! (1 test case)

Test #121:

score: 0
Accepted
time: 0ms
memory: 26504kb

input:

1
19 969

output:

No

result:

ok good job! (1 test case)

Test #122:

score: 0
Accepted
time: 0ms
memory: 26964kb

input:

1
20 1138

output:

No

result:

ok good job! (1 test case)

Test #123:

score: 0
Accepted
time: 4ms
memory: 27160kb

input:

1
20 1138

output:

No

result:

ok good job! (1 test case)

Test #124:

score: 0
Accepted
time: 4ms
memory: 26564kb

input:

1
20 1140

output:

No

result:

ok good job! (1 test case)

Test #125:

score: 0
Accepted
time: 3ms
memory: 26624kb

input:

1
19 846

output:

No

result:

ok good job! (1 test case)

Test #126:

score: 0
Accepted
time: 3ms
memory: 26952kb

input:

1
20 1003

output:

No

result:

ok good job! (1 test case)

Test #127:

score: 0
Accepted
time: 1ms
memory: 9752kb

input:

5
3 0
3 1
4 0
4 1
4 2

output:

Yes
1
11
Yes
0
10
Yes
1
11
111
Yes
1
10
110
Yes
0
10
110

result:

ok good job! (5 test cases)

Test #128:

score: 0
Accepted
time: 1ms
memory: 9768kb

input:

5
3 0
3 1
4 0
4 1
4 2

output:

Yes
1
11
Yes
0
10
Yes
1
11
111
Yes
1
10
110
Yes
0
10
110

result:

ok good job! (5 test cases)

Test #129:

score: 0
Accepted
time: 3ms
memory: 26656kb

input:

1
19 285

output:

Yes
0
01
011
0110
01100
011000
0110000
01100000
000000000
1110000000
10010000000
100110000000
1001110000000
10011110000000
100111110000000
1001111110000000
10011111101000000
101111111010000000

result:

ok good job! (1 test case)

Test #130:

score: 0
Accepted
time: 7ms
memory: 28384kb

input:

1
20 330

output:

Yes
0
01
011
0110
01100
011000
0110000
01100000
000000000
1111111111
11100000001
100100000010
1001100000100
10011100001000
100111100010000
1001111100100000
10011111101000000
100111111011000000
1011111110110000000

result:

ok good job! (1 test case)

Test #131:

score: 0
Accepted
time: 0ms
memory: 27184kb

input:

1
19 274

output:

Yes
1
00
000
0000
00000
111111
0000001
10111111
100000100
1100001000
11000010100
111000101000
1111001010000
11111010100000
111111001000000
1111110110000000
11000000111111100
110000111111110000

result:

ok good job! (1 test case)

Test #132:

score: 0
Accepted
time: 0ms
memory: 26452kb

input:

1
19 271

output:

Yes
1
00
000
0000
11111
000001
0000010
11111110
100001000
1100010000
11000100100
111001001000
1111010010000
11111000100000
111110101000000
1111101110000000
11000001111111000
111001111111000000

result:

ok good job! (1 test case)

Test #133:

score: 0
Accepted
time: 7ms
memory: 26744kb

input:

1
20 289

output:

Yes
1
10
100
1000
10000
000000
1100000
10000000
111111111
1100000001
11100000010
111100000100
1111100001000
11111100010000
111111010100000
1111111101000000
11111111110000000
110000000011111111
1100000001111111110

result:

ok good job! (1 test case)

Test #134:

score: 0
Accepted
time: 4ms
memory: 26988kb

input:

1
20 328

output:

Yes
0
01
010
0100
01000
010000
0100000
11111111
000000001
1111111111
11000000101
101000001010
1011000010100
10111000101000
101111001010000
1011111010100000
10111111101000000
101111110011000000
1100000000111111110

result:

ok good job! (1 test case)

Test #135:

score: 0
Accepted
time: 3ms
memory: 26916kb

input:

1
20 313

output:

Yes
1
10
111
0001
00010
111111
0001001
00010010
101111110
1001001000
11010010000
111100100000
1110001001000
11101010010000
111011000100000
1110110101000000
11101101110000000
110000001111111000
1110001111111000000

result:

ok good job! (1 test case)

Test #136:

score: 0
Accepted
time: 3ms
memory: 26764kb

input:

1
19 114

output:

Yes
1
10
110
1110
11111
111111
1111110
11111100
111111000
1111110000
11111100000
111110100000
1111101100000
11111011100000
111110111100000
1111101111100000
11111011111100000
111111111111000000

result:

ok good job! (1 test case)

Test #137:

score: 0
Accepted
time: 0ms
memory: 26628kb

input:

1
19 96

output:

Yes
1
10
100
1100
11100
111111
1111111
11111111
111111110
1111111100
11111111000
111111110000
1111110010000
11111100110000
111111001110000
1111110011110000
11111100111110000
111111011111100000

result:

ok good job! (1 test case)

Test #138:

score: 0
Accepted
time: 3ms
memory: 26944kb

input:

1
20 152

output:

Yes
1
11
111
1111
11111
111111
1111101
11111111
111100101
1111001010
11111111100
111110101000
1111111010000
11111101100000
111111010001000
1111110101010000
11111101011100000
111110000111111000
1111110011111100000

result:

ok good job! (1 test case)

Test #139:

score: 0
Accepted
time: 3ms
memory: 26680kb

input:

1
20 250

output:

Yes
0
11
111
1111
11011
110110
1101100
11011000
100110000
1101100000
11111000000
111001000000
1110011000000
11100111000000
111001111000000
1110011110010000
11100111111000000
110011111111000000
1101111111110000000

result:

ok good job! (1 test case)

Test #140:

score: 0
Accepted
time: 3ms
memory: 26644kb

input:

1
20 28

output:

Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111110
1111111111100
11111111111000
111111111111000
1111111111111000
11111111111111000
111111111111100011
1111111111111111000

result:

ok good job! (1 test case)

Test #141:

score: 0
Accepted
time: 3ms
memory: 28268kb

input:

1
19 231

output:

Yes
1
10
111
1000
11111
100001
1111111
10000101
100001010
1100010100
11010101000
111101010000
1111110100000
11111011000000
111110101000000
1111000000011110
11111010111000000
111000011111110000

result:

ok good job! (1 test case)

Test #142:

score: 0
Accepted
time: 0ms
memory: 28296kb

input:

1
19 270

output:

Yes
1
10
100
1000
00000
010000
0100000
01000000
101111111
1100000000
11100000010
111100000100
1111100001000
11111100010000
101111100100000
1011111101000000
10111000010111100
110000111111110000

result:

ok good job! (1 test case)

Test #143:

score: 0
Accepted
time: 3ms
memory: 26864kb

input:

1
20 258

output:

Yes
0
11
110
1111
11111
110011
1100110
11001100
100011000
1100110000
11101100000
111111000000
1111001000000
10110011100000
111100111000000
1111001100011000
11110011111000000
110001111111100000
1110111111110000000

result:

ok good job! (1 test case)

Test #144:

score: 0
Accepted
time: 3ms
memory: 26632kb

input:

1
20 263

output:

Yes
1
11
110
1100
11111
111111
1000011
10000110
100001100
1100011000
11100110000
111101100000
1111111000000
11111001000000
111110011000000
1111100000011100
11111001111000000
110000111111110000
1110011111111000000

result:

ok good job! (1 test case)

Test #145:

score: 0
Accepted
time: 3ms
memory: 26740kb

input:

1
20 286

output:

Yes
1
10
100
1000
10000
000000
1100000
11111111
100000001
1100000010
11100000100
111100001000
1111100010000
11111100100000
111111011000000
1111111110000000
11111111010000000
111000000011111110
1110000011111111000

result:

ok good job! (1 test case)

Test #146:

score: 0
Accepted
time: 0ms
memory: 26460kb

input:

1
19 241

output:

Yes
1
10
100
1000
00000
111111
1100001
10000010
111111111
1100001001
11000010010
111000100100
1111001001000
11111010010000
111110010100000
1111110101000000
11111101101000000
111100000111111000

result:

ok good job! (1 test case)

Test #147:

score: 0
Accepted
time: 3ms
memory: 26836kb

input:

1
20 286

output:

Yes
1
10
100
1000
10000
000000
1100000
11111111
100000001
1100000010
11100000100
111100001000
1111100010000
11111100100000
111111011000000
1111111110000000
11111111010000000
111000000011111110
1110000011111111000

result:

ok good job! (1 test case)

Test #148:

score: 0
Accepted
time: 3ms
memory: 26564kb

input:

1
19 294

output:

No

result:

ok good job! (1 test case)

Test #149:

score: 0
Accepted
time: 0ms
memory: 26604kb

input:

1
19 289

output:

No

result:

ok good job! (1 test case)

Test #150:

score: 0
Accepted
time: 3ms
memory: 27264kb

input:

1
20 338

output:

No

result:

ok good job! (1 test case)

Test #151:

score: 0
Accepted
time: 3ms
memory: 27072kb

input:

1
20 336

output:

No

result:

ok good job! (1 test case)

Test #152:

score: 0
Accepted
time: 3ms
memory: 26916kb

input:

1
20 335

output:

No

result:

ok good job! (1 test case)

Test #153:

score: 0
Accepted
time: 3ms
memory: 26428kb

input:

1
19 19

output:

Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111110
1111111111100
11111111111111
111111111111000
1111111111110010
11111111111110100
111111111111111000

result:

ok good job! (1 test case)

Test #154:

score: 0
Accepted
time: 0ms
memory: 26820kb

input:

1
19 1

output:

Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111110
111111111111111110

result:

ok good job! (1 test case)

Test #155:

score: 0
Accepted
time: 3ms
memory: 27268kb

input:

1
20 2

output:

Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111111
1111111111111
11111111111111
111111111111111
1111111111111111
11111111111111110
111111111111111110
1111111111111111110

result:

ok good job! (1 test case)

Test #156:

score: 0
Accepted
time: 3ms
memory: 28252kb

input:

1
20 40

output:

Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111110
111111111100
1111111111000
11111111110000
111111111110000
1111111111110000
11111111111110000
111111111111110000
1111111111111110000

result:

ok good job! (1 test case)

Test #157:

score: 0
Accepted
time: 0ms
memory: 3604kb

input:

1
20 18

output:

Yes
0
10
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 #158:

score: 0
Accepted
time: 3ms
memory: 27032kb

input:

1
19 114

output:

Yes
1
10
110
1110
11111
111111
1111110
11111100
111111000
1111110000
11111100000
111110100000
1111101100000
11111011100000
111110111100000
1111101111100000
11111011111100000
111111111111000000

result:

ok good job! (1 test case)

Test #159:

score: 0
Accepted
time: 3ms
memory: 27088kb

input:

1
19 96

output:

Yes
1
10
100
1100
11100
111111
1111111
11111111
111111110
1111111100
11111111000
111111110000
1111110010000
11111100110000
111111001110000
1111110011110000
11111100111110000
111111011111100000

result:

ok good job! (1 test case)

Test #160:

score: 0
Accepted
time: 0ms
memory: 26876kb

input:

1
20 152

output:

Yes
1
11
111
1111
11111
111111
1111101
11111111
111100101
1111001010
11111111100
111110101000
1111111010000
11111101100000
111111010001000
1111110101010000
11111101011100000
111110000111111000
1111110011111100000

result:

ok good job! (1 test case)

Test #161:

score: 0
Accepted
time: 3ms
memory: 28288kb

input:

1
20 250

output:

Yes
0
11
111
1111
11011
110110
1101100
11011000
100110000
1101100000
11111000000
111001000000
1110011000000
11100111000000
111001111000000
1110011110010000
11100111111000000
110011111111000000
1101111111110000000

result:

ok good job! (1 test case)

Test #162:

score: 0
Accepted
time: 0ms
memory: 28392kb

input:

1
20 28

output:

Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111110
1111111111100
11111111111000
111111111111000
1111111111111000
11111111111111000
111111111111100011
1111111111111111000

result:

ok good job! (1 test case)

Test #163:

score: 0
Accepted
time: 3ms
memory: 26544kb

input:

1
19 68

output:

Yes
1
11
111
1111
11111
111111
1111111
11111110
111111100
1111111000
11111111100
111111100001
1111111100010
11111111100000
111111111100000
1111111111100000
11111111111001000
111111111111100000

result:

ok good job! (1 test case)

Test #164:

score: 0
Accepted
time: 0ms
memory: 27048kb

input:

1
19 49

output:

Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111110
11111111000
111111110100
1111111111000
11111111111000
111111111111000
1111111110100011
11111111101111000
111111111100111100

result:

ok good job! (1 test case)

Test #165:

score: 0
Accepted
time: 7ms
memory: 27236kb

input:

1
20 21

output:

Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111110
11111111110
111111111111
1111111111110
11111111111100
111111111111000
1111111111111000
11111111111111000
111111111111111000
1111111111111111000

result:

ok good job! (1 test case)

Test #166:

score: 0
Accepted
time: 3ms
memory: 26812kb

input:

1
20 34

output:

Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111110
1111111111000
11111111111100
111111111110000
1111111111110000
11111111111110000
111111111111101000
1111111111111110000

result:

ok good job! (1 test case)

Test #167:

score: 0
Accepted
time: 3ms
memory: 26736kb

input:

1
20 34

output:

Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111110
1111111111000
11111111111100
111111111110000
1111111111110000
11111111111110000
111111111111101000
1111111111111110000

result:

ok good job! (1 test case)

Test #168:

score: 0
Accepted
time: 0ms
memory: 20080kb

input:

2
13 8
7 3

output:

Yes
1
11
111
1111
11111
111111
1111111
11111110
111111100
1111111100
11111111100
111111111100
Yes
1
11
110
1110
11110
111110

result:

ok good job! (2 test cases)

Test #169:

score: 0
Accepted
time: 0ms
memory: 16120kb

input:

3
10 3
3 1
7 0

output:

Yes
1
11
111
1111
11111
111110
1111110
11111110
111111110
Yes
0
10
Yes
1
11
111
1111
11111
111111

result:

ok good job! (3 test cases)

Test #170:

score: 0
Accepted
time: 0ms
memory: 11900kb

input:

4
7 6
6 3
4 2
3 0

output:

Yes
1
10
110
1111
11001
111110
Yes
1
10
110
1110
11110
Yes
0
10
110
Yes
1
11

result:

ok good job! (4 test cases)

Test #171:

score: 0
Accepted
time: 0ms
memory: 24664kb

input:

2
17 120
3 0

output:

Yes
1
10
111
1110
11100
111000
1100000
11110000
111000000
1111000000
11111000000
111111000000
1111111000000
11111110100000
111111111000000
1110111111100000
Yes
1
11

result:

ok good job! (2 test cases)

Test #172:

score: 0
Accepted
time: 2ms
memory: 11900kb

input:

4
6 1
6 7
4 0
4 0

output:

Yes
1
11
111
1110
11110
Yes
0
11
100
1010
11100
Yes
1
11
111
Yes
1
11
111

result:

ok good job! (4 test cases)

Test #173:

score: 0
Accepted
time: 3ms
memory: 26548kb

input:

1
19 181

output:

Yes
1
11
111
1110
11111
111001
1100010
11000100
111111000
1110010000
11110100000
111111000000
1111101000000
11111010010000
111110110100000
1111101111000000
11100011111110000
111111111110000000

result:

ok good job! (1 test case)

Test #174:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

1
19 17

output:

Yes
0
10
110
1110
11110
111110
1111110
11111110
111111110
1111111110
11111111110
111111111110
1111111111110
11111111111110
111111111111110
1111111111111110
11111111111111110
111111111111111110

result:

ok good job! (1 test case)

Test #175:

score: 0
Accepted
time: 3ms
memory: 27220kb

input:

1
20 170

output:

Yes
0
10
110
1111
11111
111111
1111110
11111100
111111000
1111110000
11111100000
111100100000
1111001100000
11110011100000
111100111100000
1111001111100000
11110011111100000
111101111111000000
1111111111110000000

result:

ok good job! (1 test case)

Test #176:

score: 0
Accepted
time: 3ms
memory: 27008kb

input:

1
20 30

output:

Yes
1
11
111
1111
11111
111111
1111111
11111111
111111111
1111111111
11111111111
111111111110
1111111111100
11111111111000
111111111110000
1111111111110000
11111111111110000
111111111111110000
1111111111111110000

result:

ok good job! (1 test case)

Test #177:

score: 0
Accepted
time: 0ms
memory: 27228kb

input:

1
20 183

output:

Yes
1
11
111
1111
11110
111111
1111111
11110011
111000110
1110001100
11110011000
111110110000
1111111100000
11111100100000
111111001100000
1111110010001100
11111100111100000
111100011111110000
1111001111111100000

result:

ok good job! (1 test case)

Subtask #4:

score: 0
Wrong Answer

Dependency #3:

100%
Accepted

Test #178:

score: 30
Accepted
time: 0ms
memory: 3724kb

input:

1
149 540274

output:

No

result:

ok good job! (1 test case)

Test #179:

score: 0
Accepted
time: 0ms
memory: 3680kb

input:

1
150 551300

output:

No

result:

ok good job! (1 test case)

Test #180:

score: 0
Accepted
time: 0ms
memory: 3680kb

input:

1
149 540272

output:

No

result:

ok good job! (1 test case)

Test #181:

score: 0
Accepted
time: 0ms
memory: 3672kb

input:

1
149 540272

output:

No

result:

ok good job! (1 test case)

Test #182:

score: 0
Accepted
time: 0ms
memory: 3612kb

input:

1
150 551299

output:

No

result:

ok good job! (1 test case)

Test #183:

score: 0
Accepted
time: 0ms
memory: 3648kb

input:

1
150 551299

output:

No

result:

ok good job! (1 test case)

Test #184:

score: 0
Accepted
time: 0ms
memory: 3728kb

input:

1
150 551299

output:

No

result:

ok good job! (1 test case)

Test #185:

score: 0
Accepted
time: 0ms
memory: 3676kb

input:

1
149 468391

output:

No

result:

ok good job! (1 test case)

Test #186:

score: 0
Accepted
time: 0ms
memory: 3728kb

input:

1
150 482173

output:

No

result:

ok good job! (1 test case)

Test #187:

score: 0
Accepted
time: 2ms
memory: 11916kb

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
1
11
Yes
0
10
Yes
1
11
111
Yes
1
10
110
Yes
0
10
110
No
No
Yes
1
11
111
1111
Yes
1
11
110
1110
Yes
1
10
110
1110
Yes
0
10
110
1110
Yes
0
10
100
1110
Yes
0
00
100
1100
No
No
No
No
No
Yes
1
11
111
1111
11111
Yes
1
11
111
1110
11110
Yes
1
11
110
1110
11110
Yes
1
10
110
1110
11110
Yes
0
10
110
1110
...

result:

ok good job! (29 test cases)

Test #188:

score: 0
Accepted
time: 0ms
memory: 11928kb

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
1
11
Yes
0
10
Yes
1
11
111
Yes
1
10
110
Yes
0
10
110
Yes
1
11
111
1111
Yes
1
11
110
1110
Yes
1
10
110
1110
Yes
0
10
110
1110
Yes
0
10
100
1110
Yes
0
00
100
1100
Yes
1
11
111
1111
11111
Yes
1
11
111
1110
11110
Yes
1
11
110
1110
11110
Yes
1
10
110
1110
11110
Yes
0
10
110
1110
11110
Yes
1
10
100
11...

result:

ok good job! (26 test cases)

Test #189:

score: -30
Wrong Answer
time: 0ms
memory: 3664kb

input:

1
149 137825

output:

No

result:

wrong answer you did't find a solution but jury did (test case 1)

Subtask #5:

score: 0
Skipped

Dependency #4:

0%

Subtask #6:

score: 0
Skipped

Dependency #1:

0%