# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
838652 | vjudge1 | Karte (COCI15_karte) | C++17 | 1 ms | 320 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define OYY 1000000005
#define mod 998244353
#define faster ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define mid (start+end)/2
map<string,int> mp1,mp2;
int32_t main(){
faster
string s;cin>>s;
int n=s.length();
for(int i=0;i<n;i+=3){
string st="";
st+=s[i];
mp1[st]++;
st+=s[i+1];
st+=s[i+2];
if(mp2[st]!=0){
cout<<"GRESKA"<<'\n';
return 0;
}
mp2[st]++;
}
cout<<13-mp1["P"]<<" "<<13-mp1["K"]<<" "<<13-mp1["H"]<<" "<<13-mp1["T"]<<'\n';
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |