AtCoder Beginner Contest 002

Submission #1771450

Source codeソースコード

#include <iostream>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <ctime>
#include <cstring>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <deque>
#include <map>
#include <set>
#include <bitset>
#include <numeric>
#include <utility>
#include <iomanip>
#include <algorithm>
#include <functional>
using namespace std;

#define COUT(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << endl
#define EACH(i, s) for (__typeof__((s).begin()) i = (s).begin(); i != (s).end(); ++i)

template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
template<class T1, class T2> ostream& operator << (ostream &s, pair<T1,T2> P)
{ return s << '<' << P.first << ", " << P.second << '>'; }
template<class T> ostream& operator << (ostream &s, vector<T> P)
{ for (int i = 0; i < P.size(); ++i) { if (i > 0) { s << " "; } s << P[i]; } return s; }
template<class T> ostream& operator << (ostream &s, vector<vector<T> > P)
{ for (int i = 0; i < P.size(); ++i) { s << endl << P[i]; } return s << endl; }
template<class T1, class T2> ostream& operator << (ostream &s, map<T1,T2> P)
{ EACH(it, P) { s << "<" << it->first << "->" << it->second << "> "; } return s << endl; }

string str;
char bo[5] = {'a', 'i', 'u', 'e', 'o'};

int main() {
    cin >> str;
    string res = "";
    for (int i = 0; i < str.size(); ++i) {
        bool ok = true;
        for  (int j = 0; j < 5; ++j) if (str[i] == bo[j]) ok = false;
        if (ok) res += str[i];
    }
    cout << res << endl;
}













Submission

Task問題 B - 罠
User nameユーザ名 drken
Created time投稿日時
Language言語 C++14 (GCC 5.4.1)
Status状態 AC
Score得点 100
Source lengthソースコード長 1731 Byte
File nameファイル名
Exec time実行時間 2 ms
Memory usageメモリ使用量 256 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 2 ms 256 KB
00_sample_02.txt AC 1 ms 256 KB
00_sample_03.txt AC 1 ms 256 KB
00_sample_04.txt AC 1 ms 256 KB
test_aaaaaaaaaaaaaaaaaaaaaaaaaapaaa.txt AC 1 ms 256 KB
test_abcdefghijklmnopqrstuvwxyz.txt AC 1 ms 256 KB
test_aeuuoeuuooaoikuaouoo.txt AC 1 ms 256 KB
test_aieeuoaoaeioeierrtwmmdkjylcbbj.txt AC 1 ms 256 KB
test_aioeunu.txt AC 1 ms 256 KB
test_aqahahuqugironiyog.txt AC 1 ms 256 KB
test_ay.txt AC 1 ms 256 KB
test_c.txt AC 1 ms 256 KB
test_cizuci.txt AC 1 ms 256 KB
test_clrhrnbnxmhvvrykgpvsjpylvns.txt AC 1 ms 256 KB
test_clwxebedrzlfbey.txt AC 1 ms 256 KB
test_dfiousakzbw.txt AC 1 ms 256 KB
test_di.txt AC 1 ms 256 KB
test_eeeeeleeeeeeeeeeeeeeeeeeeeeeee.txt AC 1 ms 256 KB
test_eugfblf.txt AC 1 ms 256 KB
test_faumfxzsfpgz.txt AC 1 ms 256 KB
test_glpfsryzkcgbkmytzz.txt AC 1 ms 256 KB
test_hzkx.txt AC 1 ms 256 KB
test_iiiiiiiiiiiiiiiiiiiitiiiiiiiii.txt AC 1 ms 256 KB
test_iyenewigoronadomeni.txt AC 1 ms 256 KB
test_joda.txt AC 1 ms 256 KB
test_k.txt AC 1 ms 256 KB
test_kjjxmvpdpcbthjhqqqnsvmvxbtz.txt AC 1 ms 256 KB
test_klaimqrlgrxzgsqkenng.txt AC 1 ms 256 KB
test_mgjpfrkthffctppiueeeouiioeieoa.txt AC 1 ms 256 KB
test_mhfrnzpxkmxjzvmqhwxg.txt AC 1 ms 256 KB
test_mm.txt AC 1 ms 256 KB
test_mvgvrpyghdszgfvznv.txt AC 1 ms 256 KB
test_nu.txt AC 1 ms 256 KB
test_oaiiioieoeiieiuooiueaouuuiw.txt AC 1 ms 256 KB
test_oaqii.txt AC 1 ms 256 KB
test_oit.txt AC 1 ms 256 KB
test_omimujomevadimadom.txt AC 1 ms 256 KB
test_oooooooooolooooooooooooooooooo.txt AC 1 ms 256 KB
test_ooqo.txt AC 1 ms 256 KB
test_ouioiaeiuaoaeiieuuiooeeqo.txt AC 1 ms 256 KB
test_ow.txt AC 1 ms 256 KB
test_pifofawezojisasotuj.txt AC 1 ms 256 KB
test_pn.txt AC 1 ms 256 KB
test_qgqsghgjczftdmvdtrztjdwhcds.txt AC 1 ms 256 KB
test_rxifvbybdsqasoyjdskqwhlstx.txt AC 1 ms 256 KB
test_s.txt AC 1 ms 256 KB
test_taroakpyzmgkbhtklwfbk.txt AC 1 ms 256 KB
test_tkttwgnpjlrkcmwkkcfkjtyb.txt AC 1 ms 256 KB
test_uauoyouaaeoaoeooa.txt AC 1 ms 256 KB
test_uphtuhurtdkmcidxfjtgqtdujblvht.txt AC 1 ms 256 KB
test_uqzghmkf.txt AC 1 ms 256 KB
test_usetumukiwukugekidefupalumimec.txt AC 1 ms 256 KB
test_uueeuoeuviuiieuioeeauuuieeuiee.txt AC 1 ms 256 KB
test_uuueueouaouuiuniaoaaeuaoaa.txt AC 1 ms 256 KB
test_uuuuuuuujuuuuuuuuuuuuuuuuuuuuu.txt AC 1 ms 256 KB
test_vokicozoyatekebagajiceb.txt AC 1 ms 256 KB
test_xlsphqfmqrtrtvmpvbgnkr.txt AC 1 ms 256 KB
test_yepelilemapakonarugupabepisoha.txt AC 1 ms 256 KB
test_zkkyzwjgzmddvqtvvrcqhsrqlmqmkr.txt AC 1 ms 256 KB