mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1875.cpp
This commit is contained in:
parent
0b84d23b92
commit
dbc60c5dfc
12
QUSTOJ/1875.cpp
Normal file
12
QUSTOJ/1875.cpp
Normal 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;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user