练习
文章平均质量分 53
TLChao
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
水仙花数
水仙花数 时间限制:1000 ms | 内存限制:65535 KB 难度:0 描述请判断一个数是不是水仙花数。 其中水仙花数定义各个位数立方和等于它本身的三位数。 输入有多组测试数据,每组测试数据以包含一个整数n(100 输入0表示程序输入结束。 输出如果n是水仙花数就输出Yes 否则输出No 样例输入 153 154 0 样例输出 Ye原创 2017-01-25 13:15:01 · 328 阅读 · 0 评论 -
蛇形填数
蛇形填数 时间限制:3000 ms | 内存限制:65535 KB 难度:3 描述在n*n方陈里填入1,2,...,n*n,要求填成蛇形。例如n=4时方陈为: 10 11 12 1 9 16 13 2 8 15 14 3 7 6 5 4 输入直接输入方陈的维数,即n的值。(n 输出输出结果是蛇形方陈。 样例输入 3 样例输出 7 8 1原创 2017-01-24 17:44:32 · 289 阅读 · 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 · 361 阅读 · 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 · 393 阅读 · 0 评论
分享