| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 404014 | ScarletS | 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>
#define sz(x) (int)(x).size()
using namespace std;
int main()
{
    ios_base::sync_with_stdio(0); cin.tie(0);
    string t,u="";
    cin>>t;
    set<string> s;
    s.insert("");
    for (int i=0;i<sz(t);++i)
    {
        if ('0'<=t[i]&&t[i]<='9')
            u+=t[i];
        else
        {
            s.insert(u);
            u="";
        }
    }
    s.insert(u);
    cout<<sz(s)-1;
    return 0;
}
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
