AtCoder Beginner Contest 002

Submission #3731766

Source codeソースコード

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using static System.Math;
// ReSharper disable MemberCanBeMadeStatic.Local
// ReSharper disable PossibleNullReferenceException
// ReSharper disable UnusedMember.Global
// ReSharper disable UnusedMember.Local
// ReSharper disable ArrangeTypeMemberModifiers
// ReSharper disable SuggestVarOrType_BuiltInTypes
// ReSharper disable SuggestVarOrType_Elsewhere
// ReSharper disable InvertIf
// ReSharper disable InconsistentNaming
// ReSharper disable ConvertIfStatementToSwitchStatement
// ReSharper disable UseObjectOrCollectionInitializer
#pragma warning disable

namespace AtCoder
{
    public class Program
    {
        public static void Main(string[] args)
        {
            new Program().Solve();
            Console.Read();
        }


        private void Solve()
        {
            Console.WriteLine(cin.Str.Replace("a", "").Replace("i", "").Replace("u", "").Replace("e", "").Replace("o", ""));
        }



        /// <summary>aとbをスワップする</summary>
        void Swap(ref int a, ref int b)
        {
            var tmp = b;
            b = a;
            a = tmp;
        }

        /// <summary>aとbの最大公約数を求める</summary>
        static long Gcd(long a, long b)
        {
            while (true)
            {
                if (a < b)
                {
                    var a1 = a;
                    a = b;
                    b = a1;
                    continue;
                }

                if (b > 0)
                {
                    var a1 = a;
                    a = b;
                    b = a1 % b;
                    continue;
                }
                return a;
            }
        }

        /// <summary>aとbの最小公約数を求める</summary>
        static long Lcm(long a, long b)
        {
            return a / Gcd(a, b) * b;
        }

    }

#pragma warning disable IDE1006 // 命名スタイル
    public static class cin
#pragma warning restore IDE1006 // 命名スタイル
    {
        private const char _separator = ' ';
        private static readonly Queue<string> _input = new Queue<string>();


        public static string ReadLine => Console.ReadLine();

        public static string Str => Read;
        public static string Read
        {
            get {
                if (_input.Count != 0) return _input.Dequeue();

                // ReSharper disable once PossibleNullReferenceException
                var tmp = Console.ReadLine().Split(_separator);
                foreach (var val in tmp)
                {
                    _input.Enqueue(val);
                }

                return _input.Dequeue();
            }
        }

        public static int Int => int.Parse(Read);

        public static long Long => long.Parse(Read);

        public static double Double => double.Parse(Read);

        public static string[] StrArray(long n)
        {
            var ret = new string[n];
            for (long i = 0; i < n; ++i) ret[i] = Read;
            return ret;
        }

        public static int[] IntArray(long n)
        {
            var ret = new int[n];
            for (long i = 0; i < n; ++i) ret[i] = Int;
            return ret;
        }

        public static long[] LongArray(long n)
        {
            var ret = new long[n];
            for (long i = 0; i < n; ++i) ret[i] = Long;
            return ret;
        }

        static bool TypeEquals<T, U>() => typeof(T) == typeof(U);
        static T ChangeType<T, U>(U a) => (T)System.Convert.ChangeType(a, typeof(T));
        static T Convert<T>(string s) => TypeEquals<T, int>() ? ChangeType<T, int>(int.Parse(s))
            : TypeEquals<T, long>() ? ChangeType<T, long>(long.Parse(s))
            : TypeEquals<T, double>() ? ChangeType<T, double>(double.Parse(s))
            : TypeEquals<T, char>() ? ChangeType<T, char>(s[0])
            : ChangeType<T, string>(s);

        static void Multi<T>(out T a) => a = Convert<T>(Str);
        static void Multi<T, U>(out T a, out U b)
        {
            var ar = StrArray(2); a = Convert<T>(ar[0]); b = Convert<U>(ar[1]);
        }
        static void Multi<T, U, V>(out T a, out U b, out V c)
        {
            var ar = StrArray(3); a = Convert<T>(ar[0]); b = Convert<U>(ar[1]); c = Convert<V>(ar[2]);
        }
    }
}

Submission

Task問題 B - 罠
User nameユーザ名 Kichi_128
Created time投稿日時
Language言語 C# (Mono 4.6.2.0)
Status状態 AC
Score得点 100
Source lengthソースコード長 4564 Byte
File nameファイル名
Exec time実行時間 24 ms
Memory usageメモリ使用量 13268 KB

Test case

Set

Set name Score得点 / Max score Cases
all 100 / 100 00_sample_01.txt,00_sample_02.txt,00_sample_03.txt,00_sample_04.txt,test_aaaaaaaaaaaaaaaaaaaaaaaaaapaaa.txt,test_abcdefghijklmnopqrstuvwxyz.txt,test_aeuuoeuuooaoikuaouoo.txt,test_aieeuoaoaeioeierrtwmmdkjylcbbj.txt,test_aioeunu.txt,test_aqahahuqugironiyog.txt,test_ay.txt,test_c.txt,test_cizuci.txt,test_clrhrnbnxmhvvrykgpvsjpylvns.txt,test_clwxebedrzlfbey.txt,test_dfiousakzbw.txt,test_di.txt,test_eeeeeleeeeeeeeeeeeeeeeeeeeeeee.txt,test_eugfblf.txt,test_faumfxzsfpgz.txt,test_glpfsryzkcgbkmytzz.txt,test_hzkx.txt,test_iiiiiiiiiiiiiiiiiiiitiiiiiiiii.txt,test_iyenewigoronadomeni.txt,test_joda.txt,test_k.txt,test_kjjxmvpdpcbthjhqqqnsvmvxbtz.txt,test_klaimqrlgrxzgsqkenng.txt,test_mgjpfrkthffctppiueeeouiioeieoa.txt,test_mhfrnzpxkmxjzvmqhwxg.txt,test_mm.txt,test_mvgvrpyghdszgfvznv.txt,test_nu.txt,test_oaiiioieoeiieiuooiueaouuuiw.txt,test_oaqii.txt,test_oit.txt,test_omimujomevadimadom.txt,test_oooooooooolooooooooooooooooooo.txt,test_ooqo.txt,test_ouioiaeiuaoaeiieuuiooeeqo.txt,test_ow.txt,test_pifofawezojisasotuj.txt,test_pn.txt,test_qgqsghgjczftdmvdtrztjdwhcds.txt,test_rxifvbybdsqasoyjdskqwhlstx.txt,test_s.txt,test_taroakpyzmgkbhtklwfbk.txt,test_tkttwgnpjlrkcmwkkcfkjtyb.txt,test_uauoyouaaeoaoeooa.txt,test_uphtuhurtdkmcidxfjtgqtdujblvht.txt,test_uqzghmkf.txt,test_usetumukiwukugekidefupalumimec.txt,test_uueeuoeuviuiieuioeeauuuieeuiee.txt,test_uuueueouaouuiuniaoaaeuaoaa.txt,test_uuuuuuuujuuuuuuuuuuuuuuuuuuuuu.txt,test_vokicozoyatekebagajiceb.txt,test_xlsphqfmqrtrtvmpvbgnkr.txt,test_yepelilemapakonarugupabepisoha.txt,test_zkkyzwjgzmddvqtvvrcqhsrqlmqmkr.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
00_sample_01.txt AC 22 ms 9172 KB
00_sample_02.txt AC 23 ms 11220 KB
00_sample_03.txt AC 22 ms 9172 KB
00_sample_04.txt AC 23 ms 11220 KB
test_aaaaaaaaaaaaaaaaaaaaaaaaaapaaa.txt AC 23 ms 11220 KB
test_abcdefghijklmnopqrstuvwxyz.txt AC 23 ms 11220 KB
test_aeuuoeuuooaoikuaouoo.txt AC 23 ms 11220 KB
test_aieeuoaoaeioeierrtwmmdkjylcbbj.txt AC 23 ms 9172 KB
test_aioeunu.txt AC 24 ms 11220 KB
test_aqahahuqugironiyog.txt AC 23 ms 9172 KB
test_ay.txt AC 23 ms 9172 KB
test_c.txt AC 23 ms 11220 KB
test_cizuci.txt AC 23 ms 9172 KB
test_clrhrnbnxmhvvrykgpvsjpylvns.txt AC 23 ms 9172 KB
test_clwxebedrzlfbey.txt AC 23 ms 11220 KB
test_dfiousakzbw.txt AC 22 ms 9172 KB
test_di.txt AC 23 ms 9172 KB
test_eeeeeleeeeeeeeeeeeeeeeeeeeeeee.txt AC 23 ms 9172 KB
test_eugfblf.txt AC 23 ms 9172 KB
test_faumfxzsfpgz.txt AC 23 ms 9172 KB
test_glpfsryzkcgbkmytzz.txt AC 24 ms 11220 KB
test_hzkx.txt AC 24 ms 11220 KB
test_iiiiiiiiiiiiiiiiiiiitiiiiiiiii.txt AC 23 ms 9172 KB
test_iyenewigoronadomeni.txt AC 24 ms 13268 KB
test_joda.txt AC 24 ms 13268 KB
test_k.txt AC 24 ms 11220 KB
test_kjjxmvpdpcbthjhqqqnsvmvxbtz.txt AC 24 ms 11220 KB
test_klaimqrlgrxzgsqkenng.txt AC 23 ms 9172 KB
test_mgjpfrkthffctppiueeeouiioeieoa.txt AC 22 ms 9172 KB
test_mhfrnzpxkmxjzvmqhwxg.txt AC 23 ms 11220 KB
test_mm.txt AC 23 ms 11220 KB
test_mvgvrpyghdszgfvznv.txt AC 23 ms 9172 KB
test_nu.txt AC 23 ms 9172 KB
test_oaiiioieoeiieiuooiueaouuuiw.txt AC 23 ms 9172 KB
test_oaqii.txt AC 23 ms 9172 KB
test_oit.txt AC 23 ms 9172 KB
test_omimujomevadimadom.txt AC 23 ms 9172 KB
test_oooooooooolooooooooooooooooooo.txt AC 23 ms 11220 KB
test_ooqo.txt AC 23 ms 11220 KB
test_ouioiaeiuaoaeiieuuiooeeqo.txt AC 23 ms 9172 KB
test_ow.txt AC 23 ms 9172 KB
test_pifofawezojisasotuj.txt AC 23 ms 11220 KB
test_pn.txt AC 23 ms 9172 KB
test_qgqsghgjczftdmvdtrztjdwhcds.txt AC 23 ms 9172 KB
test_rxifvbybdsqasoyjdskqwhlstx.txt AC 23 ms 11220 KB
test_s.txt AC 23 ms 9172 KB
test_taroakpyzmgkbhtklwfbk.txt AC 23 ms 9172 KB
test_tkttwgnpjlrkcmwkkcfkjtyb.txt AC 22 ms 9172 KB
test_uauoyouaaeoaoeooa.txt AC 23 ms 11220 KB
test_uphtuhurtdkmcidxfjtgqtdujblvht.txt AC 22 ms 9172 KB
test_uqzghmkf.txt AC 23 ms 9172 KB
test_usetumukiwukugekidefupalumimec.txt AC 23 ms 11220 KB
test_uueeuoeuviuiieuioeeauuuieeuiee.txt AC 23 ms 11220 KB
test_uuueueouaouuiuniaoaaeuaoaa.txt AC 23 ms 9172 KB
test_uuuuuuuujuuuuuuuuuuuuuuuuuuuuu.txt AC 22 ms 9172 KB
test_vokicozoyatekebagajiceb.txt AC 23 ms 11220 KB
test_xlsphqfmqrtrtvmpvbgnkr.txt AC 23 ms 11220 KB
test_yepelilemapakonarugupabepisoha.txt AC 22 ms 9172 KB
test_zkkyzwjgzmddvqtvvrcqhsrqlmqmkr.txt AC 23 ms 9172 KB