Submission #991456
Source Code Expand
h, w = gets.split(" ").map(&:to_i) x = y = -1 h.times { |i| a = gets.split(" ") if a.include?("snuke") x = ('A'.ord+a.index("snuke")) y = i+1 end } puts "#{x.chr}#{y}"
Submission Info
Submission Time | |
---|---|
Task | A - Where's Snuke? |
User | roxion1377 |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 198 Byte |
Status | CE |
Compile Error
./Main.cpp:1:1: error: ‘h’ does not name a type h, w = gets.split(" ").map(&:to_i) ^ ./Main.cpp:13:1: error: ‘puts’ does not name a type puts "#{x.chr}#{y}" ^