Submission #439937

#TimeUsernameProblemLanguageResultExecution timeMemory
439937QuantumK9Arranging Shoes (IOI19_shoes)C++17
25 / 100
25 ms1868 KiB
#include "shoes.h" #include <bits/stdc++.h> using namespace std; #define ll long long long long count_swaps(vector<int> s) { ll n = s.size()/2; if ( n == 1 ){ if ( s[0] < 0 ){ return 0; } else{ return 1; } } else{ ll ans = ( ((n-1)*n)/2 ); return ans; } }
#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...