| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 1098465 | venoman | Sifra (COCI21_sifra) | C++17 | 1 ms | 604 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 namespace std;
int main(){
	string s;
	cin >> s;
	int duzina = 0;
	int n = 0;
	map<int, int> mapa;
	for(int i = 0; i < s.length(); i++){
		if(isdigit(s[i]) && duzina == 0){
			duzina++;
			n+=s[i]-'0';
		}
		else if(isdigit(s[i]) && duzina > 0){
			duzina++;
			n*=10;
			n+=s[i]-'0';
		}
		else if(isdigit(s[i-1]) && !isdigit(s[i])){
			duzina = 0;
			mapa[n]++;
			n = 0;
		}
	}
	cout<<mapa.size()<<endl;
}
Compilation message (stderr)
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
