Submission #114092

#TimeUsernameProblemLanguageResultExecution timeMemory
114092imsifileHicCup (FXCUP4_hiccup)C++17
0 / 100
13 ms3328 KiB
#include "hiccup.h" using namespace std; int HicCup(int N, string S) { int cc=0; for(int i=0; i<N; i++){ if(S[i]=='H') cc++; if(S[i]=='C') cc--; if(cc<0) return -1; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...