# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
148410 | 2019-09-01T04:19:26 Z | 요까할 로뭘 은명팀(#3558, mario05092929, foja001, earthk) | HicCup (FXCUP4_hiccup) | C++17 | 21 ms | 7424 KB |
#include "hiccup.h" #include <bits/stdc++.h> using namespace std; stack <int> st; int HicCup(std::string S) { /// HicHup int N = S.size(); for(char x : S) { if(x == 'C') { if(st.empty()) return -1; st.pop(); } else st.push(1); } if(st.empty()) return 0; else return -1; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 6 ms | 384 KB | Output is correct |
2 | Correct | 5 ms | 384 KB | Output is correct |
3 | Correct | 5 ms | 384 KB | Output is correct |
4 | Correct | 6 ms | 512 KB | Output is correct |
5 | Correct | 19 ms | 3328 KB | Output is correct |
6 | Correct | 12 ms | 3200 KB | Output is correct |
7 | Correct | 13 ms | 3328 KB | Output is correct |
8 | Correct | 20 ms | 3200 KB | Output is correct |
9 | Correct | 21 ms | 3328 KB | Output is correct |
10 | Correct | 13 ms | 3328 KB | Output is correct |
11 | Correct | 6 ms | 384 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 6 ms | 384 KB | Output is correct |
2 | Correct | 5 ms | 384 KB | Output is correct |
3 | Correct | 5 ms | 384 KB | Output is correct |
4 | Correct | 6 ms | 512 KB | Output is correct |
5 | Correct | 19 ms | 3328 KB | Output is correct |
6 | Correct | 12 ms | 3200 KB | Output is correct |
7 | Correct | 13 ms | 3328 KB | Output is correct |
8 | Correct | 20 ms | 3200 KB | Output is correct |
9 | Correct | 21 ms | 3328 KB | Output is correct |
10 | Correct | 13 ms | 3328 KB | Output is correct |
11 | Correct | 18 ms | 4096 KB | Output is correct |
12 | Correct | 17 ms | 6656 KB | Output is correct |
13 | Correct | 17 ms | 7424 KB | Output is correct |
14 | Correct | 5 ms | 384 KB | Output is correct |
15 | Correct | 17 ms | 7424 KB | Output is correct |
16 | Correct | 5 ms | 432 KB | Output is correct |
17 | Correct | 5 ms | 384 KB | Output is correct |
18 | Correct | 6 ms | 896 KB | Output is correct |
19 | Incorrect | 18 ms | 7424 KB | Output isn't correct |
20 | Halted | 0 ms | 0 KB | - |