NOJ/92/main.c

16 lines
240 B
C
Raw Normal View History

2020-08-31 16:46:43 +00:00
#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;
}