Submission #148369

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