| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 1024046 | kustizus | Sifra (COCI21_sifra) | C++17 | 1 ms | 452 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 ll long long int
using namespace std;
ll ans=0;
string s,t="";
unordered_map <string,ll> mp;
int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    getline (cin,s);
    for (ll i=0;i<s.size();i++)
        if (s[i]>='0' && s[i]<='9') t+=s[i];
        else if (t!=""){
            if (mp[t]==0) ans++;
            mp[t]=1;
            t="";
        }
    if (t!=""){
        if (mp[t]==0) ans++;
        mp[t]=1;
    }
    cout<<ans;
}
Compilation message (stderr)
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
