| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 375353 | muhi1112 | Sifra (COCI21_sifra) | C++17 | 1 ms | 512 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define f1 first
#define s2 second
#define INF 99999999
#define ll long long
#define pb push_back
#define fri(a) freopen(a,"r",stdin)
#define fro(a) freopen(a,"w",stdout)
const int N=2e5+5;
string s;
set<int>sety;
void solve(){
	cin>>s;
	for(int i=0;i<s.length();i++){
		if((s[i]%'a'>=48)){
			if(i+1<s.length() && s[i+1]%'a'>=48){
				if(i+2<s.length() && s[i+2]%'a'>=48){
					sety.insert(((s[i]%'a')%48)*100+((s[i+1]%'a')%48)*10+((s[i+2]%'a')%48));
					i+=2;
				}
				else{
					sety.insert(((s[i]%'a')%48)*10+((s[i+1]%'a')%48));
					i++;
				}
			}
			else sety.insert(((s[i]%'a')%48));
		}
	}
	cout<<sety.size()<<endl;
}
int main(){
	//fri("in.txt");
	//fro("out.txt");
	solve();
	return 0;
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
