| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1364053 | seungchan1e | Rotating Lines (APIO25_rotate) | C++20 | 25 ms | 2156 KiB |
#if !defined(ONLINE_JUDGE) && !defined(EVAL)
#include "grader.cpp"
#endif
#include "rotate.h"
#include <bits/stdc++.h>
using namespace std;
void energy(int n, std::vector<int> v){
vector<int> p(n);
iota(p.begin(), p.end(), 0);
sort(p.begin(), p.end(), [&](int i, int j){return v[i] < v[j];});
for(int i = 0; i < n/2; i++) {
rotate({p[i+n/2]}, 25000 + 50000 - v[p[i+n/2]] + v[p[i]]);
}
}
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
