NOJ/92/main.c
Saturneric 52668c4122 Add.
2020-09-01 00:46:43 +08:00

16 lines
240 B
C

#include <stdio.h>
#include <math.h>
int main(void){
int i, n;
scanf("%d",&n);
for(i = 0; i < n; i++){
double x, y, s;
scanf("%lf %lf",&x,&y);
s = 3.1415926 * (x*x + y*y) / 100;
printf("%d %d\n",i+1,(int)s+1);
}
return 0;
}