# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
475111 | Ahmed_Solyman | Sifra (COCI21_sifra) | C++14 | 1 ms | 204 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>
using namespace std;
typedef long long ll;
bool isNum(char c){
return (c>='0' && c<='9');
}
int main()
{
string s;cin>>s;
string t="";
s+='a';
bool b=0;
set<string>st;
for(ll i=0;i<s.size();i++){
if(isNum(s[i]))t+=s[i],b=1;
else if(b){
b=0;
st.insert(t);
t="";
}
}
cout<<st.size()<<endl;
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |