# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
148567 | 2019-09-01T04:40:35 Z | 요까할 로뭘 은명팀(#3558, mario05092929, foja001, earthk) | HicCup (FXCUP4_hiccup) | C++17 | 5 ms | 384 KB |
#include "hiccup.h" int HicCup(std::string S) { int N = S.size(); int HC=0; for(int i=0;i<N-2;i++){ if(S[i]=='H' && S[i+1]=='H')HC--; if(S[i]=='C' && S[i+1]=='C')HC--; if((S[i]=='H' && S[i+1]== 'C' && S[i+2]== '!'))HC++; } if(HC==0)return -1; return HC; }
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 5 ms | 384 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 5 ms | 384 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |