判断第几天 (C语言代码) 摘要:#include <stdio.h>int time (){ int pin[12]={31,28,31,30,31,30,31,31,30,31,30,31};//平年每一个月天数 in…… 题解列表 2019年04月26日 0 点赞 0 评论 718 浏览 评分:4.7
1850: 判断第几天 摘要:解题思路:switch累加注意事项:重复使用:while(scanf("%d/%d/%d",&year,&month,&day)!=EOF){ 算法代码 } 参考代码:#include <stdio.…… 题解列表 2021年03月05日 0 点赞 0 评论 358 浏览 评分:2.0
判断第几天 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.math.BigInteger; import java.util.*; public class Main { public stati…… 题解列表 2018年10月16日 0 点赞 0 评论 2291 浏览 评分:2.0
1850: 判断第几天 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { string str; in…… 题解列表 2023年09月27日 0 点赞 0 评论 178 浏览 评分:0.0
判断第几天 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int year,month,day,sum=0,i; int day_nums[] = {31,2…… 题解列表 2021年03月29日 0 点赞 0 评论 281 浏览 评分: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 评论 269 浏览 评分:0.0
题目 1850: 判断第几天 摘要:解题思路: for循环+switch足以解这道题注意事项:1.2月的闰月要判断 2.循环的条件 int i = 1; i < m; i++ 不能等于m不然会多加一个月份的天数 3. sum在每一次输…… 题解列表 2023年04月28日 0 点赞 0 评论 212 浏览 评分:0.0
判断第几天 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int y, m, d; while (scanf("%d/%d/%d", &y, &m, &d…… 题解列表 2023年07月02日 0 点赞 0 评论 179 浏览 评分: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 评论 349 浏览 评分:0.0
判断第几天C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool IsLeapYear(int year)//用来判断是否是闰年{ if (y…… 题解列表 2023年10月21日 0 点赞 0 评论 203 浏览 评分:0.0