# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
495224 | kappa | Sifra (COCI21_sifra) | C++14 | 1 ms | 300 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;
for (int j = i; j < strr.length(); j++)
{
if(isdigit(strr[j])){
temp += strr[j];
}else{
i = j;
break;
}
}
q.insert(temp);
}
}
cout << q.size();
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |