# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
548975 | LucaDantas | Arranging Tickets (JOI17_arranging_tickets) | C++17 | 277 ms | 13752 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
constexpr int maxn = 2e5+10;
struct Itv {
int l, r, qtd; // subtasks 1-4 qtd == 1 so I can ignore it for what I'm going to code
} itv[maxn];
int a[maxn]; // quantos caras precisam passar por cada pos
vector<int> opa[maxn];
bool check(int qtd_mov, int M, int sz) {
vector<int> mov(sz+1);
for(int i = 1; i <= sz; i++)
mov[i] = (a[i] + qtd_mov - M + 1) / 2;
priority_queue<int> q;
vector<int> add_lazy(sz+1);
int usados = 0, lazy = 0;
for(int i = 1; i <= sz; i++) {
for(int x : opa[i])
q.push(x);
lazy += add_lazy[i];
mov[i] += lazy;
while(mov[i] > 0) {
컴파일 시 표준 에러 (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... |