# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
898520 |
2024-01-04T20:29:09 Z |
vjudge1 |
Sifra (COCI21_sifra) |
C++17 |
|
0 ms |
600 KB |
#include<bits/stdc++.h>
using namespace std;
set<string> st;
int main() {
string str, str2;
cin >> str;
for(auto i: str) {
if(i<'a')
str2+=i;
else
st.insert(str2),str2="";
}
st.insert(str2);
st.erase("");
cout << st.size();
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
0 ms |
600 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
0 ms |
348 KB |
Output is correct |
9 |
Correct |
0 ms |
348 KB |
Output is correct |
10 |
Correct |
0 ms |
348 KB |
Output is correct |