Logo
(追記) (追記ここまで)

7464번 - Fool’s Day 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 64 MB34000.000%

문제

In a rectangular 2D world everything is rectangular. Rectangular people live in rectangular houses, drive rectangular cars and work in rectangular offices. The only day of a year when everything is not rectangular is April 1st — the Fool’s Day. On that day people send each other postcards with jokes and these postcards have a form of parallelograms. To support this tradition the rectangular world industry produces different parallelogram postcards and envelopes.

Mr. Rect Squarowski wants to start a new business. He would like to provide a web service that determines whether a Fool’s Day postcard fits Fool’s Day envelope. Help Mr. Squarowski to earn his next billion of money rects.

입력

The first line of the input file contains integer number n (1 ≤ n ≤ 1 000) — the number of test cases. Each test case consists of six integer numbers. The first three numbers describe an envelope, the last three — a postcard.

Three numbers describing each parallelogram are the lengths of its adjacent sides and its diagonal respectively. Specified lengths will not be greater than 1 000.

It is guaranteed that the corresponding parallelogram exists and it is not degenerate.

출력

For each test case output a single line. Print “Yes” if a postcard fits an envelope or “No” if it doesn’t.

제한

예제 입력 1

3
3 4 6 4 3 6
6 6 7 5 5 8
11 11 11 10 10 2

예제 출력 1

Yes
Yes
No

힌트

출처

ICPC > Regionals > Northern Eurasia > Northwestern Russia Regional Contest > NEERC Northern Subregional 2004 F번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /