시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 17 9 7 77.778%

문제

상근이는 지름이 20cm인 볼링공을 폭이 105cm인 볼링 레인에 각도 X도로 레인의 중심에서 던졌다. (아래 그림을 참고)

레인은 범퍼가 장착되어 있어, 공이 범퍼에 닿으면, 입사각과 같은 각도로 튕기게 된다. 지름이 12cm 핀이 T 미터 떨어진 곳에 놓여져 있다. 상근이가 던진 볼링공이 이 핀을 맞출 수 있는지 없는지를 구하는 프로그램을 작성하시오.

입력

첫째 줄에 테스트 케이스의 개수 N이 주어진다. 다음 N개 줄에는 볼링공과 핀 사이의 거리 T (16.0 ≤ T ≤ 18.0)와 공을 던진 각도 X (중심을 기준으로 계산, 10 ≤ X ≤ 80)가 주어진다. 

출력

각 테스트 케이스마다, 볼링공이 핀을 맞추면 "yes"를, 아니면 "no"를 출력한다.

예제 입력 1

2
18.00 80
16.39 16

예제 출력 1

yes
no

힌트

W3sicHJvYmxlbV9pZCI6IjE4NzYiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWQyOTVcdWFlMzBcdWIyOTQgXHViY2ZjXHViOWMxXHVhY2Y1IiwiZGVzY3JpcHRpb24iOiI8cD5cdWMwYzFcdWFkZmNcdWM3NzRcdWIyOTQgXHVjOWMwXHViOTg0XHVjNzc0IDIwY21cdWM3NzggXHViY2ZjXHViOWMxXHVhY2Y1XHVjNzQ0IFx1ZDNlZFx1Yzc3NCAxMDVjbVx1Yzc3OCBcdWJjZmNcdWI5YzEgXHViODA4XHVjNzc4XHVjNWQwIFx1YWMwMVx1YjNjNCBYXHViM2M0XHViODVjIFx1YjgwOFx1Yzc3OFx1Yzc1OCBcdWM5MTFcdWMyZWNcdWM1ZDBcdWMxMWMgXHViMzU4XHVjODRjXHViMmU0LiAoXHVjNTQ0XHViNzk4IFx1YWRmOFx1YjliY1x1Yzc0NCBcdWNjMzhcdWFjZTApPFwvcD5cclxuXHJcbjxwPjxpbWcgYWx0PVwiXCI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ieSBzcGFjZS48XC9wPlxyXG5cclxuPHA+Jm5ic3A7PFwvcD5cclxuIiwib3V0cHV0IjoiPHA+Rm9yIGVhY2ggdGVzdCBjYXNlIHRoZXJlIHdpbGwgYmUgb25lIGxpbmUgb2Ygb3V0cHV0LiBQcmludCBlaXRoZXIgJnF1b3Q7eWVzJnF1b3Q7IGlmIHRoZSBib3dsaW5nIGJhbGwgaGl0cyB0aGUgcGluLiBPdGhlcndpc2UgcHJpbnQgJnF1b3Q7bm8mcXVvdDsuPFwvcD5cclxuXHJcbjxwPiZuYnNwOzxcL3A+XHJcbiIsImhpbnQiOiIiLCJvcmlnaW5hbCI6IjEiLCJwcm9ibGVtX2xhbmdfY29kZSI6Ilx1YzYwMVx1YzViNCJ9XQ==

출처

ACM-ICPC > Regionals > North America > Rocky Mountain Regional > Alberta Collegiate Programming Contest > ACPC 2012 B번

  • 문제를 번역한 사람: baekjoon
  • 문제의 오타를 찾은 사람: nona1314