A.Johnny and Ancient Computer 题意: 给出和,每次只能进行选一个操作,求变成的最小操作次数。 题解: 因为乘除等价,直接贪心判断即可 #include <bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 2e5+5; const int INF = 0x3f3f3f3f; void solve() { ll x, y; scanf("%lld%lld", &x, &y); if(x > y) swap(x, y); int ans ...