6 solutions
-
0
#include<stdio.h> long long w[4]; int main(){ //int Xa,Xb,Ya,Yb,T;//w 1,2,3,4 int T; scanf("%d",&T); while(T>0){ for(int i=1;i<=4;i++){ scanf("%lld ",&w[i]);//输入 } long long Q;//琪亚娜打的伤害Q Q=(w[4]/w[1]+1)*w[2];//n到没砍死琪亚娜先手所以多砍一下 if(w[4]%w[1]==0) Q-=w[2];//芽衣n刀刚好砍死琪亚娜,所以把琪亚娜多砍的 //一下伤害减去。 if(Q>=w[3]){printf("YES\n");} else printf("NO\n"); T--; } }
Information
- ID
- 265
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 8
- Tags
- # Submissions
- 1125
- Accepted
- 136
- Uploaded By