主站
DreamJudge
院校信息
专业题库
模拟考试
机试真题
专业课程
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
13729922474
2024年3月28日 10:29
日期计算 题解:只有50% 请问有什么问题吗
P1051
回复 2
|
赞 0
|
浏览 159
#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <stdio.h> #include <string.h> #include <string> #include <algorithm> #include<map> using namespace std; struct node { int year; int month; int day;...
渐鸿于陆
2024年3月23日 17:46
日期计算 题解:有人能看看为啥ac50%吗
P1051
回复 4
|
赞 0
|
浏览 213
#include<stdio.h> struct node{ int year; int month; int day; }p; int main(void){ while(scanf("%d %d %d",&p.year,&p.month,&p.day) !=EOF){ int days...
acd131415
2024年3月24日 14:34
日期计算 题解:直接计算即可
P1051
回复 0
|
赞 0
|
浏览 100
#include<iostream> using namespace std; int main(){ int month[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}; int year,day,mon,sum=0,flag=0; while(cin>>year>>mon>>day){ flag=0;month[2]=28;sum=0;...
OIsay-good
2024年3月18日 22:40
日期计算 题解:
P1051
回复 0
|
赞 0
|
浏览 233
#include <stdio.h> struct node { int year,month,day; }p; int f[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}; int main(){ while (scanf("%d %d %d",&p.year,&p.month,&p.day)!=EOF) { if ((p.year%4...
八千
2024年3月16日 17:56
日期计算 题解:按教材上敲的怎么通过只有百分之五十
P1051
回复 3
|
赞 0
|
浏览 297
#include<stdio.h> struct node { int year; int month; int day; }p; int f[13] = {0,31,28,31,30,31,30,31,31,30,31,30,31}; int main(){ while(scanf("%d %d %d",&p.year,&p.mon...
张会老儿
2024年3月13日 13:43
日期计算 题解:大佬看看我的代码,怎么一直是百分之50啊。日期判断没问
P1051
回复 1
|
赞 0
|
浏览 401
#include<stdio.h> struct data{ int year; int month; int day; }; int daytab[2][13]={ {0,31,28,31,30,31,30,31,31,30,31,30,31}, {0,31,29,31,30,31,30,31,31,30,31,30,31}, }; int IsLeapYear(int year){ return (year%4==0&&year%100!=0)||year%4...
Cookie‘s AE86
2024年3月13日 10:50
日期计算 题解:
P1051
回复 0
|
赞 0
|
浏览 189
#include<bits/stdc++.h> using namespace std; bool runjudge(int year); int main(){ int year, month, day; int run[] = {0,31,28,31,30,31,30,31,31,30,31,30,31}; while(cin >> year >> month >> day){ if(runjudge(year)) run[2] = 29; ...
小酒
2024年3月11日 15:29
日期计算 题解:
P1051
回复 4
|
赞 0
|
浏览 279
1051:为何正确率一直是50%呢 struct date{ int year; int month; int day; }p; #include <bits/stdc++.h> using namespace std; int main() { int a[13]={0,31,28,31,30,...
泛泛之交
2024年3月12日 11:16
__
P1051
回复 0
|
赞 0
|
浏览 93
分子
2024年3月11日 11:05
日期计算 题解:好心人帮我看看为什么只有50%通过率
P1051
回复 1
|
赞 0
|
浏览 190
#include<stdio.h> struct node{ int year,month,day; }p; int m[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}; int main(){ int num=0,i; scanf("%d %d %d",&p.year,&p.month,&p.day); } &n...
1
2
3
4
题目
日期计算
题解数量
33
发布题解
热门题解
1
Brief
2
预处理。定义一个二维数组来记录每个月的天数
3
日期计算 题解:C++
4
python求解
5
日期计算 题解:自用笔记
6
又一道模板题(附同题型2道)
7
1051(题目关键在于情况的分类)
8
C语言
9
日期计算 题解:
10
1051日期计算