标签:des style blog http color io os ar for
Just a Joke
Description
Input
Output
Sample Input
Sample Output
1 #include <iostream> 2 #include <cstdio> 3 #include <cstdlib> 4 #include <cstring> 5 #include <cmath> 6 #include <algorithm> 7 #include <set> 8 #include <map> 9 #include <queue> 10 #include <string> 11 #include <vector> 12 #define inf 0x3fffffff 13 #define eps 1e-10 14 15 using namespace std; 16 17 long long v1, v2, r, d; 18 double x, y; 19 20 int main() 21 { 22 //freopen ("test.txt", "r", stdin); 23 int T; 24 scanf ("%d", &T); 25 for (int times = 0; times < T; ++times) 26 { 27 scanf ("%I64d%I64d%I64d%I64d", &v1, &v2, &r, &d); 28 x = (v1+0.0)/v2; 29 y = (d+0.0)/r; 30 y = x * y; 31 x = asin(x); 32 if (x > y) 33 printf ("Why give up treatment\n"); 34 else 35 printf ("Wake up to code\n"); 36 } 37 return 0; 38 }
ACM学习历程—HDU4969 Just a Joke(物理题)
标签:des style blog http color io os ar for
原文地址:http://www.cnblogs.com/andyqsmart/p/4014534.html