# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
114092 | imsifile | HicCup (FXCUP4_hiccup) | C++17 | 13 ms | 3328 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |