QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#115939#2553. BingoHuangHanShengRE 19ms9580kbPython31.3kb2023-06-27 19:15:052023-06-27 19:15:06

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 9ms
memory: 8532kb

input:

4 2

output:

YES
....
....
..#.
.#..

result:

ok n=4, k=2

Test #2:

score: 0
Accepted
time: 15ms
memory: 8460kb

input:

4 16

output:

NO

result:

ok n=4, k=16

Test #3:

score: 0
Accepted
time: 11ms
memory: 8496kb

input:

2 0

output:

YES
..
..

result:

ok n=2, k=0

Test #4:

score: 0
Accepted
time: 11ms
memory: 8496kb

input:

3 0

output:

YES
...
...
...

result:

ok n=3, k=0

Test #5:

score: 0
Accepted
time: 11ms
memory: 8524kb

input:

3 2

output:

YES
#..
...
..#

result:

ok n=3, k=2

Test #6:

score: 0
Accepted
time: 15ms
memory: 8608kb

input:

5 4

output:

YES
#..#.
.....
....#
...#.
.....

result:

ok n=5, k=4

Test #7:

score: 0
Accepted
time: 15ms
memory: 8584kb

input:

25 20

output:

YES
.......#.................
...........#.............
........#.......#........
.........................
.......#............#....
.......#....#............
...#..............#......
..............#..........
.........................
.....................#...
.........................
#............

result:

ok n=25, k=20

Test #8:

score: 0
Accepted
time: 12ms
memory: 8700kb

input:

31 29

output:

YES
...............................
.........................#....#
............#..................
...............................
...............................
...............................
...............................
...#..........#................
.............#.................
....#......

result:

ok n=31, k=29

Test #9:

score: 0
Accepted
time: 16ms
memory: 8776kb

input:

44 10

output:

YES
............................................
............................................
.................#..........................
............................................
.................................#..........
............................................
.............................

result:

ok n=44, k=10

Test #10:

score: 0
Accepted
time: 11ms
memory: 8616kb

input:

44 22

output:

YES
............................................
..#.....#...................................
...#.......................#................
............................................
............................................
............................................
.............................

result:

ok n=44, k=22

Test #11:

score: 0
Accepted
time: 19ms
memory: 9480kb

input:

100 0

output:

YES
....................................................................................................
....................................................................................................
.................................................................................................

result:

ok n=100, k=0

Test #12:

score: 0
Accepted
time: 19ms
memory: 9376kb

input:

100 1

output:

YES
....................................................................................................
....................................................................................................
.................................................................................................

result:

ok n=100, k=1

Test #13:

score: 0
Accepted
time: 11ms
memory: 9288kb

input:

100 2

output:

YES
....................................................................................................
....................................................................................................
.................................................................................................

result:

ok n=100, k=2

Test #14:

score: 0
Accepted
time: 11ms
memory: 9384kb

input:

100 50

output:

YES
....................................................................................................
...............#....................................................................................
.................................................................................................

result:

ok n=100, k=50

Test #15:

score: 0
Accepted
time: 15ms
memory: 9580kb

input:

100 98

output:

YES
..............................................................#.....................................
.................................................................................#..................
..#..............................................................................................

result:

ok n=100, k=98

Test #16:

score: 0
Accepted
time: 18ms
memory: 9468kb

input:

100 99

output:

YES
.......................................................................#..........#...#.............
#...................................................................................................
.................................................................................................

result:

ok n=100, k=99

Test #17:

score: 0
Accepted
time: 16ms
memory: 9564kb

input:

99 97

output:

YES
......................................#............................................................
...............................#.....#.............................................................
...................................................................................................

result:

ok n=99, k=97

Test #18:

score: 0
Accepted
time: 17ms
memory: 9456kb

input:

99 98

output:

YES
.............................#.....................................................................
...................................................................................................
.........#..............................................................................#..........

result:

ok n=99, k=98

Test #19:

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

input:

1 0

output:

YES
.

result:

ok n=1, k=0

Test #20:

score: 0
Accepted
time: 11ms
memory: 8432kb

input:

1 1

output:

NO

result:

ok n=1, k=1

Test #21:

score: 0
Accepted
time: 11ms
memory: 8508kb

input:

2 0

output:

YES
..
..

result:

ok n=2, k=0

Test #22:

score: 0
Accepted
time: 14ms
memory: 8532kb

input:

2 1

output:

YES
..
#.

result:

ok n=2, k=1

Test #23:

score: 0
Accepted
time: 8ms
memory: 8276kb

input:

2 2

output:

NO

result:

ok n=2, k=2

Test #24:

score: 0
Accepted
time: 5ms
memory: 8392kb

input:

2 3

output:

NO

result:

ok n=2, k=3

Test #25:

score: 0
Accepted
time: 10ms
memory: 8388kb

input:

2 4

output:

NO

result:

ok n=2, k=4

Test #26:

score: 0
Accepted
time: 10ms
memory: 8528kb

input:

3 0

output:

YES
...
...
...

result:

ok n=3, k=0

Test #27:

score: 0
Accepted
time: 14ms
memory: 8476kb

input:

3 1

output:

YES
...
...
..#

result:

ok n=3, k=1

Test #28:

score: 0
Accepted
time: 13ms
memory: 8500kb

input:

3 3

output:

YES
.#.
...
#.#

result:

ok n=3, k=3

Test #29:

score: 0
Accepted
time: 11ms
memory: 8596kb

input:

3 5

output:

YES
#..
#.#
.##

result:

ok n=3, k=5

Test #30:

score: 0
Accepted
time: 5ms
memory: 8424kb

input:

3 6

output:

YES
.##
#.#
##.

result:

ok n=3, k=6

Test #31:

score: 0
Accepted
time: 10ms
memory: 8380kb

input:

3 7

output:

NO

result:

ok n=3, k=7

Test #32:

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

input:

3 8

output:

NO

result:

ok n=3, k=8

Test #33:

score: 0
Accepted
time: 10ms
memory: 8452kb

input:

3 9

output:

NO

result:

ok n=3, k=9

Test #34:

score: 0
Accepted
time: 10ms
memory: 8612kb

input:

4 0

output:

YES
....
....
....
....

result:

ok n=4, k=0

Test #35:

score: 0
Accepted
time: 14ms
memory: 8528kb

input:

4 3

output:

YES
....
..#.
#.#.
....

result:

ok n=4, k=3

Test #36:

score: 0
Accepted
time: 10ms
memory: 8456kb

input:

4 4

output:

YES
....
#...
#.#.
..#.

result:

ok n=4, k=4

Test #37:

score: 0
Accepted
time: 10ms
memory: 8616kb

input:

4 5

output:

YES
..#.
.##.
....
#..#

result:

ok n=4, k=5

Test #38:

score: 0
Accepted
time: 8ms
memory: 8540kb

input:

4 16

output:

NO

result:

ok n=4, k=16

Test #39:

score: 0
Accepted
time: 15ms
memory: 8512kb

input:

4 9

output:

YES
#...
.###
##..
#.##

result:

ok n=4, k=9

Test #40:

score: 0
Accepted
time: 15ms
memory: 8612kb

input:

4 10

output:

YES
..##
##.#
##..
###.

result:

ok n=4, k=10

Test #41:

score: 0
Accepted
time: 8ms
memory: 8504kb

input:

4 12

output:

YES
#.##
###.
##.#
.###

result:

ok n=4, k=12

Test #42:

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

input:

4 13

output:

NO

result:

ok n=4, k=13

Test #43:

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

input:

1 0

output:

YES
.

result:

ok n=1, k=0

Test #44:

score: 0
Accepted
time: 5ms
memory: 8392kb

input:

2 1

output:

YES
.#
..

result:

ok n=2, k=1

Test #45:

score: 0
Accepted
time: 11ms
memory: 8392kb

input:

1 0

output:

YES
.

result:

ok n=1, k=0

Test #46:

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

input:

1 1

output:

NO

result:

ok n=1, k=1

Test #47:

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

input:

2 0

output:

YES
..
..

result:

ok n=2, k=0

Test #48:

score: 0
Accepted
time: 15ms
memory: 8440kb

input:

2 1

output:

YES
..
#.

result:

ok n=2, k=1

Test #49:

score: 0
Accepted
time: 11ms
memory: 8368kb

input:

2 2

output:

NO

result:

ok n=2, k=2

Test #50:

score: 0
Accepted
time: 9ms
memory: 8428kb

input:

2 3

output:

NO

result:

ok n=2, k=3

Test #51:

score: 0
Accepted
time: 11ms
memory: 8424kb

input:

2 4

output:

NO

result:

ok n=2, k=4

Test #52:

score: 0
Accepted
time: 8ms
memory: 8528kb

input:

3 3

output:

YES
.#.
...
#.#

result:

ok n=3, k=3

Test #53:

score: 0
Accepted
time: 8ms
memory: 8512kb

input:

3 6

output:

YES
##.
#.#
.##

result:

ok n=3, k=6

Test #54:

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

input:

3 7

output:

NO

result:

ok n=3, k=7

Test #55:

score: 0
Accepted
time: 6ms
memory: 8432kb

input:

3 9

output:

NO

result:

ok n=3, k=9

Test #56:

score: 0
Accepted
time: 9ms
memory: 8348kb

input:

4 4

output:

YES
#...
..#.
.#..
..#.

result:

ok n=4, k=4

Test #57:

score: 0
Accepted
time: 10ms
memory: 8508kb

input:

4 12

output:

YES
###.
#.##
.###
##.#

result:

ok n=4, k=12

Test #58:

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

input:

4 13

output:

NO

result:

ok n=4, k=13

Test #59:

score: 0
Accepted
time: 11ms
memory: 8544kb

input:

4 15

output:

NO

result:

ok n=4, k=15

Test #60:

score: 0
Accepted
time: 9ms
memory: 8456kb

input:

5 20

output:

YES
.####
####.
###.#
#.###
##.##

result:

ok n=5, k=20

Test #61:

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

input:

5 21

output:

NO

result:

ok n=5, k=21

Test #62:

score: 0
Accepted
time: 15ms
memory: 8412kb

input:

12 34

output:

YES
##..#...##..
.....#......
#...#....#..
..##........
....#.#..#..
.##...##..##
.#.........#
...#........
##.#..#.#...
..#.....#...
.....#......
....#....#.#

result:

ok n=12, k=34

Test #63:

score: 0
Accepted
time: 12ms
memory: 8684kb

input:

23 45

output:

YES
..................#....
.........#......#.#....
..#..........#.........
#.......#..........#...
.....#...#.......#.....
.......................
.............#..#......
............#......#...
......................#
#......................
...#..#...#.......#....
.....#.#..........#.#..
...........

result:

ok n=23, k=45

Test #64:

score: -100
Runtime Error

input:

40 1560

output:


result: