제출 #841851

#제출 시각UTC-0아이디문제언어결과실행 시간메모리
8418512023-09-02 07:34:53hcng추월 (IOI23_overtaking)C++17
0 / 100
1 ms600 KiB
#include <bits/stdc++.h>
#include "overtaking.h"
using namespace std;
#define long long long
long l, n, x, m;
vector<long> w, s;
vector<vector<long>> t, e, v, pre;
void init(int L, int N, vector<long> T, vector<int> W, int X, int M, vector<int> S) {
l = L, x = X, m = M;
s.assign(S.begin(), S.end());
t.resize(m);
for (long i = 0; i < N; i++) {
if (W[i] > X) {
w.push_back(W[i]);
t[0].push_back(T[i]);
}
}
n = w.size();
w.push_back(X); t[0].push_back(0);
e.assign(m, vector<long>(n + 1));
v.assign(m, vector<long>(n));
pre.assign(m, vector<long>(n));
for (long i = 1; i < m; i++) {
t[i] = vector<long>(n + 1);
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...