# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
710504 | tanprodium | Ancient Machine (JOI21_ancient_machine) | C++17 | 80 ms | 9152 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "Anna.h"
#include<bits/stdc++.h>
using namespace std;
/*void Send(int a) {
cout << a << ' ';
}*/
void Anna(int N, vector<char> S) {
for (int i = 0; i < N; i++)
if (S[i] == 'X') {
Send(0);
Send(0);
} else if (S[i] == 'Y') {
Send(0);
Send(1);
} else {
Send(1);
Send(0);
}
}
/*void solve() {
int n;
string s;
vector<char> vs;
cin >> n >> s;
for (int i = 0; i < n; i++)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |