日期换算 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y,sum=0,i,a[12]={31,28,31,30,31,30,31,31,30,31,30,…… 题解列表 2019年03月08日 1 点赞 0 评论 514 浏览 评分:0.0
日期换算-题解(C语言代码) 摘要: #include "stdio.h" int main() { int a,b,i,sum=0; int c[12]={31,28,31,30,31,30,31,31,30,31…… 题解列表 2020年02月17日 0 点赞 0 评论 364 浏览 评分:0.0
日期换算-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int a[12]={31,28,31,30,31,30,31,31,30,31,30,31}; int…… 题解列表 2020年08月31日 0 点赞 0 评论 259 浏览 评分:0.0
日期换算-题解(C语言代码) 摘要:解题思路:注意事项注意循环i从0开始,数组第一个是0;参考代码:#include<stdio.h>int main(){ int a[12]={31,28,31,30,31,30,31,31,30,3…… 题解列表 2020年12月03日 0 点赞 0 评论 443 浏览 评分:0.0
编写题解 1997: 日期换算,两种方法都有 摘要:解题思路:注意事项:参考代码:若是选择年份判断是闰年还是平年,if((y%4==0&&y%100!=0)||(y%400==0))a[1]=29;#include<stdio.h>int main()…… 题解列表 2022年07月22日 0 点赞 0 评论 218 浏览 评分:0.0
。。依旧简单粗暴。。日期换算 (C语言代码) 摘要:解题思路:因为是固定的2019年,所以每一月都有固定的天数,把x月前面的天数+y日的天数==总天数。 也可以用switch写。注意事项:2019年是平年,…… 题解列表 2019年02月08日 4 点赞 0 评论 1008 浏览 评分:3.0
日期换算 (C语言代码)用数组,超简单 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int x, y, i; int date = 0; int month[13] = …… 题解列表 2019年02月16日 1 点赞 0 评论 630 浏览 评分:6.0
确定不来看看? 摘要:解题思路:把当前月之前天数加起来 再加上当前日期注意事项:日期需要正确输入参考代码:#include <stdio.h>int main(){ int x,y,s=0; scanf("%d%d",&x…… 题解列表 2022年05月10日 0 点赞 1 评论 113 浏览 评分:6.0
日期换算-题解(C语言代码) 摘要:解题思路: 这道题蛮简单的,废话不多说,看代码。 参考代码: ```c #include int main() { int a[12]={31,28,31,30,31,30,31,…… 题解列表 2019年12月19日 0 点赞 0 评论 881 浏览 评分:8.0
日期换算-题解(C语言代码)菜鸟暴力 摘要: #include int main() { int month; int date; scanf("%d%d",&m…… 题解列表 2020年04月17日 0 点赞 0 评论 573 浏览 评分:8.0