Create 1875.cpp

pull/45/head
Kirigaya Kazuto 2016-10-24 17:35:26 +08:00 committed by GitHub
parent 0b84d23b92
commit dbc60c5dfc
1 changed files with 12 additions and 0 deletions

12
QUSTOJ/1875.cpp Normal file
View File

@ -0,0 +1,12 @@
#include <iostream>
#include <string>
using namespace std;
int main()
{
int h,r;
const double pi=3.14;
cin>>h>>r;
cout<<pi*r*r*h<<" "<<pi*r*r*2+2*pi*r*h<<endl;
return 0;
}