//C++版代码 #include <iostream> #include <iomanip> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int year, totalDay; int days[] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; while (cin >> year >> totalDay) { ...