Submission #1165029

#TimeUsernameProblemLanguageResultExecution timeMemory
1165029SG2AlokArranging Shoes (IOI19_shoes)C++20
15 / 100
12 ms1864 KiB
#include "shoes.h"

long long count_swaps(std::vector<int> s) {
	long long tmp = s.size() / 2;
	return tmp * (tmp - 1) / 2;
}

/*
	-1 1 -2 2 -3 3
	
	2
*/
#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...