第一题: #include <iostream> #include <vector> #include <cmath> using namespace std; int main() { long long A, B, M; cin >> A >> B >> M; vector<long long> num(50005, 0); num[0] = 1; num[1] = 1; int tmp_max = 1; int n; cin >>...