# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
387980 | keko37 | Ancient Machine (JOI21_ancient_machine) | C++17 | 71 ms | 8276 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
#include "Anna.h"
#include <vector>
using namespace std;
typedef long long llint;
const int MAXN = 90;
const int SIZ = 63;
llint fib[MAXN];
int get_bits (llint val) {
int res = 0;
llint pot = 1;
for (int i = 0; i < 50; i++) {
if (val & pot) res = i + 1;
pot *= 2;
}
return res;
}
void precompute () {
fib[0] = 0; fib[1] = 1;
for (int i = 2; i < MAXN; i++) {
fib[i] = fib[i - 1] + fib[i - 2];
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |