제출 #750614

#제출 시각아이디문제언어결과실행 시간메모리
750614Abrar_Al_Samit철로 (IOI14_rail)C++17
8 / 100
75 ms20600 KiB
#include "rail.h" #include <bits/stdc++.h> using namespace std; const int nax = 5000; int mem[nax][nax]; int get(int a, int b) { if(a==b) return 0; if(mem[a][b]) return mem[a][b]; return mem[a][b] = mem[b][a] = getDistance(a, b); } void findLocation(int N, int first, int location[], int stype[]) { location[0] = first, stype[0] = 1; for(int i=1; i<N; ++i) { int d = get(0, i); location[i] = first + d; stype[i] = 2; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...