Submission #4249802


Source Code Expand

Copy
#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define llong long long
#define pb(a) push_back(a)
#define INF 999999999
using namespace std;
typedef vector<vector<int> > vvi;
typedef vector<int> vi;
typedef vector<string> vst;
typedef pair<int, int> P;
typedef pair<llong, llong> LP;
typedef pair<int, P> PP;
typedef pair<llong, LP> LPP;
 
int dy[]={0, 0, 1, -1, 0};
int dx[]={1, -1, 0, 0, 0};


struct k{
    int s,e;
};

bool asc( const k& left, const k& right ) {
    return left.s < right.s;
}

int main(){
    string s;
    cin >> s;

    int i=0,j=1;
    while(i<s.size()){
        if(s[i]=='a'|| s[i]=='i' || s[i]=='u' || s[i]=='e' || s[i]=='o'){
            s.erase(s.begin()+i);
        }
        else{
            i++;
        }
    }

    cout << s << endl;

    return 0;
}

Submission Info

Submission Time
Task B - 罠
User yukitovn7
Language C++14 (GCC 5.4.1)
Score 100
Code Size 1071 Byte
Status
Exec Time 1 ms
Memory 256 KB

Judge Result

Set Name Score / Max Score Test 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
Case Name Status Exec Time Memory
00_sample_01.txt 1 ms 256 KB
00_sample_02.txt 1 ms 256 KB
00_sample_03.txt 1 ms 256 KB
00_sample_04.txt 1 ms 256 KB
test_aaaaaaaaaaaaaaaaaaaaaaaaaapaaa.txt 1 ms 256 KB
test_abcdefghijklmnopqrstuvwxyz.txt 1 ms 256 KB
test_aeuuoeuuooaoikuaouoo.txt 1 ms 256 KB
test_aieeuoaoaeioeierrtwmmdkjylcbbj.txt 1 ms 256 KB
test_aioeunu.txt 1 ms 256 KB
test_aqahahuqugironiyog.txt 1 ms 256 KB
test_ay.txt 1 ms 256 KB
test_c.txt 1 ms 256 KB
test_cizuci.txt 1 ms 256 KB
test_clrhrnbnxmhvvrykgpvsjpylvns.txt 1 ms 256 KB
test_clwxebedrzlfbey.txt 1 ms 256 KB
test_dfiousakzbw.txt 1 ms 256 KB
test_di.txt 1 ms 256 KB
test_eeeeeleeeeeeeeeeeeeeeeeeeeeeee.txt 1 ms 256 KB
test_eugfblf.txt 1 ms 256 KB
test_faumfxzsfpgz.txt 1 ms 256 KB
test_glpfsryzkcgbkmytzz.txt 1 ms 256 KB
test_hzkx.txt 1 ms 256 KB
test_iiiiiiiiiiiiiiiiiiiitiiiiiiiii.txt 1 ms 256 KB
test_iyenewigoronadomeni.txt 1 ms 256 KB
test_joda.txt 1 ms 256 KB
test_k.txt 1 ms 256 KB
test_kjjxmvpdpcbthjhqqqnsvmvxbtz.txt 1 ms 256 KB
test_klaimqrlgrxzgsqkenng.txt 1 ms 256 KB
test_mgjpfrkthffctppiueeeouiioeieoa.txt 1 ms 256 KB
test_mhfrnzpxkmxjzvmqhwxg.txt 1 ms 256 KB
test_mm.txt 1 ms 256 KB
test_mvgvrpyghdszgfvznv.txt 1 ms 256 KB
test_nu.txt 1 ms 256 KB
test_oaiiioieoeiieiuooiueaouuuiw.txt 1 ms 256 KB
test_oaqii.txt 1 ms 256 KB
test_oit.txt 1 ms 256 KB
test_omimujomevadimadom.txt 1 ms 256 KB
test_oooooooooolooooooooooooooooooo.txt 1 ms 256 KB
test_ooqo.txt 1 ms 256 KB
test_ouioiaeiuaoaeiieuuiooeeqo.txt 1 ms 256 KB
test_ow.txt 1 ms 256 KB
test_pifofawezojisasotuj.txt 1 ms 256 KB
test_pn.txt 1 ms 256 KB
test_qgqsghgjczftdmvdtrztjdwhcds.txt 1 ms 256 KB
test_rxifvbybdsqasoyjdskqwhlstx.txt 1 ms 256 KB
test_s.txt 1 ms 256 KB
test_taroakpyzmgkbhtklwfbk.txt 1 ms 256 KB
test_tkttwgnpjlrkcmwkkcfkjtyb.txt 1 ms 256 KB
test_uauoyouaaeoaoeooa.txt 1 ms 256 KB
test_uphtuhurtdkmcidxfjtgqtdujblvht.txt 1 ms 256 KB
test_uqzghmkf.txt 1 ms 256 KB
test_usetumukiwukugekidefupalumimec.txt 1 ms 256 KB
test_uueeuoeuviuiieuioeeauuuieeuiee.txt 1 ms 256 KB
test_uuueueouaouuiuniaoaaeuaoaa.txt 1 ms 256 KB
test_uuuuuuuujuuuuuuuuuuuuuuuuuuuuu.txt 1 ms 256 KB
test_vokicozoyatekebagajiceb.txt 1 ms 256 KB
test_xlsphqfmqrtrtvmpvbgnkr.txt 1 ms 256 KB
test_yepelilemapakonarugupabepisoha.txt 1 ms 256 KB
test_zkkyzwjgzmddvqtvvrcqhsrqlmqmkr.txt 1 ms 256 KB