跳到正文

hydk2012

1419936

这个家伙很懒,什么也没有留下

这是 2026年11月21日 存档的第 6 版,不是当前版本。查看当前版本

资料、奖项与版本

3175453832

《学霸》或《尖子生》多练一练

https://www.luogu.me/article/etnifexf

https://www.luogu.me/article/cys6du4c

原神 UID:334457639

https://www.luogu.com.cn/discuss/1373791?page=4

C++
#include<bits/stdc++.h>
using namespace std;
#define int long long
int day[10000][13][32];
int month[]={0,31,0,31,30,31,30,31,31,30,31,30,31},cnt;
bool check(int y,int m,int d)
{
	if(m!=2) return d<=month[m];
	if(m==2)
	{
		if(y%4==0&&y%100!=0||y%400==0) return d<=29;
		else return d<=28;
	}
}
signed main()
{
	for(int i=1;i<=9999;i++)
	{
		for(int j=1;j<=12;j++)
		{
			for(int k=1;k<=31;k++)
			{
				if(!check(i,j,k)) continue;
				day[i][j][k]=++cnt;
			}
		}
	}
	int a,b,c,d,e,f;
	cin>>a>>b>>c>>d>>e>>f;
	cout<<day[d][e][f]-day[a][b][c];
	return 0;
}

   I KAIOI↺  \color{#0aa}\cancel{\ \ \ \textrm{\textit{\textbf{{\Large\color{#0af}I }}}}^\textrm{\textit{\textbf{{\small\color{#e99100}A}}}}_\textrm{\textit{\textbf{\large\color{#778891}K}}}\textrm{\textit{\textbf{\LARGE\color{#9c1}IOI}}}\circlearrowleft\ \ }


杂物间

https://nightly.paw.msgbyte.com/


大事祭

时间事件
2024-08-09注册
2024-08-09完成第一道红题
2024-08-13完成第一道橙题
2024-08-16完成第一道黄题
2024-08-19完成第一道绿题
2024-09-13第一次大吉
2024-10-07生日,完成第一道青题
2024-10-08完成第一道紫题
2024-10-09150150 通过祭
2024-10-14绿名
2024-11-10200200 通过祭
2024-11-29完成奖项认证,获得 55 级钩
2024-12-16橙名
2024-12-21打卡 100100 祭
2024-12-24完成第一道灰题
2025-04-02讨论区复活
2025-08-06人生中第一次跳伞
2025-08-09注册一年祭
2025-08-22人生中第一次AK比赛,第一次AK Div4.
2025-09-30人生中第一篇题解,且是第一篇黄题题解
2025-10-06第一篇红题题解
2025-10-20红名
2025-12-04jc我们班某同学成功
2026-02-05第一篇绿题题解
2026-03-301k通过祭
2026-05-09第一篇橙题题解
2026-05-19第一篇青题题解
2026-06-29完成第一道蓝题
2026-07-19完成第一道黑题
2026-09-02第一篇蓝题题解

知识

一阶等差:an=p×n+qa_n=p\times n+q
二阶等差:an=p×n2+q×n+ma_n=p\times n^{2}+q\times n+m
三阶等差:an=a1+(n−1)×d1+(n−1)(n−2)2×d2 a_n = a_1 + (n-1)\times d_1 + \frac{(n-1)(n-2)}{2}\times d_2


友链
Manor\texttt{\color{#e74c3c}Manor}

daibailin123\texttt{\color{#e74c3c}daibailin123}

2012年6月2日

2013年5月27日