首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
ryuki
2026年2月10日 11:30
打印日期 题解:
P1410
回复 0
|
赞 2
|
浏览 84
#include <iostream> #include <cstdio> using namespace std; int month_day[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; bool is_leapyear(int x) { return (x % 4 == 0 && x % 100 != 0) || (x % 400 == 0); } int main() { ...
bro
2026年2月5日 21:25
打印日期 题解:c++ 不用printf也能写,输出麻烦些
P1410
回复 0
|
赞 0
|
浏览 96
#include <bits/stdc++.h> using namespace std; //判断平年闰年 bool isYear(int year){ return (year % 400 == 0 || (year % 4 == 0 && year % 100 != 0)); } string Date(int day,int m[]){ //返回日期 如"10-21" 字符串 int month = 1; &n...
mlx
2026年1月31日 17:31
打印日期 题解:
P1410
回复 0
|
赞 1
|
浏览 134
#include<iostream> using namespace std; int days[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}; int year,day; bool check(int year) { if(year%4==0&&year%100!=0||year%400==0) return true; return false; } void work(int year,int day) { for(int i=1;i<=12;i++) ...
奶龙大王
2026年1月29日 16:05
打印日期 题解:
P1410
回复 0
|
赞 1
|
浏览 112
前导零printf补足方法,0x #include <iostream> #include <map> #include <cctype> // for isalpha, tolower #include <string> #include<algorithm> #include<stack> #include<stdlib.h> //C打印库函数 using namespace std; bool runian(int ...
OIsay-good
2024年3月19日 21:18
打印日期 题解:只有60% ,求大佬提点
P1410
回复 5
|
赞 17
|
浏览 2.9k
#include<stdio.h> struct node { int year,month,day,x; }p; int s[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}; int main(){ while (scanf("%d %d",&p.year,&p.x)!=EOF) { if(p.year%40...
曾不会
2026年1月25日 15:00
打印日期 题解:
P1410
回复 0
|
赞 0
|
浏览 88
打印日期 #include<stdio.h> int a[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}; int main() { int y,d; while(scanf("%d %d",&y,&d)!=EOF) { if(y%4==0&&y%100!=0||y%400==0...
cczz
2025年8月5日 17:42
打印日期 题解:
P1410
回复 0
|
赞 7
|
浏览 573
#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 y, cnt; while(cin >> y >> cnt){ int m = 1, d = ...
xiaowaya
2025年3月20日 20:40
打印日期 题解:暴力题解
P1410
回复 0
|
赞 5
|
浏览 989
#include<bits/stdc++.h> #include<string> using namespace std; int mons[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}; bool run(int y){ if((y%400==0)||(y%4==0&&y%100!=0)){ return true; }else{ &nbs...
Elysiaaaaaaa
2025年3月12日 20:17
打印日期 题解:
P1410
回复 0
|
赞 9
|
浏览 955
#include <iostream> using namespace std; int monthDays[13] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; bool isLeapYear(int year) { return ...
zxjrheaven
2025年3月12日 19:17
打印日期 题解:暴力
P1410
回复 0
|
赞 3
|
浏览 1.3k
#include <bits/stdc++.h> using namespace std; struct date1 { int year; int moon=0; int day=0; }dat1[10005]; int month[12]={0,31,28,31,30,31,30,31,31,30,31,30}; void run(date1 a) { if((a.year%4==0&am...
1
2
3
4
题目
打印日期
题解数量
40
发布题解
在线答疑
热门题解
1
打印日期 题解:只有60% ,求大佬提点
2
打印日期 题解:
3
打印日期 题解:
4
打印日期 题解:
5
打印日期 题解:C语言题解 多组输入
6
打印日期 题解:求大佬解释下为什么只有60%通过率
7
打印日期 题解:暴力题解
8
打印日期(用前缀和写了一下 附注释) 题解:
9
打印日期 题解:C++实现
10
打印日期 题解:暴力