| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 712676 | dungnguyenn_05 | Ancient Machine (JOI21_ancient_machine) | C++17 | 63 ms | 8184 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#include <vector>
#include "Anna.h"
#define pb push_back
using namespace std;
typedef vector<int> vi;
void Anna(int N, std::vector<char> S)
{
vi srt;
bool ok=0;
for(char c:S)
{
if(c=='X' and !ok)
{
ok=1;
if(srt.size())
{
srt.pop_back();
srt.pb(1);
}
}
if(!ok)
srt.pb(0);
else
srt.pb(c=='Z');
}
for(int x:srt)
Send(x);
}
#include<bits/stdc++.h>
#include <vector>
#include "Bruno.h"
#define pb push_back
using namespace std;
typedef vector<int> vi;
char ch[200005];
void Bruno(int N, int L, std::vector<int> A)
{
int st=0,luu;
for(int i=0;i<L;i++)
if(A[i])
{
st=i+1;
break;
}
for(int i=st-1;i>=0;i--)
Remove(i);
luu=st;
for(int i=st;i<L;i++)
{
if(A[i])
{
for(int run=i-1;run>st;run--)
Remove(run);
Remove(i);
st=i;
}
}
for(int i=st+1;i<L;i++)
Remove(i);
Remove(luu);
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
