Submission #1000075

#TimeUsernameProblemLanguageResultExecution timeMemory
1000075KasymKArranging Shoes (IOI19_shoes)C++17
25 / 100
14 ms3164 KiB
#include "bits/stdc++.h" using namespace std; #define ll long long ll count_swaps(vector<int> v){ int n = (int)v.size(); if(n == 2) return (v.front() < v.back() ? 0 : 1); n /= 2; n--; ll answer = n*1ll*(n+1)/2; return answer; }
#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...