3009: 判断闰年 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; if(a%4==0&&a%1…… 题解列表 2023年07月13日 0 点赞 0 评论 147 浏览 评分:0.0
编写题解 3009: 判断闰年 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a; cin>>a; if((a…… 题解列表 2023年12月31日 0 点赞 0 评论 137 浏览 评分:0.0
3009: 判断闰年 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ bool flag; int year; …… 题解列表 2023年12月23日 0 点赞 0 评论 122 浏览 评分:0.0
题解 3009: 判断闰年 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a; cin>>a; if(a%…… 题解列表 2023年12月23日 0 点赞 0 评论 153 浏览 评分:0.0
C语言判断闰年 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int year,flag=0; scanf("%d",&year); if(year%…… 题解列表 2024年02月27日 0 点赞 0 评论 223 浏览 评分:0.0
判断闰年(宏定义,给自己找找乐子) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define YEAR(a) a%100?(a%4?'N':'Y'):(a%400?'N&…… 题解列表 2023年10月08日 0 点赞 0 评论 227 浏览 评分:0.0
编写题解 3009: 判断闰年 摘要:解题思路:注意事项:参考代码:a=int(input())if (a%4==0)&(a%100!=0): print('Y')elif (a%400==0): print(…… 题解列表 2024年02月27日 0 点赞 0 评论 190 浏览 评分:0.0
3009: 判断闰年(c语言) 摘要:解题思路:能被4整除但不能被100整除,能被400整除的年份就是闰年注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a)…… 题解列表 2023年07月04日 0 点赞 0 评论 274 浏览 评分:0.0
3009: 判断闰年 摘要:解题思路:闰年两种判定方法:要么能被4整除且不能被100整除,或者能被400整除可得参考代码:#include<iostream> using namespace std; int main() …… 题解列表 2024年03月03日 0 点赞 0 评论 219 浏览 评分:0.0
不懂可评论 摘要:解题思路:注意事项:参考代码:year=int(input()) if((year%4==0)and(year%100!=0)or(year%400==0)): print("Y") e…… 题解列表 2024年11月23日 0 点赞 0 评论 140 浏览 评分:0.0