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 "Anna.h"
#include <bits/stdc++.h>
using namespace std;
int Declare()
{
return 180;
}
pair<vector<int>, vector<int>> Anna(long long A)
{
vector<int> U, V;
for (int i = 59; i >= 0; --i)
for (int j = 0; j < 3; j++)
U.push_back((A >> i) & 1);
for (int i = 0; i < 90; i++)
V.push_back(0), V.push_back(1);
return {U, V};
}
#include "Bruno.h"
#include <bits/stdc++.h>
using namespace std;
long long Bruno(vector<int> u)
{
long long ret = 0;
int state = 1;
for (int v : u)
{
state += v * 4 - 2;
if (state == 5)
state = -1, ret = ret * 2 + 1;
if (state == -5)
state = 1, ret = ret * 2;
}
return ret;
}
# | 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... |