# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
950706 | andrei_boaca | Ancient Machine (JOI21_ancient_machine) | C++17 | 51 ms | 7972 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "Anna.h"
#include <bits/stdc++.h>
#include <vector>
using namespace std;
namespace
{
}
void Anna(int N, std::vector<char> S)
{
bool havex=0;
for(int i=0;i<N;i++)
{
if(S[i]=='X')
{
if(!havex)
Send(1);
else
Send(0);
havex=1;
continue;
}
if(S[i]=='Z')
Send(1);
else
Send(0);
}
}
#include "Bruno.h"
#include <bits/stdc++.h>
#include <vector>
using namespace std;
namespace
{
}
void Bruno(int N, int L, std::vector<int> A)
{
vector<int> vals;
int lft=-1;
for(int i=0;i<A.size();i++)
if(A[i]==1)
{
lft=i;
break;
}
if(lft==-1)
{
for(int i=0;i<N;i++)
Remove(i);
return;
}
for(int i=0;i<lft;i++)
Remove(i);
for(int i=lft+1;i<A.size();i++)
if(A[i]==1)
{
for(int j=i-1;A[j]==0;j--)
Remove(j);
Remove(i);
}
for(int i=L-1;A[i]==0;i--)
Remove(i);
Remove(lft);
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |