用函数做沈思邈2025-07-05 16:18:57发布于:上海5阅读0回复0点赞#include<iostream> using namespace std; bool isLeap(int n){return n%4 == 0&&n%100!=0||n%400==0;} int n; int main(){ cin >> n; cout << (isLeap(n)?"Y":"N") << endl; return 0; } 有帮助,赞一个去预览0/2000发布这里空空如也
有帮助,赞一个