제출 #340508

#제출 시각아이디문제언어결과실행 시간메모리
340508FlashGamezzz전선 연결 (IOI17_wiring)C++11
0 / 100
26 ms3052 KiB
#include <iostream> #include <cstdlib> #include <cstdio> #include <fstream> #include <algorithm> #include <unordered_set> #include <vector> #include <utility> #include "wiring.h" using namespace std; long long min_total_length(vector<int> r, vector<int> b) { int n = r.size(), m = b.size(); long long sum = 0; for (int i = 0; i < n; i++){ sum += b[0]-r[i]; } for (int i = 0; i < m; i++){ sum += b[i]-r[n-1]; } sum -= min(n, m) * (b[0]-r[n-1]); return sum; }
#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...