We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e435a5 commit 1ae2574Copy full SHA for 1ae2574
atcoder/abc071/B/main.cpp
@@ -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