首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
奶龙大王
2026年2月9日 14:27
日期类 题解:
P1437
回复 0
|
赞 1
|
浏览 45
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
|
赞 0
|
浏览 50
#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
|
赞 0
|
浏览 58
#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
|
赞 2
|
浏览 76
//题目说没有闰年,那么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
|
浏览 756
#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
|
浏览 417
#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
|
赞 8
|
浏览 1.5k
#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; &...
yeee700
2025年3月11日 12:17
日期类 题解:
P1437
回复 0
|
赞 5
|
浏览 1.1k
#include<stdio.h> int main(){ int m; scanf("%d",&m); int months[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}; int year; int month; int day; // 总的思路。输入一个处理一个 ...
渐鸿于陆
2024年3月23日 21:50
日期类 题解:成功AC,nice
P1437
回复 1
|
赞 9
|
浏览 1.4k
#include<stdio.h> int days[13] = {0,31,28,31,30,31,30,31,31,30,31,30,31}; int main(void){ int year,month,day,n; scanf("%d",&n); while(n--){ scanf("%d%d%d",&year,&...
Candour
2024年5月16日 23:26
日期类(模拟) 题解:
P1437
回复 0
|
赞 8
|
浏览 1.4k
#include<bits/stdc++.h> using namespace std; int month[] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int n; int y, m, d; bool cheak(int y) { return y % 4 == 0 && y % 100 != 0 || y % 400 == 0; } int main() { cin >> n; while(n --) ...
1
2
3
题目
日期类
题解数量
24
发布题解
在线答疑
热门题解
1
日期类 题解:成功AC,nice
2
日期类 题解:暴力
3
日期类(模拟) 题解:
4
日期类 题解:
5
P1437 解题思路分享
6
日期类 题解:C++实现
7
日期类 题解:C++
8
日期类 题解:
9
日期类 题解:
10
日期类 题解: