判断第几天 (C++代码)(不好玩) 摘要:注意事项: 不好玩。参考代码:#include<bits/stdc++.h> using namespace std; int is(int num) { if ((n…… 题解列表 2018年06月09日 0 点赞 0 评论 1017 浏览 评分:0.0
题解 1850: 判断第几天 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c[13]={0,31,28,31,30,31,30,3…… 题解列表 2025年02月06日 0 点赞 0 评论 162 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}; …… 题解列表 2024年11月28日 0 点赞 0 评论 220 浏览 评分:0.0
这个比1246数据要强,考虑了闰年的情况 摘要:#include<bits/stdc++.h> using namespace std; int main() { int y,m,d; char c; while…… 题解列表 2024年08月04日 0 点赞 0 评论 152 浏览 评分:0.0
判断第几天(我也是闲,整了个switch来输出) 摘要:参考代码: ```c #include int leap(int year) { int k=year%100?(year%4?0:1):(year%400?0:1);//k为1,为…… 题解列表 2023年10月27日 0 点赞 0 评论 147 浏览 评分:0.0
判断第几天C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool IsLeapYear(int year)//用来判断是否是闰年{ if (y…… 题解列表 2023年10月21日 0 点赞 0 评论 140 浏览 评分:0.0
1850: 判断第几天 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { string str; in…… 题解列表 2023年09月27日 0 点赞 0 评论 109 浏览 评分:0.0
判断第几天 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int y, m, d; while (scanf("%d/%d/%d", &y, &m, &d…… 题解列表 2023年07月02日 0 点赞 0 评论 122 浏览 评分:0.0
题目 1850: 判断第几天 摘要:解题思路: for循环+switch足以解这道题注意事项:1.2月的闰月要判断 2.循环的条件 int i = 1; i < m; i++ 不能等于m不然会多加一个月份的天数 3. sum在每一次输…… 题解列表 2023年04月28日 0 点赞 0 评论 154 浏览 评分:0.0
编写题解 1850: 判断第几天(简单易懂,适合新手) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int y,m,d; int a[13]={00,31,28…… 题解列表 2022年07月20日 0 点赞 0 评论 204 浏览 评分:0.0