Run ID:123551
提交时间:2025-07-06 12:35:06
#include<bits/stdc++.h> using namespace std; int main() { int a, b = 0, c, d; cin >> a; cout << ""; for (int d = 1; d <= a; d++) { cin >> c >> d; for (x = d; x >= 0; x--) { c += 4; if (c % 100 == 0 && !c % 400 == 0) { c += 4; x++; } } cout<<c; } return 0; }