제출 #525993

#제출 시각아이디문제언어결과실행 시간메모리
525993MateGiorbelidzeArranging Shoes (IOI19_shoes)C++14
15 / 100
19 ms3112 KiB
#include "shoes.h"
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back

long long count_swaps(std::vector<int> a) {
	ll n = a.size() / 2;
	ll cnt = 0;
	
	while (n > 1) {
		
		cnt += (n - 1);
		
		n--;
		
	}
	
	return cnt;
}
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...