Submit solution
Points:
7 (partial)
Time limit:
0.5s
Java 8
3.0s
PyPy 3
2.0s
Memory limit:
4M
Java 8
128M
PyPy 3
128M
Author:
Problem type
was tired of hearing talk about his amazing award-winning code for the problem
After reading his code, he noticed a fatal flaw and decided to exploit it. Can you find the correct solution?
Constraints
Fast Input is recommended.
Python users are encouraged to use PyPy.
Subtask 1 [30%]
Subtask 2 [20%]
Subtask 3 [50%]
Input Specification
The first line of input contains two space-separated integers , the number of rows and columns.
The next lines contain characters representing the grid.
Output Specification
Output Crypto for Brian
if Brian can reach his Bitcoin and Ethereum, otherwise output No Crypto For Brian!
Sample Input 1
3 6
##s###
#b.###
##...e
Sample Output 1
Crypto For Brian
Sample Input 2
3 6
##s###
#b.###
##..#e
Sample Output 2
No Crypto For Brian!
Explanation for Sample Output 2
Brian is able to reach his Bitcoin, however; there is a wall stopping him from reaching his Ethereum.
Comments
where's the original problem
it is under the ICS3U/4U organization
Glad to see the legacy of Brian's Bitcoin lives on!
Kinda hard