-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbee1551.cpp
More file actions
37 lines (29 loc) · 690 Bytes
/
Copy pathbee1551.cpp
File metadata and controls
37 lines (29 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* Contest : Beecrowd
* Problem : 1551 - Frase Completa
* Link : https://judge.beecrowd.com/pt/problems/view/1551
*/
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define fastio ios::sync_with_stdio(0); cin.tie(0);
void solve() {
string s;
getline(cin, s);
set<char> unique;
for (auto &c : s) {
if (c >= 'a' && c <= 'z') unique.insert(c);
}
cerr << unique.size() << '\n';
if (unique.size() >= 26) cout << "frase completa\n";
else if (unique.size() >= 13) cout << "frase quase completa\n";
else
cout << "frase mal elaborada\n";
}
int main() {
fastio
int tc; cin >> tc;
cin.ignore();
while (tc--) solve();
return 0;
}