よじろめ覚書

私の理解度重視のソースコードです。

ABC002B - 罠

問題:B - 罠

#include <iostream>
#include <string>
using namespace std;

#define REP(i, n) for(int i = 0; i < (n); ++i)

int main(void) {
    const string vowel = "aiueo";
    string w, res = "";

    cin >> w;
    REP(i, w.length()) {
        if (vowel.find(w[i]) == string::npos) {
            res += w[i];
        }
    }

    cout << res << "\n";
    return 0;
}