mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
13 lines
193 B
C++
13 lines
193 B
C++
#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;
|
|
}
|