# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
372993 |
2021-03-02T23:43:36 Z |
sam571128 |
Sifra (COCI21_sifra) |
C++14 |
|
1 ms |
364 KB |
#include <bits/stdc++.h>
#define int long long
#define fastio ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
using namespace std;
signed main(){
fastio
string s;
cin >> s;
for(auto &c :s){
if(c>='a'&&c<='z') c = ' ';
}
stringstream ss(s);
set<int> st;
int num;
while(ss >> num){
st.insert(num);
}
cout << st.size() << "\n";
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
364 KB |
Output is correct |
2 |
Correct |
1 ms |
364 KB |
Output is correct |
3 |
Correct |
1 ms |
364 KB |
Output is correct |
4 |
Correct |
1 ms |
364 KB |
Output is correct |
5 |
Correct |
1 ms |
364 KB |
Output is correct |
6 |
Correct |
1 ms |
364 KB |
Output is correct |
7 |
Correct |
1 ms |
364 KB |
Output is correct |
8 |
Correct |
1 ms |
364 KB |
Output is correct |
9 |
Correct |
1 ms |
364 KB |
Output is correct |
10 |
Correct |
1 ms |
364 KB |
Output is correct |