Submission #4329895
Source Code Expand
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Practice { class Program { static void Main(string[] args) { Solve(); } private const int MOD = 10007;// 1000000007; static void Solve() { var w = Console.ReadLine(); var sb = new StringBuilder(w.Length); for(int i=0;i<w.Length;++i) { var c = w[i]; if( c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o') { continue; } sb.Append(c); } var ans = sb.ToString(); Console.WriteLine(ans); } #region よく使う便利関数a private static bool isPrime(long x) { if(x == 2) { return true; } if(x < 2 || x % 2 == 0) { return false; } long i = 3; while(i * i <= x) { if(x % i == 0) { return false; } i = i + 2; } return true; } private static long lcm(long x, long y) { return x / gcd(x, y) * y; } private static long gcd(long x, long y) { return y > 0 ? gcd(y, x % y) : x; } private static long pow(long x, long n) { if(n == 0) { return 1; } long res = pow(x * x % MOD, n / 2); if(n % 2 == 1) { res = res * x % MOD; } return res; } private static int ReadAndParseInt() { return int.Parse(Console.ReadLine()); } private static int[] ReadAndParseIntArr() { return Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse); } private static long ReadAndParseLong() { return long.Parse(Console.ReadLine()); } private static long[] ReadAndParseLongArr() { return Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse); } /// <summary> /// 指定した値以上の先頭のインデクスを返す /// </summary> /// <typeparam name="T">比較する値の型</typeparam> /// <param name="arr">対象の配列(※ソート済みであること)</param> /// <param name="start">開始インデクス [inclusive]</param> /// <param name="end">終了インデクス [exclusive]</param> /// <param name="value">検索する値</param> /// <param name="comparer">比較関数(インターフェイス)</param> /// <returns>指定した値以上の先頭のインデクス</returns> public static int LowerBound<T>(IReadOnlyList<T> arr, int start, int end, T value, IComparer<T> comparer) { int low = start; int high = end; int mid; while(low < high) { mid = ((high - low) >> 1) + low; if(comparer.Compare(arr[mid], value) < 0) low = mid + 1; else high = mid; } return low; } //引数省略のオーバーロード public static int LowerBound<T>(IReadOnlyList<T> arr, T value) where T : IComparable { return LowerBound(arr, 0, arr.Count, value, Comparer<T>.Default); } /// <summary> /// 指定した値より大きい先頭のインデクスを返す /// </summary> /// <typeparam name="T">比較する値の型</typeparam> /// <param name="arr">対象の配列(※ソート済みであること)</param> /// <param name="start">開始インデクス [inclusive]</param> /// <param name="end">終了インデクス [exclusive]</param> /// <param name="value">検索する値</param> /// <param name="comparer">比較関数(インターフェイス)</param> /// <returns>指定した値より大きい先頭のインデクス</returns> public static int UpperBound<T>(IReadOnlyList<T> arr, int start, int end, T value, IComparer<T> comparer) { int low = start; int high = end; int mid; while(low < high) { mid = ((high - low) >> 1) + low; if(comparer.Compare(arr[mid], value) <= 0) low = mid + 1; else high = mid; } return low; } //引数省略のオーバーロード public static int UpperBound<T>(IReadOnlyList<T> arr, T value) { return UpperBound(arr, 0, arr.Count, value, Comparer<T>.Default); } #endregion } }
Submission Info
Submission Time | |
---|---|
Task | B - 罠 |
User | masakam1 |
Language | C# (Mono 4.6.2.0) |
Score | 100 |
Code Size | 3994 Byte |
Status | AC |
Exec Time | 20 ms |
Memory | 13140 KB |
Judge Result
Set Name | all | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
all | 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 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | AC | 19 ms | 9044 KB |
00_sample_02.txt | AC | 19 ms | 9044 KB |
00_sample_03.txt | AC | 20 ms | 11092 KB |
00_sample_04.txt | AC | 20 ms | 11092 KB |
test_aaaaaaaaaaaaaaaaaaaaaaaaaapaaa.txt | AC | 20 ms | 11092 KB |
test_abcdefghijklmnopqrstuvwxyz.txt | AC | 19 ms | 9044 KB |
test_aeuuoeuuooaoikuaouoo.txt | AC | 20 ms | 11092 KB |
test_aieeuoaoaeioeierrtwmmdkjylcbbj.txt | AC | 20 ms | 11092 KB |
test_aioeunu.txt | AC | 19 ms | 9044 KB |
test_aqahahuqugironiyog.txt | AC | 20 ms | 11092 KB |
test_ay.txt | AC | 20 ms | 11092 KB |
test_c.txt | AC | 20 ms | 13140 KB |
test_cizuci.txt | AC | 19 ms | 9044 KB |
test_clrhrnbnxmhvvrykgpvsjpylvns.txt | AC | 19 ms | 11092 KB |
test_clwxebedrzlfbey.txt | AC | 19 ms | 11092 KB |
test_dfiousakzbw.txt | AC | 20 ms | 11092 KB |
test_di.txt | AC | 19 ms | 9044 KB |
test_eeeeeleeeeeeeeeeeeeeeeeeeeeeee.txt | AC | 20 ms | 11092 KB |
test_eugfblf.txt | AC | 19 ms | 9044 KB |
test_faumfxzsfpgz.txt | AC | 20 ms | 11092 KB |
test_glpfsryzkcgbkmytzz.txt | AC | 19 ms | 9044 KB |
test_hzkx.txt | AC | 20 ms | 11092 KB |
test_iiiiiiiiiiiiiiiiiiiitiiiiiiiii.txt | AC | 19 ms | 9044 KB |
test_iyenewigoronadomeni.txt | AC | 20 ms | 11092 KB |
test_joda.txt | AC | 20 ms | 13140 KB |
test_k.txt | AC | 20 ms | 11092 KB |
test_kjjxmvpdpcbthjhqqqnsvmvxbtz.txt | AC | 20 ms | 11092 KB |
test_klaimqrlgrxzgsqkenng.txt | AC | 20 ms | 11092 KB |
test_mgjpfrkthffctppiueeeouiioeieoa.txt | AC | 19 ms | 11092 KB |
test_mhfrnzpxkmxjzvmqhwxg.txt | AC | 20 ms | 11092 KB |
test_mm.txt | AC | 19 ms | 9044 KB |
test_mvgvrpyghdszgfvznv.txt | AC | 19 ms | 9044 KB |
test_nu.txt | AC | 19 ms | 9044 KB |
test_oaiiioieoeiieiuooiueaouuuiw.txt | AC | 20 ms | 11092 KB |
test_oaqii.txt | AC | 19 ms | 9044 KB |
test_oit.txt | AC | 20 ms | 11092 KB |
test_omimujomevadimadom.txt | AC | 20 ms | 11092 KB |
test_oooooooooolooooooooooooooooooo.txt | AC | 19 ms | 9044 KB |
test_ooqo.txt | AC | 19 ms | 9044 KB |
test_ouioiaeiuaoaeiieuuiooeeqo.txt | AC | 20 ms | 11092 KB |
test_ow.txt | AC | 19 ms | 9044 KB |
test_pifofawezojisasotuj.txt | AC | 20 ms | 11092 KB |
test_pn.txt | AC | 20 ms | 11092 KB |
test_qgqsghgjczftdmvdtrztjdwhcds.txt | AC | 20 ms | 13140 KB |
test_rxifvbybdsqasoyjdskqwhlstx.txt | AC | 19 ms | 9044 KB |
test_s.txt | AC | 20 ms | 11092 KB |
test_taroakpyzmgkbhtklwfbk.txt | AC | 20 ms | 11092 KB |
test_tkttwgnpjlrkcmwkkcfkjtyb.txt | AC | 20 ms | 11092 KB |
test_uauoyouaaeoaoeooa.txt | AC | 19 ms | 9044 KB |
test_uphtuhurtdkmcidxfjtgqtdujblvht.txt | AC | 19 ms | 11092 KB |
test_uqzghmkf.txt | AC | 19 ms | 9044 KB |
test_usetumukiwukugekidefupalumimec.txt | AC | 20 ms | 11092 KB |
test_uueeuoeuviuiieuioeeauuuieeuiee.txt | AC | 19 ms | 9044 KB |
test_uuueueouaouuiuniaoaaeuaoaa.txt | AC | 19 ms | 11092 KB |
test_uuuuuuuujuuuuuuuuuuuuuuuuuuuuu.txt | AC | 20 ms | 9044 KB |
test_vokicozoyatekebagajiceb.txt | AC | 20 ms | 11092 KB |
test_xlsphqfmqrtrtvmpvbgnkr.txt | AC | 19 ms | 9044 KB |
test_yepelilemapakonarugupabepisoha.txt | AC | 19 ms | 9044 KB |
test_zkkyzwjgzmddvqtvvrcqhsrqlmqmkr.txt | AC | 20 ms | 11092 KB |