# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
540938 | LittleCube | Collecting Stamps 3 (JOI20_ho_t3) | C++14 | 373 ms | 517584 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define ll long long
#define pii pair<int, int>
#define pll pair<ll, ll>
#define F first
#define S second
using namespace std;
ll N, L, dp[405][405][205][2], dis[405][405], ans;
pll a[405];
signed main()
{
cin >> N >> L;
for (int i = 1; i <= N; i++)
cin >> a[i].F;
for (int i = 1; i <= N; i++)
cin >> a[i].S;
for (int i = 1; i <= N; i++)
{
a[i + N] = a[i];
a[i].F -= L;
}
N *= 2;
for (int i = 1; i <= N; i++)
for (int j = i + 1; j <= N; j++)
dis[i][j] = dis[i][j - 1] + a[j].F - a[j - 1].F;
for (int i = 1; i <= N; i++)
for (int j = 1; j <= N; j++)
for (int k = 0; k <= N / 2; k++)
# | 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... |