hdu 4950 Monster
2014-08-16 14:35
288 查看
回顾一下第八场的多校,先发两道水题
//0MS 320K #include <cstdio> #include <iostream> #include <cstring> #include <algorithm> using namespace std; typedef long long LL; int main(){ LL h, a, b, k; int kase = 1; while(~scanf("%I64d%I64d%I64d%I64d", &h, &a, &b, &k)){ if(h==0 && a==0 && b==0 && k==0) break; printf("Case #%d: ", kase++); if(h - a < 1){ //一击秒杀 printf("YES\n"); continue; } else if(a*k - b*(k-1) >= h){ //在第一轮的第k回合攻击后杀死 printf("YES\n"); continue; } else if(a*k - b*(k+1) > 0){ //第一轮的第k+1回合后野怪掉血 printf("YES\n"); continue; } else printf("NO\n"); } return 0; }
相关文章推荐
- HDU 4950 Monster (水题)
- HDU - 4950 Monster
- hdu 4950 Monster--2014 Multi-University Training Contest 8
- HDU 4950 Monster(公式)
- hdu 4950 Monster (数学思维)
- HDU 4950 Monster(公式)
- hdu 4950 Monster
- HDU 4950 Monster
- hdu 4950 Monster(数学题,多校8)
- HDU 4950 Monster
- HDU 4950 Monster
- hdu 4950 Monster 多校八 模拟
- HDU 4950 Monster
- hdu 4950 Monster(数学题,多校8)
- HDU 4950 Monster 乱搞
- HDU-2616-Kill the monster
- HDU - 4950
- (hdu step 4.2.7)Kill the monster(有n个技能,求杀死怪物的技能的最小使用次数。在使用某一个技能的时候,如果怪物的能量值hp<=m,这时候造成的伤害值是原来的两倍)
- hdu 2616 Kill the monster(暴搜)
- hdu 3979 Monster【贪心】