[codeup 1928]日期差值 时间超限
参考了算法笔记的程序,时间超限 有空再看看能不能更快。
#include<cstdio>
//#include<cmath>
int month[13][2]={
(0,0),(31,31),(28,29),(31,31),(30,30),(31,31),(30,30),(31,31),(31,31),(30,30),(31,31),(30,30),(31,31)
};
bool isL(int x){
return (x%4==0&&x%100!=0)||(x.
原创
2020-07-09 13:59:12 ·
151 阅读 ·
0 评论