Submission #404014

#TimeUsernameProblemLanguageResultExecution timeMemory
404014ScarletSSifra (COCI21_sifra)C++17
50 / 50
1 ms312 KiB
#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 timeMemoryGrader output
Fetching results...