# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
396060 | Mlxa | Ancient Machine (JOI21_ancient_machine) | C++17 | 52 ms | 6420 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "Anna.h"
#include <bits/stdc++.h>
using namespace std;
namespace anna {
static const int B = 20;
static const int BAD = (1 << B) - 1;
}
void Anna(int n, vector<char> s) {
using namespace anna;
// for (int i = 0; i < n; ++i) {
// Send(s[i] == 'Y');
// }
int x = BAD, z = BAD;
for (int i = n; i--; ) {
if (s[i] == 'X') {
x = i;
}
}
for (int i = 0; i < n; ++i) {
if (s[i] == 'Z') {
z = i;
}
}
if (x > z || x == BAD || z == BAD) {
x = BAD, z = BAD;
}
for (int i = 0; i < B; ++i) {
Send((x >> i) & 1);
}
for (int i = 0; i < B; ++i) {
Send((z >> i) & 1);
}
}
#include "Bruno.h"
#include <bits/stdc++.h>
using namespace std;
namespace bruno {
static const int B = 20;
static const int BAD = (1 << B) - 1;
}
void Bruno(int n, int l, vector<int> a) {
using namespace bruno;
for (int i = 0; i < n; ++i) {
Remove(i);
}
return;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |