# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
524654 | amunduzbaev | Ancient Machine (JOI21_ancient_machine) | C++17 | 60 ms | 8088 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "Anna.h"
#include "bits/stdc++.h"
using namespace std;
#define ll long long
const int B = 90;
ll dp[B][2];
void Anna(int n, vector<char> s) {
int f = -1;
for(int i=0;i<n;i++){
if(s[i] == 'X') { f = i; break; }
}
int C = (n + B - 1) / B;
if(f == -1){
return;
}
//~ cout<<f<<" "<<n<<" "<<s[0]<<endl;
for(int i=0;i<17;i++) Send(f >> i & 1);
vector<int> res(n);
//~ res[f] = 1;
for(int i=f+1;i<n;i++){
if(s[i] == 'Z'){
res[i] = 1;
if(s[i-1] == 'Z') res[i-1] = 0;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |