Submission #875977

#TimeUsernameProblemLanguageResultExecution timeMemory
875977Darren0724철로 (IOI14_rail)C++17
8 / 100
45 ms608 KiB
#include "rail.h" #include <bits/stdc++.h> using namespace std; void findLocation(int n, int first, int ans[], int type[]) { ans[0] = first; vector<int> a(n), b(n); type[0] = 1; for (int i = 1; i < n; i++) { a[i] = getDistance(0, i); b[i] = getDistance(i, 0); if (a[i] == b[i]) { type[i] = 2; } else { type[i] = 1; } ans[i] = first + a[i]; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...