mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
120ba634b8
3300-3399
32 lines
582 B
C++
32 lines
582 B
C++
#include<iostream>
|
|
#include<cstdio>
|
|
#include<cstring>
|
|
#include<string>
|
|
#include<algorithm>
|
|
#include<sstream>
|
|
#include<map>
|
|
#include<set>
|
|
#include<cmath>
|
|
#include<iomanip>
|
|
#include<cstdlib>
|
|
#include<cctype>
|
|
#include<assert.h>
|
|
#include<stack>
|
|
#include<queue>
|
|
#include<vector>
|
|
#include<list>
|
|
using namespace std;
|
|
double pi=acos(-1);
|
|
double w,r,sita;
|
|
int main() {
|
|
while(~scanf("%lf%lf%lf",&r,&w,&sita))
|
|
{
|
|
sita/=180.;
|
|
sita*=pi;
|
|
double umc=cos(sita/2.)-1.;
|
|
r-=w/umc;
|
|
printf("%.3f\n",r);
|
|
}
|
|
return 0;
|
|
}
|