Information
- ID
- 36
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 7
- Tags
- # Submissions
- 2036
- Accepted
- 400
- Uploaded By
# π的精度要求很高,记不到的话可以用求π的公式
#include <stdio.h>
#include <math.h>
#define PI 3.14159265358979323
int main()
{
int r;
double s;
scanf("%d",&r);
s = pow(r,2)*PI;
printf("%.7lf",s);
return 0;
}
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.