# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
950706 | 2024-03-20T15:32:55 Z | andrei_boaca | Ancient Machine (JOI21_ancient_machine) | C++17 | 51 ms | 7972 KB |
#include "Anna.h" #include <bits/stdc++.h> #include <vector> using namespace std; namespace { } void Anna(int N, std::vector<char> S) { bool havex=0; for(int i=0;i<N;i++) { if(S[i]=='X') { if(!havex) Send(1); else Send(0); havex=1; continue; } if(S[i]=='Z') Send(1); else Send(0); } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 776 KB | Output is correct |
2 | Correct | 0 ms | 776 KB | Output is correct |
3 | Incorrect | 0 ms | 780 KB | Wrong Answer [6] |
4 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Partially correct | 51 ms | 7912 KB | Partially correct |
2 | Incorrect | 41 ms | 7972 KB | Wrong Answer [6] |
3 | Halted | 0 ms | 0 KB | - |