# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
547926 | 2022-04-12T03:19:31 Z | quoccuong2k4ht | Ancient Machine (JOI21_ancient_machine) | C++17 | 52 ms | 7452 KB |
#include "Anna.h" #include <vector> using namespace std; namespace { int variable_example = 0; } void Anna(int N, std::vector<char> S) { bool check=0; for (int i=0;i<N;i++) { if (S[i]=='X') { if (check) continue; else { Send(1); check=1; } } if (S[i]=='Z'&&check) Send(1); else Send(0); } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 508 KB | Wrong Answer [6] |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 52 ms | 7452 KB | Wrong Answer [6] |
2 | Halted | 0 ms | 0 KB | - |