# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
930857 | 2024-02-20T13:59:31 Z | boris_mihov | Ancient Machine (JOI21_ancient_machine) | C++17 | 42 ms | 7812 KB |
#include "Anna.h" #include <vector> void Anna(int N, std::vector <char> s) { bool foundX = false; for (int i = 0 ; i < N ; ++i) { if (!foundX && s[i] == 'X') { foundX = true; Send(1); i++; } else if (foundX && s[i] == 'Z') { Send(1); i++; } else { Send(0); } } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 796 KB | Wrong Answer [6] |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 42 ms | 7812 KB | Wrong Answer [6] |
2 | Halted | 0 ms | 0 KB | - |