QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505474#5864. Square Tilesxiaowuc120 ✓1ms3604kbC++171.3kb2024-08-05 05:37:372024-08-05 05:37:38

詳細信息

Subtask #1:

score: 10
Accepted

Test #1:

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

input:

20
2 3
###
###
1 1
.
4 5
.##..
.####
.####
.##..
5 5
####.
####.
..##.
####.
##...
3 3
...
.##
.##
6 6
######
######
######
######
....##
..####
6 3
##.
##.
###
###
.##
.##
6 6
.####.
##..##
#.....
#..###
##...#
.####.
3 3
##.
##.
##.
1 1
#
6 3
##.
###
..#
.##
.##
...
5 5
####.
####.
####.
####.
##....

output:

Case #1:
Impossible
Case #2:
.
Case #3:
./\..
.\//\
./\\/
.\/..
Case #4:
/\/\.
\/\/.
../\.
/\\/.
\/...
Case #5:
...
./\
.\/
Case #6:
Impossible
Case #7:
Impossible
Case #8:
Impossible
Case #9:
Impossible
Case #10:
Impossible
Case #11:
Impossible
Case #12:
Impossible
Case #13:
/\/\/\
\/\/\/
../\..
/\...

result:

ok 81 lines

Subtask #2:

score: 10
Accepted

Test #2:

score: 10
Accepted
time: 1ms
memory: 3604kb

input:

50
2 3
###
###
1 1
.
4 5
.##..
.####
.####
.##..
42 30
######.####.##..##...##...####
######.####.########.##.######
######.##.....##..##....######
######.######.##.##..####.####
.##.##...####.##.########..##.
.##.##.##...##...######.##.##.
####...####.##.####..##.######
####.##..##....##.######..##...

output:

Case #1:
Impossible
Case #2:
.
Case #3:
./\..
.\//\
./\\/
.\/..
Case #4:
/\/\/\./\/\./\../\.../\.../\/\
\/\/\/.\/\/.\//\\//\.\/./\\/\/
/\/\/\./\.....\/..\/....\//\/\
\/\/\/.\//\/\./\./\../\/\.\/\/
./\./\...\/\/.\/.\//\\/\/../\.
.\/.\/./\.../\.../\\//\./\.\/.
/\/\...\//\.\/./\\/..\/.\//\/\
\/\/./\..\...

result:

ok 1297 lines

Extra Test:

score: 0
Extra Test Passed