# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1255042 | tosivanmak | 이주 (IOI25_migrations) | C++20 | 27 ms | 492 KiB |
#include "migrations.h"
#include<bits/stdc++.h>
using namespace std;
#define ll long long
ll dep[10005];
ll maxdep=0;
int send_message(int N, int i, int Pi) {
dep[i]=dep[Pi]+1;
if(dep[i]>maxdep){
maxdep=dep[i]; return 1;
}
return 0;
}
std::pair<int, int> longest_path(std::vector<int> S) {
for(int i=S.size()-1;i>=0;i--){
if(S[i]==1){
return {0,i+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... |