Submission #991477


Source Code Expand

Copy
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 Ruby (2.3.3)
Score 100
Code Size 198 Byte
Status
Exec Time 10 ms
Memory 1788 KB

Compile Error

./Main.rb:1: warning: assigned but unused variable - w

Judge Result

Set Name Score / Max Score Test Cases
sample 0 / 0 sample-01.txt, sample-02.txt
all 100 / 100 sample-01.txt, sample-02.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt
Case Name Status Exec Time Memory
01-01.txt 10 ms 1788 KB
01-02.txt 10 ms 1788 KB
01-03.txt 10 ms 1788 KB
01-04.txt 10 ms 1788 KB
01-05.txt 10 ms 1788 KB
01-06.txt 10 ms 1788 KB
01-07.txt 10 ms 1788 KB
sample-01.txt 10 ms 1788 KB
sample-02.txt 10 ms 1788 KB