답안 #372993

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
372993 2021-03-02T23:43:36 Z sam571128 Sifra (COCI21_sifra) C++14
50 / 50
1 ms 364 KB
#include <bits/stdc++.h>

#define int long long
#define fastio ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);

using namespace std;

signed main(){
	fastio
	string s;
	cin >> s;
	for(auto &c  :s){
		if(c>='a'&&c<='z') c = ' ';
	}
	stringstream ss(s);
	set<int> st;
	int num;
	while(ss >> num){
		st.insert(num);
	}
	cout << st.size() << "\n";
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 364 KB Output is correct
2 Correct 1 ms 364 KB Output is correct
3 Correct 1 ms 364 KB Output is correct
4 Correct 1 ms 364 KB Output is correct
5 Correct 1 ms 364 KB Output is correct
6 Correct 1 ms 364 KB Output is correct
7 Correct 1 ms 364 KB Output is correct
8 Correct 1 ms 364 KB Output is correct
9 Correct 1 ms 364 KB Output is correct
10 Correct 1 ms 364 KB Output is correct