CSES - Datatähti 2024 loppu - Results
Submission details
Task:Sulut
Sender:4321Boom4321
Submission time:2024-01-20 16:56:48 +0200
Language:C++ (C++11)
Status:COMPILE ERROR

Compiler report

input/code.cpp:1:1: error: unterminated comment
    1 | /*#include <bits/stdc++.h>
      | ^

Code

/*#include <bits/stdc++.h>

using namespace std;

int main()
{
int n;
cin >> n;
int k;
cin >> k;
std::string answer;
std::string answer2;

if (k % 2 == 0 && n % 2 == 0) {
    for (int i = 0; i < n; i++) {
        answer += "()";
        i++;
    }

    for (int j = 0; j < n; j++) {
        answer2 += "()";
        j++;
    }

    if (0 < k && k < n) {
        //answer2[1] forward k;

    }

    else if (k == n){
         //answer2[1] push_back && answer2[3] forward 2, does not account for if k == 2 and n == 2 impossible
        answer2.push_back(answer2[1]);
        answer2.erase(answer2[1]);
    }

    } else {
        cout << "IMPOSSIBLE";
    }
cout << answer << endl;
cout << answer2 << endl;

}