| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 604110 | Hussein3600 | Karte (COCI15_karte) | C++14 | 1 ms | 212 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std ;
typedef long long ll ;
int main()
{
    map<string,ll> mp ;
    bool ok=true;
    map<char,ll> p;
    string s , t;
    cin >> s ;
    for(int i=0;i<s.size();i+=3)
    {
        t="";
        t+=s[i] ;
        t+=s[i+1];
        t+=s[i+2] ;
        //cout<<t<<endl;
        if(mp[t]>0)ok=false;
        mp[t]++;
        p[s[i]]++;
    }
    if(ok)
    cout<<13-p['P']<<" "<<13-p['K']<<" "<<13-p['H']<<" "<<13-p['T']<<endl;
    else cout<<"GRESKA";
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
