# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
829296 | OAleksa | Sifra (COCI21_sifra) | C++14 | 1 ms | 340 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#define f first
#define s second
using namespace std;
#define int long long
signed main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int tt = 1;
//cin >> tt;
while(tt--) {
string s;
cin >> s;
set<string> st;
int n = s.size();
int i = 0;
while(i < n) {
if(isdigit(s[i])) {
string t;
while(i < n && isdigit(s[i]))
t += s[i++];
st.insert(t);
}
else
++i;
}
cout << st.size();
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |