Submission #1245087
Source Code Expand
using System; using System.Linq; namespace codefestival_2016_final_a { class Program { static void Main(string[] args) { int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray(); string[,] s = new string[x[0], x[1]]; for (int i = 0; i < x[0]; i++) { string[] a = Console.ReadLine().Split(); for (int j = 0; j < x[1]; j++) { s[i, j] = a[j]; } } bool find = false; for (int i = 0; !find; i++) { for (int j = 0; j < x[1]; j++) { if (s[i, j] == "snuke") { find = true; Console.Write((char)(j + 65)); Console.WriteLine(i + 1); } } } } } }
Submission Info
Submission Time | |
---|---|
Task | A - Where's Snuke? |
User | mencotton |
Language | C# (Mono 4.6.2.0) |
Score | 100 |
Code Size | 984 Byte |
Status | AC |
Exec Time | 25 ms |
Memory | 13396 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, sample-01.txt, sample-02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01-01.txt | AC | 25 ms | 11348 KB |
01-02.txt | AC | 24 ms | 13268 KB |
01-03.txt | AC | 23 ms | 11348 KB |
01-04.txt | AC | 23 ms | 11220 KB |
01-05.txt | AC | 23 ms | 9172 KB |
01-06.txt | AC | 23 ms | 11220 KB |
01-07.txt | AC | 23 ms | 9172 KB |
sample-01.txt | AC | 23 ms | 11348 KB |
sample-02.txt | AC | 24 ms | 13396 KB |