C++宏定义闰年判断
摘要:解题思路:闰年:能被4但不能被100整除 或 能被400整除注意事项:宏定义换行要用\参考代码:#include<iostream>using name……
邪修xxxxxxxxxxxxxxxx
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; &nb……
[编程入门]宏定义之闰年判断
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define LEAP_YEAR(year)\{\ if((year % 4 == 0 &am……
[编程入门]宏定义之闰年判断
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define LEAP_YEAR(y) yearint main(){ int year=0;&……
C++简单写法--------------------------------------
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool is_leap(int year){ if (……
1039: [编程入门]宏定义之闰年判断(python)
摘要:####
~~~python
def islun(n):
if n%4 == 0 and n%100 != 0:
return 'L'
if n%400……