题解 1850: 判断第几天

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

筛选

题解 1850: 判断第几天

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c[13]={0,31,28,31,30,31,30,3……

最普通的解题方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};   ……

判断第几天C++

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool IsLeapYear(int year)//用来判断是否是闰年{     if (y……

1850: 判断第几天

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() {     string str;     in……

判断第几天

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() {    int y, m, d;    while (scanf("%d/%d/%d", &y, &m, &d……

题目 1850: 判断第几天

摘要:解题思路: for循环+switch足以解这道题注意事项:1.2月的闰月要判断 2.循环的条件  int i = 1; i < m; i++ 不能等于m不然会多加一个月份的天数 3. sum在每一次输……