题解 1240: 生日日数

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

生日日数(模拟)

摘要:解题思路:模拟注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;boolisleap(int……

#C++1240——生日日数

摘要:思路参考注释参考代码:#include <iostream> using namespace std; int arr[]={0,31,28,31,30,31,30,31,31,30,31,30,……

生日日数——python

摘要:解题思路:注意事项:参考代码:def f(year1):    if (year1 % 100 != 0 and year1 % 4 == 0) or year1 % 400 == 0:       ……

生日日数 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[12]={31,28,31,30,31,30,3……

生日日数 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int check(int n) { if((n%4==0&&n%100)||(……

生日日数 (C语言代码)

摘要:#include <stdio.h>struct date{          int year,month,day;};int main(){  int i,n,leap;  int s[2][13……

生日日数 (Java代码)

摘要:解题思路:注意事项:别忘了导包import java.text.DateFormat;import java.text.SimpleDateFormat;import java.util.Calend……

生日日数-题解(C++代码)(简单版)

摘要:#### 解题思路: 注意先初始化月份天数,然后一天天加的时候判断是否为闰年就行了 #### 参考代码: ```cpp #include using namespace std; int ……