ATCODER, started on beginner contest 249

This commit is contained in:
2022-05-22 23:46:57 +02:00
parent 051a087912
commit 6d86d3a40d
8 changed files with 217 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
#include <bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
string s;
cin >> s;
set<char> seen;
bool lower = false, upper = false;
for(char c : s){
if(isupper(c)){
upper = true;
}
else if(islower(c)){
lower = true;
}
if(seen.count(c)){
cout << "No" << endl;
return 0;
}
seen.insert(c);
}
if(lower && upper){
cout << "Yes" << endl;
} else{
cout << "No" << endl;
}
cout << flush;
return 0;
}