会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
creativity
To find a kindred spirit is not easy...
博客园
首页
新随笔
管理
hdu 2060 Snooker 考英语
Code
/**/
/*
2008-12-22 16:27:53 Accepted 2060 0MS 0K 310 B
无语,考英语
WA了一次,题目没看清
*/
#include
<
iostream
>
int
main()
{
int
n;
int
ball,Ps,Os;
float
score;
scanf(
"
%d
"
,
&
n);
while
(n
--
)
{
scanf(
"
%d%d%d
"
,
&
ball,
&
Ps,
&
Os);
if
(ball
<=
6
)
score
=
(
15
-
ball)
*
ball
*
1.0
/
2
;
else
score
=
27
+
(ball
-
6
)
*
8
;
if
(score
+
Ps
>=
Os)
puts(
"
Yes
"
);
else
puts(
"
No
"
);
}
return
0
;
}
posted @
2008-12-22 16:32
sunjian
阅读(
194
) 评论(
0
)
收藏
举报
刷新页面
返回顶部
公告