시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 36 14 11 50.000%

문제

상근이는 지름이 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
W3sicHJvYmxlbV9pZCI6IjE4NzYiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWQyOTVcdWFlMzBcdWIyOTQgXHViY2ZjXHViOWMxXHVhY2Y1IiwiZGVzY3JpcHRpb24iOiI8cD5cdWMwYzFcdWFkZmNcdWM3NzRcdWIyOTQgXHVjOWMwXHViOTg0XHVjNzc0IDIwY21cdWM3NzggXHViY2ZjXHViOWMxXHVhY2Y1XHVjNzQ0IFx1ZDNlZFx1Yzc3NCAxMDVjbVx1Yzc3OCBcdWJjZmNcdWI5YzEgXHViODA4XHVjNzc4XHVjNWQwIFx1YWMwMVx1YjNjNCBYXHViM2M0XHViODVjIFx1YjgwOFx1Yzc3OFx1Yzc1OCBcdWM5MTFcdWMyZWNcdWM1ZDBcdWMxMWMgXHViMzU4XHVjODRjXHViMmU0LiAoXHVjNTQ0XHViNzk4IFx1YWRmOFx1YjliY1x1Yzc0NCBcdWNjMzhcdWFjZTApPFwvcD5cclxuXHJcbjxwPjxpbWcgYWx0PVwiXCIgc3J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7PTgwKSwgc2VwYXJhdGVkIGJ5IHNwYWNlLjxcL3A+XHJcblxyXG48cD4mbmJzcDs8XC9wPlxyXG4iLCJvdXRwdXQiOiI8cD5Gb3IgZWFjaCB0ZXN0IGNhc2UgdGhlcmUgd2lsbCBiZSBvbmUgbGluZSBvZiBvdXRwdXQuIFByaW50IGVpdGhlciAmcXVvdDt5ZXMmcXVvdDsgaWYgdGhlIGJvd2xpbmcgYmFsbCBoaXRzIHRoZSBwaW4uIE90aGVyd2lzZSBwcmludCAmcXVvdDtubyZxdW90Oy48XC9wPlxyXG5cclxuPHA+Jm5ic3A7PFwvcD5cclxuIiwiaGludCI6IiIsIm9yaWdpbmFsIjoiMSIsImh0bWxfdGl0bGUiOiIwIiwicHJvYmxlbV9sYW5nX2NvZGUiOiJcdWM2MDFcdWM1YjQifV0=

출처

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

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