Submission #148444

# Submission time Handle Problem Language Result Execution time Memory
148444 2019-09-01T04:24:46 Z usa1+samsung2(#3703, adman, nona1314, wowoto9772) HicCup (FXCUP4_hiccup) C++17
0 / 100
5 ms 432 KB
#include "hiccup.h"

int HicCup(std::string S) {
	int N = S.size();
	if (N % 2 == 1) return -1;
	for (int i = 0; i < N; i += 2) {
		if (S[i] != 'H' || S[i] != 'C') return -1;
	}
	return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 5 ms 432 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 5 ms 432 KB Output isn't correct
2 Halted 0 ms 0 KB -