2 条题解

  • 1
    @ 2024-7-25 12:55:39

    参考答案:

    #include<iostream>
    
    using namespace std;
    
    int main() 
    {
    	int n;
    
    	cin >> n;
    	if (n % 400 == 0 || (n % 4 == 0 && n % 100 != 0)) cout << "yes";
    	else cout << "no";
    
    	return 0;
    }
    
    • 0
      @ 2025-10-17 11:55:42

      Python:

      import calendar
      
      year = int(input())
      if calendar.isleap(year):
          print("yes")
      else:
          print("no")
      
      • 1

      信息

      ID
      59
      时间
      1000ms
      内存
      64MiB
      难度
      8
      标签
      递交数
      12
      已通过
      8
      上传者