# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
366340 | CodePlatina | Sifra (COCI21_sifra) | C++14 | 1 ms | 364 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 <iostream>
#include <vector>
#include <algorithm>
#include <utility>
#include <string>
#define pii pair<int, int>
#define piii pair<int, pii>
#define pll pair<long long, long long>
#define plll pair<long long, pll>
#define ff first
#define ss second
#define ee ss.ff
#define rr ss.ss
#define DEBUG
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
string s; cin >> s;
vector<string> S;
bool flag = false;
for(auto c : s)
{
if('0' <= c && c <= '9')
{
if(flag) S.back() += c;
else
{
S.push_back(string({c}));
flag = true;
}
}
else flag = false;
}
sort(S.begin(), S.end());
cout << unique(S.begin(), S.end()) - S.begin();
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |