# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
3812 | joonas | Jogging (kriii1_J) | C++98 | 1000 ms | 2004 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <stdio.h>
#include <cmath>
int Nx[100500], Ny[100500], M;
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);
double rad=0.0;
for(j=0; j < n; ++j){
if( Nx[j] > M ){
double dw = Nx[j]-M, dh = Ny[j];
double ds = sqrt(pow(dw,2)+pow(dh,2));
double _r = asin(dh/ds);
if( _r > rad ) rad = _r;
}
}
printf("%.7f\n", rad);
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |