Submission #1258571


Source Code Expand

using System;
using System.Collections.Generic;
using System.Linq;

class Program
{
    static void Main(string[] args)
    {
        int[] a = Read.Ints();
        for (int i = 0; i < a[0]; i++)
        {
            string[] s = Read.Strs();
            for (int k = 0; k < a[1]; k++)
            {
                if (s[k] == "snuke")
                {
                    Console.WriteLine((char)(k+'A')+""+(i+1));
                    break;
                }
            }
        }Console.ReadLine();
    }
}
public static class Read
{
    public static string read() { return Console.ReadLine(); }
    public static void outl(string n = "") { Console.WriteLine(n); return; }
    public static bool IsPrime(long n)
    {
        if (n < 2) return false;
        if (n == 2) return true;

        for (int i = 2; i < n; i++)
        {
            if (n % i == 0) return false;
        }
        return true;
    }
    public static int Int()
    {
        return int.Parse(Console.ReadLine());
    }
    public static int[] Ints()
    {
        return Console.ReadLine().Split().Select(int.Parse).ToArray();
    }
    public static string Str() { return Console.ReadLine(); }
    public static string[] Strs() { return Console.ReadLine().Split(); }
}

Submission Info

Submission Time
Task A - Where's Snuke?
User rayhotate
Language C# (Mono 4.6.2.0)
Score 100
Code Size 1303 Byte
Status AC
Exec Time 26 ms
Memory 13268 KB

Judge Result

Set Name sample all
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 11
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 26 ms 11220 KB
01-02.txt AC 25 ms 11220 KB
01-03.txt AC 25 ms 11220 KB
01-04.txt AC 24 ms 11220 KB
01-05.txt AC 24 ms 11348 KB
01-06.txt AC 24 ms 11220 KB
01-07.txt AC 25 ms 13268 KB
sample-01.txt AC 24 ms 11348 KB
sample-02.txt AC 24 ms 11220 KB