| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 643608 | gs14004 | Broken Device 2 (JOI22_device2) | C++17 | 98 ms | 3616 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "Anna.h"
#include <bits/stdc++.h>
using namespace std;
using lint = long long;
using pi = pair<lint, lint>;
#define sz(v) ((int)(v).size())
#define all(v) (v).begin(), (v).end()
namespace {
int variable_example = 0;
}
int Declare() {
variable_example++;
return 180;
}
std::pair<std::vector<int>, std::vector<int> > Anna(long long A) {
vector<int> X, Y;
for(int i = 0; i < 60; i++){
for(int j = 0; j < 3; j++) X.push_back((A >> i) & 1);
}
for(int i = 0; i < 180; i++){
Y.push_back((i + 1) % 2);
}
return make_pair(X, Y);
}
#include "Bruno.h"
#include <bits/stdc++.h>
using namespace std;
using lint = long long;
using pi = pair<lint, lint>;
#define sz(v) ((int)(v).size())
#define all(v) (v).begin(), (v).end()
namespace {
int variable_example = 0;
}
long long Bruno(std::vector<int> u) {
int ptr = 0;
int sum = 0;
vector<int> ans;
while(ptr < sz(u)){
int k = sum - (sum % 3 + 3) % 3;
while(ptr < sz(u)){
sum += u[ptr++] * 2 - 1;
if(sum >= k + 3) break;
if(sum <= k - 2) break;
}
if(sum >= k + 3) ans.push_back(1);
else if(sum <= k - 2) ans.push_back(0);
}
assert(sz(ans) == 60);
lint dap = 0;
for(int i = 0; i < 60; i++) if(ans[i]) dap |= (1ll << i);
return dap;
}
컴파일 시 표준 에러 (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... | ||||
