# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
148404 | 요까할 로뭘 은명팀 (#200) | HicCup (FXCUP4_hiccup) | C++17 | 5 ms | 128 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"
#include <bits/stdc++.h>
using namespace std;
stack <int> st;
int HicCup(std::string S) { /// HicHup
int N = S.size();
int ch = 0;
for(char x : S)
{
if(x == 'C')
{
if(st.empty()) return -1;
st.pop();
}
else st.push(1);
}
if(st.empty()) return 1;
else return -1;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |