# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
494377 | jasen_penchev | Brperm (RMI20_brperm) | C++14 | 1355 ms | 13620 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "brperm.h"
#include <iostream>
#include <string>
#define endl '\n'
using namespace std;
const int LOG = 20;
const int MAXN = 500000;
string str = "";
int diff[MAXN + 5];
int mem[LOG + 5][(1ll << LOG) + 5];
void init(int n, const char s[])
{
for (int i = 0; i < n; ++ i)
{
str += s[i];
}
for (int k = 0; k < 20; ++ k)
{
for (int i = 0; i < (1ll << k); ++ i)
{
int idx = 0;
for (int j = 0; j < k; ++ j)
{
if ((i & (1ll << j))) idx += (1ll << (k - j - 1));
}
컴파일 시 표준 에러 (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... |