AtCoder Beginner Contest 002

Submission #4648268

Source codeソースコード

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Scanner;
 
public class Main {
 
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        List<Character> list = new ArrayList<>();

        for(int i=0; i < str.length(); i++){
        char a = str.charAt(i);
        list.add(a);
        }

        for(int i = 0; i < list.size(); i++){
            char mozi = list.get(i);

            if(mozi == 'a' || mozi == 'i' || mozi == 'u' || mozi == 'e' || mozi == 'o'){
                list.remove(i);
            }

        }
        
        String ans = "b";
        for(int i = 0; i < list.size(); i++){
            char aa = list.get(i);
            String a = String.valueOf(aa);

            ans = ans + a;
            
        }

        System.out.println(ans.substring(1));

    }
}

Submission

Task問題 B - 罠
User nameユーザ名 Snya
Created time投稿日時
Language言語 Java8 (OpenJDK 1.8.0)
Status状態 WA
Score得点 0
Source lengthソースコード長 951 Byte
File nameファイル名
Exec time実行時間 ms
Memory usageメモリ使用量 -

Test case

Set

Set name Score得点 / Max score Cases
all 0 / 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 WA
00_sample_02.txt AC 91 ms 21332 KB
00_sample_03.txt WA
00_sample_04.txt WA
test_aaaaaaaaaaaaaaaaaaaaaaaaaapaaa.txt WA
test_abcdefghijklmnopqrstuvwxyz.txt AC 90 ms 20692 KB
test_aeuuoeuuooaoikuaouoo.txt WA
test_aieeuoaoaeioeierrtwmmdkjylcbbj.txt WA
test_aioeunu.txt WA
test_aqahahuqugironiyog.txt AC 90 ms 20688 KB
test_ay.txt AC 89 ms 18644 KB
test_c.txt AC 90 ms 21332 KB
test_cizuci.txt AC 89 ms 19284 KB
test_clrhrnbnxmhvvrykgpvsjpylvns.txt AC 92 ms 21076 KB
test_clwxebedrzlfbey.txt AC 89 ms 18516 KB
test_dfiousakzbw.txt WA
test_di.txt AC 87 ms 21588 KB
test_eeeeeleeeeeeeeeeeeeeeeeeeeeeee.txt WA
test_eugfblf.txt WA
test_faumfxzsfpgz.txt WA
test_glpfsryzkcgbkmytzz.txt AC 89 ms 20948 KB
test_hzkx.txt AC 93 ms 21712 KB
test_iiiiiiiiiiiiiiiiiiiitiiiiiiiii.txt WA
test_iyenewigoronadomeni.txt AC 92 ms 21332 KB
test_joda.txt AC 90 ms 21460 KB
test_k.txt AC 90 ms 21204 KB
test_kjjxmvpdpcbthjhqqqnsvmvxbtz.txt AC 91 ms 18632 KB
test_klaimqrlgrxzgsqkenng.txt WA
test_mgjpfrkthffctppiueeeouiioeieoa.txt WA
test_mhfrnzpxkmxjzvmqhwxg.txt AC 90 ms 20556 KB
test_mm.txt AC 91 ms 20564 KB
test_mvgvrpyghdszgfvznv.txt AC 89 ms 19924 KB
test_nu.txt AC 90 ms 19796 KB
test_oaiiioieoeiieiuooiueaouuuiw.txt WA
test_oaqii.txt WA
test_oit.txt WA
test_omimujomevadimadom.txt AC 91 ms 21460 KB
test_oooooooooolooooooooooooooooooo.txt WA
test_ooqo.txt WA
test_ouioiaeiuaoaeiieuuiooeeqo.txt WA
test_ow.txt AC 91 ms 21588 KB
test_pifofawezojisasotuj.txt AC 90 ms 19156 KB
test_pn.txt AC 88 ms 19156 KB
test_qgqsghgjczftdmvdtrztjdwhcds.txt AC 89 ms 20052 KB
test_rxifvbybdsqasoyjdskqwhlstx.txt AC 91 ms 18768 KB
test_s.txt AC 91 ms 21204 KB
test_taroakpyzmgkbhtklwfbk.txt WA
test_tkttwgnpjlrkcmwkkcfkjtyb.txt AC 91 ms 19284 KB
test_uauoyouaaeoaoeooa.txt WA
test_uphtuhurtdkmcidxfjtgqtdujblvht.txt AC 91 ms 20688 KB
test_uqzghmkf.txt AC 91 ms 20564 KB
test_usetumukiwukugekidefupalumimec.txt AC 90 ms 17876 KB
test_uueeuoeuviuiieuioeeauuuieeuiee.txt WA
test_uuueueouaouuiuniaoaaeuaoaa.txt WA
test_uuuuuuuujuuuuuuuuuuuuuuuuuuuuu.txt WA
test_vokicozoyatekebagajiceb.txt AC 92 ms 17748 KB
test_xlsphqfmqrtrtvmpvbgnkr.txt AC 90 ms 18516 KB
test_yepelilemapakonarugupabepisoha.txt AC 92 ms 21332 KB
test_zkkyzwjgzmddvqtvvrcqhsrqlmqmkr.txt AC 91 ms 19412 KB