Submission #432387


Source Code Expand

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

namespace Contest
{
    class Program
    {
        static int Main(string[] args)
        {
            new Program().Process();

            return 0;
        }

        private CommonInput cin;

        private void Process()
        {
            this.cin = new CommonInput();

            int x;
            string s;

            s = this.cin.GetNext();
            x = this.cin.GetNextToInt();

            Console.WriteLine(s[(x - 1) / 5].ToString() + s[(x - 1) % 5].ToString());
        }
    }

    public class CommonInput
    {
        public CommonInput()
        {
            this._s = new string[0];
            this._i = 0;
        }

        public string Line { get; set; }
        private string[] _s;
        private int _i;
        private char[] _sep = { ' ' };

        public void GetLine()
        {
            this._i = 0;
            do
            {
                this.Line = Console.ReadLine();
            } while (this.Line == "");

            if (this.Line != null)
                this._s = this.Line.Split(this._sep, StringSplitOptions.RemoveEmptyEntries);
        }

        public string GetNext()
        {
            if (this._i < this._s.Length)
                return this._s[this._i++];

            this.GetLine();

            return this._s[this._i++];
        }

        public int GetNextToInt()
        {
            return int.Parse(this.GetNext());
        }

        public long GetNextToLong()
        {
            return long.Parse(this.GetNext());
        }

        public double GetNextToDouble()
        {
            return double.Parse(this.GetNext());
        }
    }
}

Submission Info

Submission Time
Task A - 25個の文字列
User carotene023
Language C# (Mono 3.2.1.0)
Score 100
Code Size 1806 Byte
Status AC
Exec Time 119 ms
Memory 8904 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 33
Set Name Test Cases
Sample sample-01.txt, sample-02.txt, sample-03.txt
All test-01.txt, test-02.txt, test-03.txt, test-04.txt, test-05.txt, test-06.txt, test-07.txt, test-08.txt, test-09.txt, test-10.txt, test-11.txt, test-12.txt, test-13.txt, test-14.txt, test-15.txt, test-16.txt, test-17.txt, test-18.txt, test-19.txt, test-20.txt, test-21.txt, test-22.txt, test-23.txt, test-24.txt, test-25.txt, test-26.txt, test-27.txt, test-28.txt, test-29.txt, test-30.txt, sample-01.txt, sample-02.txt, sample-03.txt
Case Name Status Exec Time Memory
sample-01.txt AC 114 ms 8872 KB
sample-02.txt AC 114 ms 8820 KB
sample-03.txt AC 114 ms 8904 KB
test-01.txt AC 118 ms 8900 KB
test-02.txt AC 117 ms 8872 KB
test-03.txt AC 117 ms 8872 KB
test-04.txt AC 115 ms 8860 KB
test-05.txt AC 115 ms 8868 KB
test-06.txt AC 117 ms 8872 KB
test-07.txt AC 118 ms 8868 KB
test-08.txt AC 115 ms 8872 KB
test-09.txt AC 116 ms 8872 KB
test-10.txt AC 115 ms 8868 KB
test-11.txt AC 119 ms 8872 KB
test-12.txt AC 114 ms 8872 KB
test-13.txt AC 114 ms 8876 KB
test-14.txt AC 115 ms 8876 KB
test-15.txt AC 116 ms 8820 KB
test-16.txt AC 114 ms 8824 KB
test-17.txt AC 117 ms 8880 KB
test-18.txt AC 114 ms 8872 KB
test-19.txt AC 115 ms 8872 KB
test-20.txt AC 114 ms 8868 KB
test-21.txt AC 115 ms 8872 KB
test-22.txt AC 115 ms 8868 KB
test-23.txt AC 111 ms 8848 KB
test-24.txt AC 113 ms 8848 KB
test-25.txt AC 111 ms 8876 KB
test-26.txt AC 113 ms 8832 KB
test-27.txt AC 111 ms 8876 KB
test-28.txt AC 111 ms 8876 KB
test-29.txt AC 113 ms 8904 KB
test-30.txt AC 113 ms 8872 KB