首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
太一
2026年3月17日 18:01
日期类 题解:
P1437
回复 0
|
赞 2
|
浏览 83
#include<iostream> #include<cmath> #include<algorithm> #include<string> #include<map> using namespace std; int main() { int n, y, m, d, month[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 }; cin >> n; while (n--)...
HKX9XAS
2026年3月14日 15:40
日期类 题解:面向对象创建日期类
P1437
回复 1
|
赞 2
|
浏览 78
#include<stdio.h> #include<iostream> using namespace std; int md[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}; bool isRY(int y){ if( y%400==0 || (y%4==0 && (y%100)!=0) ) return 1; else return 0; } class Date{ private: ...
王艺道
2026年3月14日 14:56
日期类 题解:
P1437
回复 0
|
赞 0
|
浏览 84
#include<bits/stdc++.h> using namespace std; vector<int> y; vector<int> m; vector<int> d; int main(){ int n, y1, m1, d1; cin >> n; &nbs...
奶龙大王
2026年2月9日 14:27
日期类 题解:
P1437
回复 0
|
赞 11
|
浏览 283
printf打印补充前导零 #include <iostream> #include <map> #include <cctype> // for isalpha, tolower #include <string> #include<algorithm> #include<stack> #include<stdlib.h> //C打印库函数 #include<climits>//climits中的最大最...
bro
2026年2月5日 21:59
日期类 题解:c++
P1437
回复 0
|
赞 4
|
浏览 272
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int m[13] = {0,31,28,31,30,31,30,31,31,30,31,30,31}; while(n--){ int year,month,day; cin...
mlx
2026年2月3日 23:12
日期类 题解:
P1437
回复 0
|
赞 1
|
浏览 193
#include<iostream> using namespace std; int days[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}; void work(int year,int month,int day) { day++; if(day>days[month]) { day=1; month++; if(month>12) { month=1; year++; } } printf("%d-%02d-%02d\n",yea...
曾不会
2026年1月26日 15:52
日期类 题解:
P1437
回复 0
|
赞 4
|
浏览 200
//题目说没有闰年,那么2月就是28天,一开始以为是后天,原来是后一天就哈哈哈哈哈 #include<stdio.h> int a[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}; int main() { int n; scanf("%d",&n); for(int i=0;i<n;i++) { &nbs...
无名1
2025年9月1日 18:42
日期类 题解:C++
P1437
回复 0
|
赞 2
|
浏览 898
#include<bits/stdc++.h> using namespace std; struct data{ int y; int m; int d; }; // 输出这个日期的后一天的日期(不考虑闰年) void mHou(data a){ int num[12]={31,28,31,30,31,30,31,31,30,31,30,31}; a.d++; if(a.d>num[a.m-1]){ a.d=1; a.m++; } if(a.m>12){ a.m=1; a.y++; ...
cczz
2025年8月5日 17:51
日期类 题解:
P1437
回复 0
|
赞 1
|
浏览 472
#include<bits/stdc++.h> using namespace std; int month[13] = {0,31,28,31,30,31,30,31,31,30,31,30,31}; bool isLeapYear(int y){ return (y % 400 == 0 || (y % 4 == 0 && y % 100 != 0)); } int main(){ int n; cin >> n; int y, m, d; while(n-- > 0){ cin...
zxjrheaven
2025年3月12日 22:19
日期类 题解:暴力
P1437
回复 0
|
赞 16
|
浏览 1.7k
#include <bits/stdc++.h> using namespace std; struct date1 { int year; int moon=0; int day=0; }dat1[10005]; int month[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}; int main() { int n; &...
1
2
3
题目
日期类
题解数量
27
发布题解
在线答疑
热门题解
1
日期类 题解:暴力
2
日期类 题解:成功AC,nice
3
日期类 题解:
4
日期类(模拟) 题解:
5
日期类 题解:
6
日期类 题解:c++
7
日期类 题解:
8
P1437 解题思路分享
9
日期类 题解:C++实现
10
日期类 题解:C++