题目描述
神庙逃亡
解题思路
参考代码
#include <stdio.h>
int main()
{int n;scanf("%d",&n);while (n--){int s,h,vx,vy,t;scanf("%d %d %d %d",&s,&h,&vx,&vy);t = s/vx;printf("%s\n",(vy*t - 5*t*t) >= h?"good done!":"poor Merida!");}return 0;
}
神庙逃亡
#include <stdio.h>
int main()
{int n;scanf("%d",&n);while (n--){int s,h,vx,vy,t;scanf("%d %d %d %d",&s,&h,&vx,&vy);t = s/vx;printf("%s\n",(vy*t - 5*t*t) >= h?"good done!":"poor Merida!");}return 0;
}