判断闰年(基本法) 摘要:解题思路:首先要知道闰年是什么,闰年就是可以被4整除但是不能被100整除,或者能被400整除的年份。注意事项:注意这里是||,而不是&&参考代码:#include<stdio.h>//闰年就是可以被4…… 题解列表 2022年11月10日 0 点赞 0 评论 1001 浏览 评分:9.9
编写题解 3009: 判断闰年 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a; cin>>a; if((a…… 题解列表 2023年12月31日 0 点赞 0 评论 466 浏览 评分:0.0
不懂可评论 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main{ public static void main(String[] a…… 题解列表 2024年11月23日 0 点赞 0 评论 453 浏览 评分: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 评论 384 浏览 评分:0.0
3009: 判断闰年 摘要:解题思路:闰年两种判定方法:要么能被4整除且不能被100整除,或者能被400整除可得参考代码:#include<iostream> using namespace std; int main() …… 题解列表 2024年03月03日 0 点赞 0 评论 630 浏览 评分: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 评论 559 浏览 评分:0.0
C语言判断闰年 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int year,flag=0; scanf("%d",&year); if(year%…… 题解列表 2024年02月27日 0 点赞 0 评论 574 浏览 评分:0.0
水题目,只需一个bool 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool is_leap(int y){ return y%4 == 0 && y % 100…… 题解列表 2023年01月11日 0 点赞 0 评论 448 浏览 评分:0.0
判断闰年(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x; scanf("%d",&x); if(x%4==0 && x%100!=0…… 题解列表 2023年01月12日 0 点赞 0 评论 515 浏览 评分:0.0
3009: 判断闰年 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; if(a%4==0&&a%1…… 题解列表 2023年07月13日 0 点赞 0 评论 457 浏览 评分:0.0