Submission #829296

# Submission time Handle Problem Language Result Execution time Memory
829296 2023-08-18T08:24:02 Z OAleksa Sifra (COCI21_sifra) C++14
50 / 50
1 ms 340 KB
#include <bits/stdc++.h>
#define f first
#define s second
using namespace std; 
#define int long long

signed main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	int tt = 1;
	//cin >> tt;
	while(tt--) {
		string s;
		cin >> s;
		set<string> st;
		int n = s.size();
		int i = 0;
		while(i < n) {
			if(isdigit(s[i])) {
				string t;
				while(i < n && isdigit(s[i]))
					t += s[i++];
				st.insert(t);
			}
			else
				++i;
		}
		cout << st.size();
	}
   return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 1 ms 340 KB Output is correct