jw910731

熾天使的裁罰鎖鍊—優雅解答XD

Jul 2nd, 2020
1,277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <cstdio>
  2. #include <algorithm>
  3. using namespace std;
  4. /************************/
  5.  
  6. int main(){
  7.     int T;
  8.     scanf("%d", &T);
  9.     while(T--){
  10.         long long unsigned a, b, c;
  11.         scanf("%llu%llu%llu", &a, &b, &c);
  12.  
  13.         if(a > c || b > c || max(a, b)>=c-min(a, b)){
  14.             printf("yes\n");
  15.         }
  16.         else{
  17.             printf("no\n");
  18.         }
  19.     }
  20.  
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment