제출 #824148

#제출 시각아이디문제언어결과실행 시간메모리
824148SoulKnightArranging Shoes (IOI19_shoes)C++17
15 / 100
19 ms3136 KiB
#include "shoes.h" #include "bits/stdc++.h" using namespace std; #define ll long long #define ln '\n' const int N = 2e5 + 5; const int LG = 20; const int INF = 2e9 + 5; const int MOD = 998244353; vector<int> s; int n; void init(){ cin >> n; s.resize(2*n); for (int i = 0; i < 2*n; i++) cin >> s[i]; } ll solve(vector<int>& s){ n = s.size() / 2; return 1LL * (n-1) * (n) / 2; } long long count_swaps(std::vector<int> s) { return solve(s); }
#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...