| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 650266 | Codula | Karte (COCI15_karte) | C++17 | 1 ms | 328 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
//IOI 2023 I am coming.
 
#include "bits/stdc++.h"
 
using namespace std;
 
#define fast ios_base::sync_with_stdio(false);cin.tie(nullptr)
#define int int64_t
#define pb push_back
#define deb(x) cerr<<"("<<#x<<"="<<x<<','<<__LINE__<<")"<<endl; 
 
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count()); 
 
int32_t main(){
	fast;
	string s;
	cin>>s;
	int n=s.size();
	map<char,int>ans;
	map<string,int>mp;
	for(int i=0;i<n;i+=3){
		string dx="";
		dx+=(s[i]);//+s[i+1]+s[i+2];
		dx+=(s[i+1]);
		dx+=(s[i+2]);
		ans[dx[0]]+=1;
		if(mp[dx]){
			cout<<"GRESKA\n";
			return 0;
		}
		mp[dx]+=1;
	}
	for(auto i:{'P','K','H','T'}){
		//~ cout<<13-ans[i]<<" ";
		cout<<13-ans[i]<<" ";
	}
	cout<<"\n";
    return 0;
}
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
