- 博客(5)
- 收藏
- 关注
原创 UVA 270 Lining up
解题思路:暴力枚举。每次先枚举出2个点。作为直线。再去枚举第三个点看在不在直线上。 利用直线的斜率计算公式,假设三个点,a(x1,y1) , b(x2,y2) , c(x3,y3) ,当(y2-y1)/(x2-x1)=(y3-y2)/(x3-x1) 时,说明共线。注意:本题输入有坑,未指明什么时候输入结束,因此不能用普通的scanf输入,应用sscanf, 从一个字符串中读进与指定格式相符的数
2016-07-29 09:59:26 296
原创 HDU 1789 Doing Homework again
Descriptionzichen has just come back school from the 30th ACM/ ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework. If zichen hands in the homew
2016-07-22 11:04:45 178
翻译 HDU 2091 空心三角形
链接:http://acm.hdu.edu.cn/showproblem.php?pid=2091Problem Description把一个字符三角形掏空,就能节省材料成本,减轻重量,但关键是为了追求另一种视觉效果。在设计的过程中,需要给出各种花纹的材料和大小尺寸的三角形样板,通过电脑临时做出来,以便看看效果。 Input每行包含一个字
2016-07-21 20:40:54 244
原创 HDU 1062 TEXT Reverse(文本反转)
Text ReverseTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 1062DescriptionIgnatius likes to write words in reverse way. Give
2016-07-15 20:54:22 356
原创 HDU 1020 Encoding
A - EncodingTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit Status Practice HDU 1020DescriptionGiven a string containing only 'A' - 'Z', we cou
2016-07-14 19:38:00 307
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人