首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
yauqq
2026年3月18日 14:37
日期计算 题解:
P1051
回复 0
|
赞 1
|
浏览 52
#include<bits/stdc++.h> using namespace std; int main(){ int year,month,day; while(cin >> year >> month >> day){ int monthDay[12] = {31,28,31,30,31,30,31,31,30,31,30,31}; if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) monthDay[1] +=...
阿坤
2026年3月17日 16:29
日期计算 题解:C
P1051
回复 0
|
赞 1
|
浏览 37
#include<stdio.h> #include<math.h> int main(){ int year,month,day,sum; int M[12]={31,28,31,30,31,30,31,31,30,31,30,31}; while( scanf("%d %d %d",&year,&month,&day) !=EOF ){ sum=0; if ( year%4==0 && year%100!=0 || (year%400==0) ) ...
快乐小土狗
2026年3月16日 10:45
日期计算 题解:
P1051
回复 0
|
赞 3
|
浏览 58
#include <stdio.h> // 定义日期结构体 struct Date { int year; int month; int day; }; // 判断是否为闰年 int isLeapYear(int year) { return (year % 4 == 0 && year % 100 != 0) || (year % 400 == 0); } // 获取某月的天数 int getDaysInMonth(int year, int month) { int days...
彻底死去
2026年3月16日 00:21
日期计算 题解:
P1051
回复 0
|
赞 1
|
浏览 64
#include<iostream> #include<cstdio> #include<cmath> #include<algorithm> #include<string> #include<cstring> using namespace std; int main() { int year, month, day, sum; int days1[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 }; int days2[...
太一
2026年3月15日 22:29
日期计算 题解:
P1051
回复 0
|
赞 2
|
浏览 39
#include<iostream> #include<cmath> #include<algorithm> #include<string> using namespace std; int main() { int month[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 }, y, m, d, sum = 0; while (cin >> y >> m >> d) {...
yjzhou20
2026年3月15日 16:34
日期计算 题解:
P1051
回复 2
|
赞 2
|
浏览 55
判题失败:无法解析AI响应,这咋整呀!admin能不能增加一个反馈的接口,有些题目的AI判卷总会遇到奇奇怪怪的情况。
ez008
2026年3月13日 23:13
日期计算 题解:
P1051
回复 0
|
赞 6
|
浏览 82
#include <iostream> using namespace std; struct Data{ int year; int month; int day; }; //先判定是否为闰年 bool s_year(int y){ return (y%4==0&&y%100!=0)||(y%400==0); } int main() { int y,m,d; while(cin>>y>>m>>d){ int num=0...
王艺道
2026年3月13日 17:41
日期计算 题解:
P1051
回复 0
|
赞 1
|
浏览 77
#include<bits/stdc++.h> using namespace std; struct{ int y, m, d; }t; int m_d[] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int main(...
driftBaron
2026年3月12日 21:05
日期计算 题解:
P1051
回复 0
|
赞 0
|
浏览 43
#include< iostream> #include< algorithm> using namespace std; struct a{ int year; int month; int day; }; int is29(int year, int (&mon)[13]){//int* mon //int mon[] if((year%400==0)||(year%4==0&&year%100!=0)){ mon[2]=29; } else{ mon[2]=28; } } int daysto0(int...
driftBaron
2026年3月12日 21:05
日期计算 题解:
P1051
回复 0
|
赞 0
|
浏览 45
#include<iostream> #include<algorithm> using namespace std; struct a{ int year; int month; int day; }; int is29(int year,int (&mon)[13]){//int* mon//int mon[] if((year%400==0)||(year%4==0&&...
1
2
3
...
7
题目
日期计算
题解数量
61
发布题解
在线答疑
热门题解
1
日期计算 题解:
2
日期计算 题解:AC50%不知道什么原因 有没有大佬帮忙看看
3
日期计算 题解:AC为50%,不知道哪里有问题,求解
4
日期计算 题解:
5
日期计算 题解:50%,不知道哪里错了
6
日期计算 题解:c++
7
日期计算 题解:棒棒题解
8
日期计算 题解:有人能看看为啥ac50%吗
9
日期计算 题解:按教材上敲的怎么通过只有百分之五十
10
日期计算 题解:C++ 50%正确率看这里