# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|
19741 | | jeapi | 괄호 (kriii4_R) | C++98 | | 2 ms | 9528 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<iostream>
using namespace std;
typedef long long ll;
ll D[1000001];
int main() {
ll N, T;
cin >> N >> T;
for (int i = 2; i < N; i++) {
if (i % 2 == 0) {
D[i] = D[i - 1];//닫고
D[i] = D[i - 1];//열고
}
else {
D[i] = D[i - 1];//닫고
D[i] = D[i - 1] - 1;//열고
}
}
cout << D[N] << endl;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |