Submission #991613
Source Code Expand
import static java.lang.System.in; import static java.lang.System.out; import java.io.*; import java.util.*; public class Main { static final double EPS = 1e-10; static final double INF = 1L << 31; static final double PI = Math.PI; public static Scanner sc = new Scanner(in); static StringBuilder sb = new StringBuilder(); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public void run() throws IOException { String input; String[] inputArray; input = br.readLine(); inputArray = input.split(" "); int h = Integer.valueOf(inputArray[0]); int w = Integer.valueOf(inputArray[1]); for (int i=0; i<h; i++){ input = br.readLine(); inputArray = input.split(" "); for (int j=0; j<w; j++){ if (inputArray[j].equals("snuke")){ sb.append((char)('A'+j)); sb.append((i+1)); return; } } }; } public static void main(String[] args) throws IOException { new Main().run(); ln(sb); } public static void ln(Object obj) { out.println(obj); } }
Submission Info
Submission Time | |
---|---|
Task | A - Where's Snuke? |
User | batchunag |
Language | Java7 (OpenJDK 1.7.0) |
Score | 100 |
Code Size | 1071 Byte |
Status | AC |
Exec Time | 139 ms |
Memory | 9300 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 | 9044 KB |
01-02.txt | AC | 124 ms | 8916 KB |
01-03.txt | AC | 124 ms | 9044 KB |
01-04.txt | AC | 128 ms | 8916 KB |
01-05.txt | AC | 139 ms | 9300 KB |
01-06.txt | AC | 139 ms | 9296 KB |
01-07.txt | AC | 135 ms | 9044 KB |
sample-01.txt | AC | 124 ms | 8916 KB |
sample-02.txt | AC | 123 ms | 8916 KB |