1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Atcoder解いてみた ABC 071 B - Not Found

Posted at

ABC 071 B - Not Found 解いてみた

問題はこちら

回答

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

int main() {
    string S;
    cin >> S;

    map<char, char> sMap;
    string refStr = "abcdefghijklmnopqrstuvwxyz";

    for (auto it = S.begin(); it != S.end(); ++it) {
        sMap[*it];
    }

    if (sMap.size() == 26) {
        std::cout << "None" << std::endl;
    }

    for (auto it = refStr.begin(); it != refStr.end(); ++it) {
        if(sMap.find(*it) == sMap.end()){
            std::cout << *it << std::endl;
            break;
        }
    }

    return 0;
}
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?