Submission #3812

#TimeUsernameProblemLanguageResultExecution timeMemory
3812joonasJogging (kriii1_J)C++98
0 / 1
1000 ms2004 KiB
#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 timeMemoryGrader output
Fetching results...