注意结果为0的情况 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 #include <bits/stdc++.h> usingnamespacestd; constintmaxn = 1000 + 5; intans[maxn]; intmain() { inta, b, n; cin >> ...
#define llu unsigned long long using namespace std; int main() { //cout << fixed << setprecision(0); //cout << setw(8) << setiosflags(ios::left); int a[2000],n; cin >> a[0] >> a[1] >> n; //cout << a1 << " " << a2 ; int s=2; for(int i=2;i<=n;i++)...