Submission #1007247
Source Code Expand
/* Filename: CodeFestival2016Final_A.java * Author: Mushiyo */ import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); while (input.hasNext()) { int H = input.nextInt(); int W = input.nextInt(); int row = 0; int col = 0; for(int i = 0; i < H; ++i){ for(int j = 0; j < W; ++j){ String cell = input.next(); if(cell.equals("snuke")){ row = i + 1; col = j; } } } System.out.println(String.format("%c%d", col + 'A', row)); } } }
Submission Info
Submission Time | |
---|---|
Task | A - Where's Snuke? |
User | Twilight |
Language | Java7 (OpenJDK 1.7.0) |
Score | 100 |
Code Size | 614 Byte |
Status | AC |
Exec Time | 164 ms |
Memory | 10324 KB |
Judge Result
Set Name | sample | all | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
sample | sample-01.txt, sample-02.txt |
all | 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 | AC | 133 ms | 9040 KB |
01-02.txt | AC | 132 ms | 9044 KB |
01-03.txt | AC | 132 ms | 9044 KB |
01-04.txt | AC | 131 ms | 9044 KB |
01-05.txt | AC | 164 ms | 10196 KB |
01-06.txt | AC | 149 ms | 10324 KB |
01-07.txt | AC | 159 ms | 10196 KB |
sample-01.txt | AC | 135 ms | 9172 KB |
sample-02.txt | AC | 131 ms | 9172 KB |