Submission #992252


Source Code Expand

using System;
using System.Text;
using System.Collections.Generic;
class Solve{
    int H,W;
    string[,] s;
    public Solve(){}
    StringBuilder sb;
    public static int Main(){
        new Solve().Run();
        return 0;
    }
    void Run(){
        sb = new StringBuilder();
        Read();
        Calc();
        Console.Write(sb.ToString());
    }
    void Calc(){
        for(int i=0;i<H;i++){
            for(int j=0;j<W;j++){
                if(s[i,j] == "snuke"){
                    sb.Append((char)(j+'A')+"");
                    sb.Append((int)(i+1)+"\n");
                }
            }
        }
    }
    void Read(){
        string[] str = Console.ReadLine().Split(' ');
        H = int.Parse(str[0]);
        W = int.Parse(str[1]);
        s = new string[H,W];
        for(int i=0;i<H;i++){
            str = Console.ReadLine().Split(' ');
            for(int j=0;j<W;j++){
                s[i,j] = str[j];
            }
        }
    }    
}

Submission Info

Submission Time
Task A - Where's Snuke?
User leign
Language C# (Mono 4.6.2.0)
Score 100
Code Size 1008 Byte
Status AC
Exec Time 21 ms
Memory 2776 KB

Judge Result

Set Name sample all
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 9
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 21 ms 2776 KB
01-02.txt AC 19 ms 2648 KB
01-03.txt AC 20 ms 2648 KB
01-04.txt AC 19 ms 2648 KB
01-05.txt AC 20 ms 2776 KB
01-06.txt AC 20 ms 2648 KB
01-07.txt AC 19 ms 2648 KB
sample-01.txt AC 20 ms 2648 KB
sample-02.txt AC 19 ms 2648 KB