# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
867456 | 2023-10-28T12:29:01 Z | ioi_alen | parentrises (BOI18_parentrises) | C++14 | 1 ms | 348 KB |
#include <iostream> #include <string> #include <regex> using namespace std; void solve_P1(string& s) { int n = s.length(); // int d[n][2]; // for (int i = 0; i < n + 1; i += 1) { // for (int j = 0; j < 2; j += 1) { // d[i][j] = 0; // } // } // // d[0][0] = 0; // d[0][1] = 1; // // for (int i = 0; i < n; i += 1) { // if (s[i] == '(') { // d[i + 1][0] = d[i][0] + 1; // d[i+ 1][1] = d[i][0] + 1; // } // } cout << s << endl; } void solve_P2(int N) { cout << N << endl; } int main() { int P; cin >> P; int N; cin >> N; for (int i = 0; i < N; i += 1) { if (P == 1) { string str; getline(cin, str); solve_P1(str); } else { int size; cin >> size; solve_P2(size); } } return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 344 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 344 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 344 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |