![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
练习
文章平均质量分 66
TLChao
这个作者很懒,什么都没留下…
展开
-
水仙花数
水仙花数时间限制:1000 ms | 内存限制:65535 KB难度:0描述请判断一个数是不是水仙花数。其中水仙花数定义各个位数立方和等于它本身的三位数。输入有多组测试数据,每组测试数据以包含一个整数n(100输入0表示程序输入结束。输出如果n是水仙花数就输出Yes否则输出No样例输入1531540样例输出Ye原创 2017-01-25 13:15:01 · 279 阅读 · 0 评论 -
蛇形填数
蛇形填数时间限制:3000 ms | 内存限制:65535 KB难度:3描述在n*n方陈里填入1,2,...,n*n,要求填成蛇形。例如n=4时方陈为:10 11 12 19 16 13 28 15 14 37 6 5 4输入直接输入方陈的维数,即n的值。(n输出输出结果是蛇形方陈。样例输入3样例输出7 8 1原创 2017-01-24 17:44:32 · 246 阅读 · 0 评论 -
Reverse String ----LeetCode
Write a function that takes a string as input and returns the string reversed.Example:Given s = "hello", return "olleh".C++:#include #include using namespace std;int原创 2016-11-23 21:51:25 · 306 阅读 · 0 评论 -
Fizz Buzz ----LeetCode
Write a program that outputs the string representation of numbers from 1 to n.But for multiples of three it should output “Fizz” instead of the number and for the multiples of five output “Buzz”.原创 2016-11-23 17:59:56 · 324 阅读 · 0 评论