Submission #124373

#TimeUsernameProblemLanguageResultExecution timeMemory
124373vexAncient Books (IOI17_books)C++14
0 / 100
2 ms376 KiB
#include <bits/stdc++.h> #include "books.h" #define maxn 1000005 using namespace std; long long minimum_walk(vector<int>p, int s) { int n=p.size(); long long sol=n-1; for(int i=0;i<n;i++) { sol+=abs(i-p[i]); } return sol; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...