#include <stdio.h>
#include <cmath>
int Nx[10010];
int Ny[10010];
int M[10010];
int main(){
int i,j, n, m;
scanf("%d %d ", &n, &m);
for(i=0; i < n; ++i) scanf("%d %d ", &Nx[i], &Ny[i]);
for(i=0; i < m; ++i) scanf("%d", &M[i]);
for(i=0; i < m; ++i){
double rad=0.0;
for(j=0; j < n; ++j){
if( Nx[j] > M[i] ){
double dw = Nx[j]-M[i], dh = Ny[j];
double ds = sqrt((dw*dw)+(dh*dh));
double _r = asin(dh/ds);
if( _r > rad ) rad = _r;
}
}
printf("%.7f\n", rad);
}
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
4 ms |
1332 KB |
futex (syscall #202) was called by the program (disallowed syscall) |
2 |
Halted |
0 ms |
0 KB |
- |