| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 558602 | savacska | Broken Device 2 (JOI22_device2) | C++17 | 774 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>
#define pb push_back
#define mp make_pair
#define x first
#define y second
using namespace std;
typedef long long ll;
typedef long double ld;
namespace
{
const int LEN = 2000;
}
int Declare()
{
return LEN;
}
pair <vector <int>, vector <int> > Anna(ll A)
{
for (int i = 1; i <= LEN; i++)
{
if (2ll * i + 1 >= A)
{
A--;
vector <int> s(i), t(i);
for (int j = 0; j < i; j++)
if (A > 0) s[j] = 1, A--;
for (int j = 0; j < i; j++)
if (A > 0) t[j] = 1, A--;
return mp(s, t);
}
A -= 2ll * i + 1;
}
}
#include "Bruno.h"
#include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define x first
#define y second
using namespace std;
typedef long long ll;
typedef long double ld;
namespace
{
const int LEN = 2000;
}
ll Bruno(vector <int> u)
{
ll cur = 0;
for (int i = 1; 2 * i < (int) u.size(); i++)
cur += 2 * i + 1;
int sum = 0;
for (int c : u) sum += c;
cur += sum + 1;
return cur;
}
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... | ||||
