# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
931590 | 2024-02-22T06:17:44 Z | lamter | Ancient Machine (JOI21_ancient_machine) | C++17 | 0 ms | 0 KB |
#include "Anna.h" #include <bits/stdc++.h> void Anna(int n, std::vector <char> S) { bool found = 0; for (int i = 0; i < n; i += 1) { int bit = 0; if (not found and a[i] == 'X') { bit = 1; found = true; } if (a[i] == 'Z') { bit = 1; } Send(bit); } }