| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1351379 | ElayV13 | Arranging Shoes (IOI19_shoes) | C++20 | 14 ms | 1960 KiB |
#include "shoes.h"
#include "bits/stdc++.h"
using namespace std;
#define ll long long
ll count_swaps(vector<int>s)
{
ll res=0;
ll cnt=0;
for(int i=0;i<s.size();i++){
if(s[i]<0){
ll need=cnt*2;
res+=abs(need-i);
++cnt;
}
}
return res;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
