- 博客(3)
- 收藏
- 关注
原创 poj The Triangle
The Triangle Problem Description 7 3 8 8 1 0 2 7 4 4 4 5 2 6 5 (Figure 1) 图 1 显示了一个数字三角形。编写一个程序,计算从顶部开始并在基座上某处结束的路线上传递的最高数字总和。每个步骤都可以对角向左向下,也可以对角线向下到右侧。 输入 您的程序是从标准输入读取。第一行包含一个整数 N:三角形中的行数。以下 N 行描述三角形的数据。三角形中的行数为 > 1,但 <= 100。三
2021-01-14 21:10:52
124
原创 hdu Financial Management
Problem Description Larry graduated this year and finally has a job. He’s making a lot of money, but somehow never seems to have enough. Larry has decided that he needs to grab hold of his financial portfolio and solve his financing problems. The first ste
2021-01-14 14:39:39
80
1
原创 hdu 汉字统计
Problem Description 统计给定文本文件中汉字的个数。 Input 输入文件首先包含一个整数n,表示测试实例的个数,然后是n段文本。 Output 对于每一段文本,输出其中的汉字的个数,每个测试实例的输出占一行。[Hint:]从汉字机内码的特点考虑~ Sample Input 2 WaHaHa! WaHaHa! 今年过节不说话要说只说普通话WaHaHa! WaHaHa! 马上就要期末考试了Are you ready? Sample Output 14 9 Author lcy Source
2021-01-14 14:30:26
81
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人