Submission #179866


Source Code Expand

using System;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;

class Program
{
    void Solve()
    {
        Console.WriteLine(Console.ReadLine() + "pp");
    }

    static void Main() { new Program().Solve(); }
    static Reader reader = new Reader(Console.In);

    class Reader
    {
        private readonly TextReader reader;
        private readonly char[] separator = new char[] { ' ' };
        private string[] s = new string[0];
        private int i;
        public Reader(TextReader r) { reader = r; }
        public bool HasNext() { return Enqueue(); }
        public string String() { return Dequeue(); }
        public int Int() { return int.Parse(Dequeue()); }
        public long Long() { return long.Parse(Dequeue()); }
        public double Double() { return double.Parse(Dequeue()); }
        public int[] IntLine() { return Array.ConvertAll(Line().Split(), int.Parse); }
        public int[] IntArray(int N) { return Enumerable.Range(0, N).Select(i => Int()).ToArray(); }
        public int[][] IntGrid(int H) { return Enumerable.Range(0, H).Select(i => IntLine()).ToArray(); }
        public string[] StringArray(int N) { return Enumerable.Range(0, N).Select(i => Line()).ToArray(); }
        public string Line() { return reader.ReadLine().Trim(); }
        private bool Enqueue()
        {
            if (i < s.Length) return true;
            string line = reader.ReadLine();
            if (string.IsNullOrEmpty(line)) return false;
            s = line.Split(separator, StringSplitOptions.RemoveEmptyEntries);
            i = 0;
            return true;
        }
        private string Dequeue() { Enqueue(); return s[i++]; }
    }
}

Submission Info

Submission Time
Task A - ハンドルネーム
User eitaho
Language C# (Mono 2.10.8.1)
Score 100
Code Size 1748 Byte
Status AC
Exec Time 140 ms
Memory 7444 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 5
Set Name Test Cases
All test_aaaaaaaaaa.txt, test_myonmyon.txt, test_nemui.txt, test_onakasuita.txt, test_p.txt
Case Name Status Exec Time Memory
sample_01.txt AC 140 ms 7432 KB
sample_02.txt AC 135 ms 7396 KB
test_aaaaaaaaaa.txt AC 132 ms 7396 KB
test_myonmyon.txt AC 134 ms 7444 KB
test_nemui.txt AC 129 ms 7396 KB
test_onakasuita.txt AC 136 ms 7400 KB
test_p.txt AC 128 ms 7400 KB