Submission #148397

# Submission time Handle Problem Language Result Execution time Memory
148397 2019-09-01T04:17:23 Z 요까할 로뭘 은명팀(#3558, mario05092929, foja001, earthk) HicCup (FXCUP4_hiccup) C++17
0 / 100
5 ms 344 KB
#include <iostream>
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]== 'C' && S[i+2]== '!'))HC++;
    }
    if(HC==0)return -1;
    return HC;
}
# Verdict Execution time Memory Grader output
1 Incorrect 5 ms 344 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 5 ms 344 KB Output isn't correct
2 Halted 0 ms 0 KB -