제출 #610802

#제출 시각아이디문제언어결과실행 시간메모리
610802AriaH전선 연결 (IOI17_wiring)C++17
0 / 100
1 ms296 KiB
#include "wiring.h" #pragma GCC optimize("O3") #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef pair < int, int > pii; typedef pair < ll, ll > pll; #define F first #define S second #define all(x) x.begin(), x.end() #define SZ(x) (int)x.size() #define Mp make_pair #define endl "\n" #define fast_io ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); const int N = 1e6 + 10; const int LOG = 20; const ll mod = 1e9 + 7; const ll inf = 8e18; ll min_total_length(vector < int > r, vector < int > b) { ll ret = 0; int n = SZ(r), m = SZ(b); for(int i = 0; i < max(n, m); i ++) { ret += abs(r[min(i, n - 1)] - b[min(i, m - 1)]); } return ret; }
#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...