# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
804034 | vjudge1 | Broken Device 2 (JOI22_device2) | C++17 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "Anna.h"
#include <bits/stdc++.h>
#define pb push_back
#define f first
#define sc second
using namespace std;
typedef long long int ll;
typedef string str;
namespace {
const int m = 2000;
}
int Declare(){
return m;
}
pair<vector<int>, vector<int>> Anna(ll A){
ll s = 0;
for(int i = 1; i <= m; i++){
if(A-s >= 2*i+1){
s+=2*i+1;
continue;
}
ll c = A-s;
pair<vector<int>, vector<int>> rt;
rt.f = vector<int>(i, 0);
rt.sc = vector<int>(i, 0);
for(int j = 0; j < c; j++){
if(j < i) rt.f[j] = 1;
else rt.sc[j-i] = 1;
}
return rt;
}
return {{},{}};
}