# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|
148359 | | 본인 하지만 안 어림 ㅋㅋ (#200) | HicCup (FXCUP4_hiccup) | C++17 | | 19 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 <bits/stdc++.h>
using namespace std;
#include "hiccup.h"
int HicCup(std::string S) {
int N = S.size();
int c = 0;
for(int i = 0; i < N; i++)
{
if(S[i] == 'H')
c++;
else
c--;
if(c < 0)
return -1;
}
if(c != 0)
return -1;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |