Submission #991653
Source Code Expand
import java.util.*; import java.io.*; import java.awt.geom.*; import java.math.*; public class Main { static final Scanner in = new Scanner(System.in); static final PrintWriter out = new PrintWriter(System.out,false); static boolean debug = false; static void solve() { int h = in.nextInt(); int w = in.nextInt(); for (int i=0; i<h; i++) { for (int j=0; j<w; j++) { String s = in.next(); if ("snuke".equals(s)) { int a = 'A' + j; out.print((char)a); out.println((i+1)); } } } } public static void main(String[] args) { debug = args.length > 0; long start = System.nanoTime(); solve(); out.flush(); long end = System.nanoTime(); dump((end - start) / 1000000 + " ms"); in.close(); out.close(); } static void dump(Object... o) { if (debug) System.err.println(Arrays.deepToString(o)); } }
Submission Info
Submission Time | |
---|---|
Task | A - Where's Snuke? |
User | t8m8 |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 898 Byte |
Status | AC |
Exec Time | 182 ms |
Memory | 10320 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 | 135 ms | 10320 KB |
01-02.txt | AC | 119 ms | 9676 KB |
01-03.txt | AC | 182 ms | 9680 KB |
01-04.txt | AC | 127 ms | 9676 KB |
01-05.txt | AC | 149 ms | 10192 KB |
01-06.txt | AC | 134 ms | 9808 KB |
01-07.txt | AC | 138 ms | 9808 KB |
sample-01.txt | AC | 124 ms | 9804 KB |
sample-02.txt | AC | 122 ms | 9672 KB |