| //https://www.acmicpc.net/problem/3034 #include <iostream> |
| #include <math.h> |
| using namespace std; |
| int main() |
| { |
| int n, w, h; |
| cin >> n >> w >> h; |
| for(int i=0; i<n; i++) |
| { |
| int x; |
| cin >> x; |
| if(x*x<=(w*w+h*h)) |
| cout << "DA"<<endl; |
| else cout << "NE" << endl; |
| } |
| } |
'알고리즘 문제 풀이 > 1DP_과제(~180615)' 카테고리의 다른 글
| 180122_1977_완전제곱수 (0) | 2018.01.22 |
|---|---|
| 180122_9507_Generations of Tribbles (0) | 2018.01.22 |
| 180119_1159_농구경기 (0) | 2018.01.19 |
| 180106_3143_가장 빠른 문자열 타이핑 (0) | 2018.01.06 |
| 180106_2914_저작권 (0) | 2018.01.06 |