# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
643080 | cologne | Broken Device 2 (JOI22_device2) | C++17 | 732 ms | 524288 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 "Anna.h"
#include <bits/stdc++.h>
using namespace std;
int Declare()
{
return 2000;
}
pair<vector<int>, vector<int>> Anna(long long A)
{
--A;
for (int i = 1; i <= 2000; i++)
{
if (A >= 2 * i + 1)
A -= 2 * i + 1;
else
{
vector<int> L(2 * i, 0);
fill(L.begin(), L.begin() + A, 1);
return {vector<int>(L.begin(), L.begin() + i),
vector<int>(L.begin() + i, L.end())};
}
}
}
#include "Bruno.h"
#include <bits/stdc++.h>
using namespace std;
long long Bruno(vector<int> u)
{
int ans = 1;
for (int i = 1; i < (int)u.size() / 2; i++)
ans += 2 * i + 1;
for (int x : u)
ans += x;
return ans;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |