# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
558602 | savacska | Broken Device 2 (JOI22_device2) | C++17 | 774 ms | 524288 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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;
}
컴파일 시 표준 에러 (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... |