![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
图形输出
小魚兒.
天下皆白,唯我独黑!
展开
-
3.3 PAT A1031 Hello World for U (20分)(图形输出)
1031 Hello World for U (20分) 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: h d e l l r lowo Tha...原创 2020-03-01 15:08:50 · 93 阅读 · 0 评论 -
3.3 PAT B1027 打印沙漏 (20分)(图形输出)
1027 打印沙漏 (20分) 本题要求你写个程序把给定的符号打印成沙漏的形状。例如给定17个“*”,要求按下列格式打印 ***** *** * *** ***** 所谓“沙漏形状”,是指每行输出奇数个符号;各行符号中心对齐;相邻两行符号数差2;符号数先从大到小顺序递减到1,再从小到大顺序递增;首尾符号数相等。 给定任意N个符号,不一定能正好组成一个沙漏。要求打印出的沙漏...原创 2020-03-01 15:05:55 · 198 阅读 · 0 评论