UVa
文章平均质量分 75
Tristesse_wjw
这个作者很懒,什么都没留下…
展开
-
蛇形填数
在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≤8。 解题思路:开一个二维数组,清零后用于保存方阵里的数据,从第1行第n个开始,先往下,原创 2017-04-08 18:16:42 · 263 阅读 · 0 评论 -
TEX Quotes-UVa 272
TEX Quotes Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 9046 Accepted: 4743 Description TEX is a typesetting language developed by Donald Knuth. I原创 2017-04-09 12:38:18 · 214 阅读 · 0 评论 -
UVa 455 - Periodic Strings
A character string is said to have period k if it can be formed by concatenating one or more repetitions of another string of length k. For example, the string "abcabcabcabc" has period 3, since it原创 2017-04-11 12:14:32 · 453 阅读 · 0 评论 -
Uva227-Puzzle
Puzzle Time limit: 3.000 seconds A children's puzzle that was popular 30 years ago consisted of a 5x5 frame which contained 24 small squares of equal size. A unique letter原创 2017-04-22 16:10:12 · 455 阅读 · 0 评论 -
UVa 725 - Division
Write a program that finds and displays all pairs of 5-digit numbers that between them use the digits 0 through 9 once each, such that the first number divided by the second is equal to an integer N,转载 2017-04-24 10:12:07 · 251 阅读 · 0 评论