Start count-vowel-substrings-of-a-string
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// driver.h - generated by 'usaco new' from LeetCode's metadata (edit freely).
|
||||
// Reads count-vowel-substrings-of-a-string.in in LeetCode's testcase format, cases back to back:
|
||||
// one argument per line
|
||||
// and writes one answer per case to count-vowel-substrings-of-a-string.out, formatted the way LeetCode
|
||||
// shows its output. Parsing/printing helpers: leetcode.h.
|
||||
int main() {
|
||||
freopen("count-vowel-substrings-of-a-string.in", "r", stdin);
|
||||
freopen("count-vowel-substrings-of-a-string.out", "w", stdout);
|
||||
for (vector<string> in; lc::read_case(in, 1);) {
|
||||
auto word = lc::parse<string>(in[0]);
|
||||
cout << lc::show(Solution().countVowelSubstrings(word)) << '\n';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user