| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1348099 | thesentro | 이주 (IOI25_migrations) | C++20 | 21 ms | 688 KiB |
#include "migrations.h"
#include <bits/stdc++.h>
using namespace std;
#define ll long long
vector<ll>dp(3e4, 0);
int send_message(int N, int i, int Pi) {
dp[i] = dp[Pi] + 1;
if (N-1==i)
{
ll mx = 0;
for (int i=0 ; i<N ; i++)
mx = max(mx, dp[i]);
for (int i=0 ; i<N ; i++)
{
if (mx==dp[i])
return i;
}
}
else
return 0;
}
std::pair<int, int> longest_path(std::vector<int> S) {
return {0, S[S.size()-1]};
}
컴파일 시 표준 에러 (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... | ||||
