제출 #1036433

#제출 시각아이디문제언어결과실행 시간메모리
1036433DeathIsAwe전선 연결 (IOI17_wiring)C++14
0 / 100
1 ms348 KiB
#include "wiring.h" #include <bits/stdc++.h> using namespace std; #define ll long long long long min_total_length(vector<int> r, vector<int> b) { ll ans = 0, temp; if (b.size() > r.size()) { for (int i=0;i<(int)b.size();i++) { temp = min(i, (int)r.size() - 1); ans += b[i] - r[temp]; } } else { for (int i=0;i<(int)r.size();i++) { temp = min(i, (int)b.size() - 1); ans += b[temp] - r[i]; } } 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...