Equalizing by Division (easy version)&&(hard version)

題目連接:http://codeforces.com/contest/1213/problem/D1ios 大體題意:c++ 給出一個數組arr,能夠將數組裏的數進行向下取整的除2操做,求最少的操做數使得數組中有k個數相同數組 #include <bits/stdc++.h> const int maxn=1e5+10; using namespace std; int a[maxn]; int
相關文章
相關標籤/搜索