제출 #340509

#제출 시각아이디문제언어결과실행 시간메모리
340509FlashGamezzz전선 연결 (IOI17_wiring)C++11
13 / 100
32 ms3820 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) { long long n = r.size(), m = b.size(), 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...