| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1369594 | SpyrosAliv | Broken Device 2 (JOI22_device2) | C++20 | 2096 ms | 24208 KiB |
#include "Anna.h"
#include <bits/stdc++.h>
using namespace std;
namespace {
}
int Declare() {
return 2000;
}
std::pair<std::vector<int>, std::vector<int> > Anna(long long A) {
vector<int> x, y;
int sz = 1;
for (int i = 1; i * i <= A; i++) {
sz = i;
}
int rest = A - sz * sz;
for (int i = 0; i < sz; i++) {
if (rest) {
x.push_back(1);
rest--;
}
else x.push_back(0);
if (rest) {
y.push_back(1);
rest--;
}
else y.push_back(0);
}
return {x, y};
}
#include "Bruno.h"
#include <bits/stdc++.h>
using namespace std;
namespace {
}
long long Bruno(std::vector<int> u) {
int sq = (int)u.size() / 2;
int add = 0;
for (auto x: u) add += x;
return sq * sq + add;
}
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
