练习--牛客网
jackson_j
求大佬
展开
-
牛客网--日期差值
题目描述 有两个日期,求两个日期之间的天数,如果两个日期是连续的我们规定他们之间的天数为两天 输入描述: 有多组数据,每组数据有两行,分别表示两个日期,形式为YYYYMMDD 输出描述: 每组数据输出一行,即日期差值 示例1 输入 20110412 20110422 输出 11 #include <stdio.h> #include <stdlib.h> int daytab[2][13] = { { 0,31,28,31,30,31.原创 2021-03-06 14:16:08 · 118 阅读 · 0 评论 -
牛客网--日期累加
题目描述 设计一个程序能计算一个日期加上若干天后是什么日期。 输入描述: 输入第一行表示样例个数m,接下来m行每行四个整数分别表示年月日和累加的天数。 输出描述: 输出m行,每行按yyyy-mm-dd的个数输出。 示例1 输入 复制 1 2008 2 3 100 输出 复制 2008-05-13 #include <stdio.h> #include <stdlib.h> int daytab[2][13] = { { 0,31,28.原创 2021-03-06 13:21:28 · 101 阅读 · 0 评论 -
牛客网--Hello World For U
题目描述 Given any string of N (>=5) characters, you are asked to form the characters into the shape of U. For example, "helloworld" can be printed as: hd e l l r lowo That is, the characters must be printed in the original order, starting top-down fr...原创 2021-03-05 16:19:02 · 134 阅读 · 0 评论