Submission #1995486


Source Code Expand

#include "bits/stdc++.h"

#define rep(a,b) for(int a = 0;a < b;a++)
#define REP(i, x, n) for(int i = x; i < n; i++)
#define P(a) cout << a << endl
#define pb(a) push_back(a)
#define mp(a,b) make_pair(a,b)
#define ssort(v) sort(v.begin(),v.end())
#define rev(v) reverse(v.begin(),v.end())
#define vP(v) for(int i = 0;i < v.size();i++){cout << v[i];if(i != v.size()-1)cout << endl;}
#define vcin(v,n) rep(i,n){int a;cin >> a;v.pb(a);}

using namespace std;
typedef long long ll;
typedef unsigned long long ull;
int dx[] = { 1, -1 , 0 , 0 };
int dy[] = { 0,  0,  1, -1 };
ll MOD = 1000000007;

void solve(){
	string s;
	cin  >> s;
	map<char,int> m;
	rep(i,s.length()){
		m[s[i]]++;
	}
	int count = 0;
	rep(i,26){
		if(m[(char)('a'+i)] == 0){
			P((char)('a'+i));
			return;
		}
	}
	P("None");
}

int main() {
	solve();
	return 0;
}

Submission Info

Submission Time
Task B - Not Found
User pantacia1128
Language C++14 (GCC 5.4.1)
Score 200
Code Size 869 Byte
Status AC
Exec Time 7 ms
Memory 512 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 15
Set Name Test Cases
Sample sample1.txt, sample2.txt, sample3.txt
All sample1.txt, sample2.txt, sample3.txt, 1.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt, sample1.txt, sample2.txt, sample3.txt
Case Name Status Exec Time Memory
1.txt AC 1 ms 256 KB
2.txt AC 1 ms 256 KB
3.txt AC 2 ms 256 KB
4.txt AC 7 ms 512 KB
5.txt AC 7 ms 512 KB
6.txt AC 7 ms 512 KB
7.txt AC 6 ms 512 KB
8.txt AC 7 ms 512 KB
9.txt AC 7 ms 512 KB
sample1.txt AC 1 ms 256 KB
sample2.txt AC 1 ms 256 KB
sample3.txt AC 1 ms 256 KB