Submission #525993

# Submission time Handle Problem Language Result Execution time Memory
525993 2022-02-13T12:46:59 Z MateGiorbelidze Arranging Shoes (IOI19_shoes) C++14
15 / 100
19 ms 3112 KB
#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 time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Incorrect 0 ms 204 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Incorrect 0 ms 204 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Incorrect 0 ms 204 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 300 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 19 ms 2980 KB Output is correct
6 Correct 18 ms 3100 KB Output is correct
7 Correct 17 ms 3012 KB Output is correct
8 Correct 17 ms 3112 KB Output is correct
9 Correct 17 ms 2980 KB Output is correct
10 Correct 19 ms 3080 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Incorrect 0 ms 204 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Incorrect 0 ms 204 KB Output isn't correct
3 Halted 0 ms 0 KB -