# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
543083 | 2022-03-29T07:38:34 Z | abc864197532 | Ancient Machine (JOI21_ancient_machine) | C++17 | 34 ms | 3836 KB |
#include "Anna.h" #include <vector> namespace { int variable_example = 0; } void Anna(int N, std::vector<char> S) { for (int i = 0; i < N; i += 3) { int now = 0; for (int j = i; j < i + 3 && j < N; ++j) now = now * 3 + S[j] - 'X'; for (int j = 4; ~j; --j) Send(now >> j & 1); } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 520 KB | Wrong Answer [5] |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 34 ms | 3836 KB | Wrong Answer [5] |
2 | Halted | 0 ms | 0 KB | - |