全部评论 2

  • 不儿,我直接改题了
    其实也可以

    #include<iostream>
    using namespace std;
    
    // 完成闰年判定 is_leap 函数 
    
    int main() {
    
    	int n;
    	cin >> n;
    	if(n%100!=0&&n%4==0||n%400==0) cout << "Y" << endl;
    	else cout << "N" << endl;
        
       return 0;
    } 
    

    2025-10-10 来自 上海

    0
  • thank you for your tip,I forget %one hundred isn't equal to zero

    2023-06-09 来自 安徽

    0
暂无数据

提交答案之后,这里将显示提交结果~

首页