# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
398476 | model_code | The short shank; Redemption (BOI21_prison) | C++17 | 632 ms | 213652 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
typedef pair<int,int> pii;
int main()
{
int N, D, T; scanf("%d %d %d", &N, &D, &T);
int last_rebel = -1;
int num_rebels = 0;
vector<int> inactive(N, -1);
vector<int> times(N);
vector<int> next;
stack<pii> S;
for(int i = 0; i < N; ++i)
{
int t; scanf("%d", &t);
times[i] = t;
last_rebel = max(last_rebel, i + T - t);
if(not S.empty()) S.top().second = max(S.top().second, i + T - t);
if(t > T and last_rebel >= i)
{
int last_rebel_internal = -1;
++num_rebels;
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |