# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
495225 | kappa | 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;
set<string> q;
string strr;
int main(){
cin >> strr;
for (int i = 0; i < strr.length(); i++)
{
if(isdigit(strr[i])){
string temp;
int j = i;
while(j < strr.length())
{
if(isdigit(strr[j])){
temp += strr[j];
}else{
break;
}
j++;
}
i = j;
q.insert(temp);
}
}
cout << q.size();
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |