QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#42047#1775. Deceptive DirectionsGuanYunchangAC ✓34ms18652kbC++172.6kb2022-08-01 15:45:212022-08-01 15:45:22

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 3ms
memory: 7844kb

input:

4 3
####
#S.#
####
W

output:

####
#S!#
####

result:

ok 3 lines

Test #2:

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

input:

3 4
###
#.#
#S#
###
E

output:

###
#!#
#S#
###

result:

ok 4 lines

Test #3:

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

input:

10 9
##########
#.#...#S.#
##....##.#
#..##....#
#........#
#....###.#
##..#..#.#
#...##.#.#
##########
SEWSNEESE

output:

##########
#.#.!.#S.#
##.!..##.#
#..##....#
#..!.....#
#...!###.#
##..#..#.#
#...##.#.#
##########

result:

ok 9 lines

Test #4:

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

input:

5 8
#####
###.#
##..#
#...#
#...#
##.S#
#...#
#####
WSES

output:

#####
###!#
##!.#
#!..#
#...#
##.S#
#...#
#####

result:

ok 8 lines

Test #5:

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

input:

9 7
#########
#.####..#
#....##.#
#.......#
#.......#
#...#..S#
#########
SENEEENN

output:

#########
#.####..#
#.!..##.#
#!......#
#.......#
#!..#..S#
#########

result:

ok 7 lines

Test #6:

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

input:

10 8
##########
#.....#..#
#..#.#...#
#........#
#.#......#
##......##
#......S.#
##########
SNWSNNSSWEE

output:

##########
#!....#..#
#..#.#...#
#........#
#.#......#
##......##
#......S.#
##########

result:

ok 8 lines

Test #7:

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

input:

5 8
#####
#...#
#..##
#.###
#...#
##..#
#S..#
#####
WNEE

output:

#####
#...#
#..##
#.###
#..!#
##..#
#S..#
#####

result:

ok 8 lines

Test #8:

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

input:

50 50
##################################################
#................................................#
#................................................#
#................................................#
#................................................#
#.........................................

output:

##################################################
#................................................#
#................................................#
#................................................#
#................................................#
#...............................................

result:

ok 50 lines

Test #9:

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

input:

50 50
##################################################
#................................................#
#................................................#
#................................................#
#................................................#
#.........................................

output:

##################################################
#........................!.......................#
#.......................!.!......................#
#......................!...!.....................#
#.....................!.....!....................#
#....................!.......!..................

result:

ok 50 lines

Test #10:

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

input:

50 50
##################################################
#................................................#
#................................................#
#................................................#
#................................................#
#.........................................

output:

##################################################
#........................!.......................#
#.......................!.!......................#
#......................!...!.....................#
#.....................!.....!....................#
#....................!.......!..................

result:

ok 50 lines

Test #11:

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

input:

50 50
##################################################
#................................................#
#................................................#
#................................................#
#................................................#
#.........................................

output:

##################################################
#................................................#
#................................................#
#................................................#
#................................................#
#...............................................

result:

ok 50 lines

Test #12:

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

input:

68 36
####################################################################
#..........#...#..#..........#.....................#.##..#.........#
###.....#.##..#..#..#.....#...#................#.##.....#.#........#
#.........#......#.#..#......#........#.#.#...#.#...###....#..#....#
#........#......#....

output:

####################################################################
#..........#...#..#..........#.....................#.##..#.........#
###.....#.##..#..#..#.....#...#................#.##.....#.#........#
#.........#......#.#..#......#........#.#.#...#.#...###....#..#....#
#........#......#.#...##...

result:

ok 36 lines

Test #13:

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

input:

93 69
#############################################################################################
##.###...#..#.##.##..###..######....##..##......#..#..#......#..##..###....#.#........#######
#.#..##.#...##..###.###.###..##.##.#...#......####.###..#.##............##..#.#.###..##.#.###
#.#.#...##.....

output:

#############################################################################################
##.###...#..#.##.##..###..######....##..##......#..#..#......#..##..###....#.#........#######
#.#..##.#...##..###.###.###..##.##.#...#......####.###..#.##............##..#.#.###..##.#.###
#.#.#...##...#.......

result:

ok 69 lines

Test #14:

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

input:

44 76
############################################
##.....##..###..##......#.#......#.....#.#.#
###.#.....#...#....#.....##.#.#.#....#....##
###....#..#..##..#......#.##.......#...#..##
#...#.###..#...##.#....#...#..#....##....###
#.##.####.....#.###.##..##...#.....###.#####
#...#........#....#.##.....

output:

############################################
##.....##..###..##......#.#......#.....#.#.#
###.#.....#...#....#.....##.#.#.#....#....##
###....#..#..##..#......#.##.......#...#..##
#...#.###..#...##.#....#...#..#....##....###
#.##.####.....#.###.##..##...#.....###.#####
#...#........#....#.##...#.##....

result:

ok 76 lines

Test #15:

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

input:

46 65
##############################################
#.#.....#.....#.#.#.....#.#.......###........#
##.....#.#...........#.#..#....#......#.#....#
###.#.#.....#...###.###.............#.#......#
#.#.#.##.....#.#.....#.#.#.##......#...##.#..#
#...##..#..........#...#.......##..#...#....##
#.####..#......

output:

##############################################
#.#.....#.....#.#.#.....#.#.......###........#
##.....#.#...........#.#..#....#......#.#....#
###.#.#.....#...###.###.............#.#......#
#.#.#.##.....#.#.....#.#.#.##......#...##.#..#
#...##..#..........#...#.......##..#...#....##
#.####..#....##......

result:

ok 65 lines

Test #16:

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

input:

85 45
#####################################################################################
###.#.............#....#....#........#.......#..#..........#........................#
#...#....#.............#..........#......#......##.............#..#...........#.....#
#.....#.........#......................

output:

#####################################################################################
###.#.............#....#....#........#.......#..#..........#........................#
#...#....#.............#..........#......#......##.............#..#...........#.....#
#.....#.........#......................#.....

result:

ok 45 lines

Test #17:

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

input:

75 75
###########################################################################
#.........................................................................#
#.#########################################################################
#.#..................................................................

output:

###########################################################################
#........................................................................!#
#.#########################################################################
#.#........................................................................

result:

ok 75 lines

Test #18:

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

input:

75 75
###########################################################################
#.........................................................................#
#.#########################################################################
#.#..................................................................

output:

###########################################################################
#........................................................................!#
#.#########################################################################
#.#........................................................................

result:

ok 75 lines

Test #19:

score: 0
Accepted
time: 26ms
memory: 16696kb

input:

1000 1000
##################################################################################################################################################################################################################################################################################################...

output:

############################################################################################################################################################################################################################################################################################################...

result:

ok 1000 lines

Test #20:

score: 0
Accepted
time: 22ms
memory: 17320kb

input:

1000 1000
##################################################################################################################################################################################################################################################################################################...

output:

############################################################################################################################################################################################################################################################################################################...

result:

ok 1000 lines

Test #21:

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

input:

1000 1000
##################################################################################################################################################################################################################################################################################################...

output:

############################################################################################################################################################################################################################################################################################################...

result:

ok 1000 lines

Test #22:

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

input:

1000 1000
##################################################################################################################################################################################################################################################################################################...

output:

############################################################################################################################################################################################################################################################################################################...

result:

ok 1000 lines

Test #23:

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

input:

1000 1000
##################################################################################################################################################################################################################################################################################################...

output:

############################################################################################################################################################################################################################################################################################################...

result:

ok 1000 lines

Test #24:

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

input:

1000 4
#####################################################################################################################################################################################################################################################################################################...

output:

############################################################################################################################################################################################################################################################################################################...

result:

ok 4 lines

Test #25:

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

input:

4 1000
####
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#.....

output:

####
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
#..#
...

result:

ok 1000 lines

Test #26:

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

input:

1000 10
####################################################################################################################################################################################################################################################################################################...

output:

############################################################################################################################################################################################################################################################################################################...

result:

ok 10 lines

Test #27:

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

input:

10 1000
##########
#...#....#
#..#....##
#........#
###.....##
#..#..#..#
#........#
#........#
#........#
#........#
#.....#..#
#........#
#........#
#........#
#......#.#
#.....#..#
#...#....#
#....#.#.#
#.....#..#
#....#...#
#........#
#....#...#
#........#
#.....#..#
#...#....#
#........#
#..#.....

output:

##########
#...#....#
#..#....##
#........#
###.....##
#..#..#..#
#........#
#........#
#........#
#........#
#.....#..#
#........#
#........#
#........#
#......#.#
#.....#..#
#...#....#
#....#.#.#
#.....#..#
#....#...#
#........#
#....#...#
#........#
#.....#..#
#...#....#
#........#
#..#.....#
#.....

result:

ok 1000 lines

Test #28:

score: 0
Accepted
time: 26ms
memory: 17312kb

input:

1000 1000
##################################################################################################################################################################################################################################################################################################...

output:

############################################################################################################################################################################################################################################################################################################...

result:

ok 1000 lines

Test #29:

score: 0
Accepted
time: 34ms
memory: 18652kb

input:

1000 1000
##################################################################################################################################################################################################################################################################################################...

output:

############################################################################################################################################################################################################################################################################################################...

result:

ok 1000 lines

Test #30:

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

input:

1000 1000
##################################################################################################################################################################################################################################################################################################...

output:

############################################################################################################################################################################################################################################################################################################...

result:

ok 1000 lines

Test #31:

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

input:

1000 1000
##################################################################################################################################################################################################################################################################################################...

output:

############################################################################################################################################################################################################################################################################################################...

result:

ok 1000 lines