练习--牛客网
jackson_j
求大佬
展开
-
牛客网--日期差值
题目描述有两个日期,求两个日期之间的天数,如果两个日期是连续的我们规定他们之间的天数为两天输入描述:有多组数据,每组数据有两行,分别表示两个日期,形式为YYYYMMDD输出描述:每组数据输出一行,即日期差值示例1输入2011041220110422输出11#include <stdio.h>#include <stdlib.h>int daytab[2][13] = {{ 0,31,28,31,30,31.原创 2021-03-06 14:16:08 · 87 阅读 · 0 评论 -
牛客网--日期累加
题目描述设计一个程序能计算一个日期加上若干天后是什么日期。输入描述:输入第一行表示样例个数m,接下来m行每行四个整数分别表示年月日和累加的天数。输出描述:输出m行,每行按yyyy-mm-dd的个数输出。示例1输入复制12008 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 · 91 阅读 · 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 · 99 阅读 · 0 评论