
长安大学ACM
junjun的blog
这个作者很懒,什么都没留下…
展开
-
A - 只是试试for循环
HDU 2091把一个字符三角形掏空,就能节省材料成本,减轻重量,但关键是为了追求另一种视觉效果。在设计的过程中,需要给出各种花纹的材料和大小尺寸的三角形样板,通过电脑临时做出来,以便看看效果。 Input每行包含一个字符和一个整数n(0<n<41),不同的字符表示不同的花纹,整数n表示等腰三角形的高。显然其底边长为2n-1。如果遇到@字符,则表示所做出来的样板三角形已经够...原创 2018-10-27 16:58:03 · 161 阅读 · 0 评论 -
C - 锻炼英语-贪心
You have r red, g green and b blue balloons. To decorate a single table for the banquet you need exactly three balloons. Three balloons attached to some table shouldn't have the same color. What maxim...原创 2018-10-27 17:54:51 · 308 阅读 · 0 评论 -
Monthly Expense
Farmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculated and recorded the exact amount of money (1 ≤ moneyi ≤ 10,000) that h...原创 2018-11-04 20:49:09 · 118 阅读 · 0 评论 -
HDU 杨辉三角
题目描述还记得中学时候学过的杨辉三角吗?具体的定义这里不再描述,你可以参考以下的图形: 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1输入输入数据包含多个测试实例,每个测试实例的输入只包含一个正整数n(1<=n<=30),表示将要输出的杨辉三角的层数输出对应于每一个输入,请输出相应层数的杨辉三角,每一层的整数之间用...原创 2018-11-04 21:07:53 · 197 阅读 · 0 评论