# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
637784 | 2022-09-03T08:28:08 Z | victor_gao | Broken Device 2 (JOI22_device2) | C++17 | 48 ms | 5848 KB |
#include "Anna.h" #include <utility> #include <vector> namespace { int variable_example = 0; } int Declare() { return 2000; } std::pair<std::vector<int>, std::vector<int> > Anna(long long A) { std::vector<int> X = {}; std::vector<int> Y = {}; for (int i=63;i>=0;i--){ if (A&(1LL<<i)){ for (int j=1;j<=i;j++){ if (X.size()>Y.size()) Y.push_back(1); else X.push_back(1); } for (int j=1;j<=70;j++){ if (X.size()>Y.size()) Y.push_back(0); else X.push_back(0); } } } if (X.size()>Y.size()) Y.push_back(0); else if (X.size()<Y.size()) X.push_back(0); return make_pair(X, Y); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 508 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 508 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 508 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 508 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 508 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 48 ms | 5848 KB | Wrong Answer [3] |
2 | Halted | 0 ms | 0 KB | - |