| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 515949 | KoD | Sifra (COCI21_sifra) | C++17 | 1 ms | 312 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 std::vector;
using std::array;
using std::pair;
using std::tuple;
int main() {
    std::ios_base::sync_with_stdio(false);
    std::cin.tie(nullptr);
    std::string s;
    std::cin >> s;
    const int n = s.size();
    std::set<int> set;
    for (int i = 0; i < n;) {
        if (std::isdigit(s[i])) {
            int j = i;
            while (std::isdigit(s[j])) {
                j += 1;
            }
            set.insert(std::stoi(s.substr(i, j - i)));
            i = j;
        } else {
            i += 1;
        }
    }
    std::cout << set.size() << '\n';
    return 0;
}
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
