#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main() {
// your code goes here
int n, x, y, z, r, a, b, c, d;
cin>>n;
for(int i=0; i<n; i++){
cin>>x>>y>>z>>r>>a>>b>>c>>d;
cout<<setprecision(12)<<M_PI*r*r<<endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CiNpbmNsdWRlIDxpb21hbmlwPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgkvLyB5b3VyIGNvZGUgZ29lcyBoZXJlCglpbnQgbiwgeCwgeSwgeiwgciwgYSwgYiwgYywgZDsKCWNpbj4+bjsKCWZvcihpbnQgaT0wOyBpPG47IGkrKyl7CgkJCWNpbj4+eD4+eT4+ej4+cj4+YT4+Yj4+Yz4+ZDsKCQkJY291dDw8c2V0cHJlY2lzaW9uKDEyKTw8TV9QSSpyKnI8PGVuZGw7Cgl9CglyZXR1cm4gMDsKfQ==