# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
223584 | spacewalker | 송금 (JOI19_remittance) | C++14 | 544 ms | 114908 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
// if X, the next number will be
// 2X - peak
vector<ll> canonBinary(vector<ll> &arr) {
vector<ll> ans = arr;
for (int i = 0; i < 40; ++i) ans.push_back(0);
for (int i = 0; i + 1 < ans.size(); ++i) {
ans[i + 1] += ans[i] / 2;
ans[i] %= 2;
}
return ans;
}
void answer(bool yn) {
if (yn) printf("Yes\n");
else printf("No\n");
exit(0);
}
ll tryDivide(vector<ll> digs, ll n) {
// Attempts to return digs / (2 ^ n - 1), returns -1 if that is not an integer
// NUMBERS HERE ARE MOST SIGNIFICANT FIRST
vector<ll> curRem;
int curRemDigitSum = 0;
vector<ll> ans;
컴파일 시 표준 에러 (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... |