# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|
148365 | | CHT를 사랑하는 모임 (#200) | HicCup (FXCUP4_hiccup) | C++17 | | 20 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 cnt;
int HicCup(string S) {
int N = S.size();
for(int i=0; i<N; i++){
if(S[i]=='H'){
cnt++;
}else{
if(cnt==0){
return -1;
}
cnt--;
}
}
if(cnt==0){
return 0;
}
return -1;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |