Skip to content

Commit 1ae2574

Browse files
committed
atcoder/abc071B
1 parent 9e435a5 commit 1ae2574

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

atcoder/abc071/B/main.cpp

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#include <bits/stdc++.h>
2+
3+
using namespace std;
4+
using ll = long long;
5+
6+
int main() {
7+
ios_base::sync_with_stdio(false);
8+
cin.tie(0); cout.tie(0);
9+
10+
string S;
11+
cin >> S;
12+
13+
vector<bool> used(26, false);
14+
for (auto ch : S) {
15+
int i = (ch - 'a');
16+
used[i] = true;
17+
}
18+
int i;
19+
for (i = 0; i < 26; ++i) {
20+
if (used[i]) continue;
21+
break;
22+
}
23+
if (i < 26) {
24+
cout << char('a' + i) << endl;
25+
} else {
26+
cout << "None" << endl;
27+
}
28+
29+
return 0;
30+
}

0 commit comments

Comments
 (0)