# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
137283 | abacaba | 비교 (balkan11_cmp) | C++14 | 2256 ms | 84016 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "cmp.h"
#include <bits/stdc++.h>
using namespace std;
const int num[4] = {12, 10, 8, 6};
const int st[4] = {480, 48, 6, 1};
const int ind[4] = {100, 200, 300, 400};
vector <int> uniq[4096];
bool flag;
void remember(int n) {
if(!flag) {
flag = true;
for(int i = 0; i < 4096; ++i) {
int now = i, base = 1;
for(int j = 0; j < 4; ++j) {
int x = now / st[j];
uniq[i].push_back(ind[j] + x);
now %= st[j];
}
}
}
for(int i = 0; i < uniq[n].size(); ++i)
bit_set(uniq[n][i]);
}
int compare(int b) {
for(int i = 0; i < uniq[b].size(); ++i) {
int ost = uniq[b][i] - ind[i];
if(bit_get(ost + ind[i]))
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |