Run ID:118354
提交时间:2025-04-27 20:58:25
#include <iostream> bool isLeapYear(int year) { return (year % 400 == 0) || (year % 4 == 0 && year % 100 != 0); } int main() { int a, b, c; std::cin >> a >> b >> c; int count = 0; if (isLeapYear(a)) count++; if (isLeapYear(b)) count++; if (isLeapYear(c)) count++; std::cout << count << std::endl; return 0; }