1 solutions
-
0
#include<stdio.h> int main(){ double a,b,k; scanf("%lf %lf %lf",&a,&b,&k); double sum=500;//直接放引燃 b*=1.2;//额外伤害加20% sum=sum+a+b*0.9;//用1技能,100% 90% b*=1.2;//额外伤害加20% sum=sum+a;//2技能第一刀 b*=1.2;//额外伤害加20% sum=sum+a+2*b;//2技能第二刀 b*=1.2;//额外伤害加20% int g=4; while(g--){ sum=sum+a+5*b;//3技能每一刀 b*=1.2;//额外伤害加20% } if(sum>=k){ printf("You have slain an enemy"); } else{ printf("You have been slain"); } return 0; }
Information
- ID
- 6944
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 9
- Tags
- # Submissions
- 814
- Accepted
- 67
- Uploaded By