Submission #643418

#TimeUsernameProblemLanguageResultExecution timeMemory
643418cologneBroken Device 2 (JOI22_device2)C++17
80 / 100
118 ms3592 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...