제출 #691463

#제출 시각아이디문제언어결과실행 시간메모리
691463zeroesandones전선 연결 (IOI17_wiring)C++17
0 / 100
0 ms212 KiB
#include <bits/stdc++.h> #include "wiring.h" using namespace std; using ll = long long; using vi = vector<ll>; using pi = pair<long long, long long>; #define pb emplace_back ll min_total_length(vector<int> r, vector<int> b) { ll ans = 0; int n = r.size(); int m = b.size(); for(int i = 0; i < n; ++i) { ans += b[0] - r[i]; } for(int i = 1; i < m; ++i) { ans += b[i] - r[n - 1]; } 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...