# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
496200 | minhcool | Ancient Machine (JOI21_ancient_machine) | C++17 | 55 ms | 8208 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "Anna.h"
#include<bits/stdc++.h>
using namespace std;
//#define int long long
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define foru(i, l, r) for(int i = l; i <= r; i++)
#define ford(i, r, l) for(int i = r; i >= l; i--)
typedef pair<int, int> ii;
typedef pair<ii, int> iii;
typedef pair<ii, ii> iiii;
//const int oo = 1e18 + 7, mod = 1e9 + 7;
void Anna(int n, vector<char> S){
int need = 0;
for(auto it : S){
if((it - 'X') == need){
Send(1);
need = (need + 1) % 3;
}
else Send(0);
}
}
/*
void process(){
}
signed main(){
ios_base::sync_with_stdio(0);
process();
}*/
#include<bits/stdc++.h>
#include "Bruno.h"
using namespace std;
//#define int long long
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define foru(i, l, r) for(int i = l; i <= r; i++)
#define ford(i, r, l) for(int i = r; i >= l; i--)
typedef pair<int, int> ii;
typedef pair<ii, int> iii;
typedef pair<ii, ii> iiii;
//const int N = 1e5 + 5;
//const int oo = 1e18 + 7, mod = 1e9 + 7;
void Bruno(int N, int L, vector<int> a){
//cout << N << " " << L << "\n";
vector<int> not_rev;
for(int i = 0; i < N; i++){
if(a[i] == 1) not_rev.pb(i);
else Remove(i);
}
for(int i = 1; i < not_rev.size(); i += 3){
Remove(not_rev[i]);
}
for(int i = 0; i < not_rev.size(); i++){
if((i % 3) != 1) Remove(not_rev[i]);
}
}
/*
void process(){
}
signed main(){
ios_base::sync_with_stdio(0);
process();
}*/
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |