# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
150573 | 2019-09-01T08:39:52 Z | 요까할 로뭘 은명팀(#3558, mario05092929, foja001, earthk) | HicCup (FXCUP4_hiccup) | C++17 | 0 ms | 0 KB |
#include "hiccup" int HicCup(std::string S) { int N = S.size(); int Hea,Cea,iea,HCea; for(int i =0;i<S.size();i++){ if(S[i]=='H')Hea++; if(S[i]=='C')Cea++; if(S[i]=='!')iea++; } if(Hea == Cea)return iea/Hea; else return -1; }