#include <iostream> #include <string> #include <cstdio> using namespace std; int main() { double r; scanf("%lf",&r); double a=3.14159*r*r;//都用double就好了,不会精度不够 printf("A=%.4lf",a); return 0; }