//第一题,因为都是2的n次方,所以取对数转乘法为加法 int main(){ int n; cin >> n; unordered_map<int, int> cache; for(int i = 0; i <= 10; ++i){ cache[1 << i] = i; } cache[0] = -1; for(int i = 0; i < n; ++i){ int m; cin >> m; vector<i...