[bzoj 1024][SCOI 2009]생일 축하합니다[폭력]
2546 단어 [폭력]
/* --------------
user Vanisher
problem bzoj-1024
----------------*/
# include
# define ll long long
# define inf 0x3f3f3f3f
using namespace std;
int read(){
int tmp=0, fh=1; char ch=getchar();
while (ch<'0'||ch>'9'){if (ch=='-') fh=-1; ch=getchar();}
while (ch>='0'&&ch<='9'){tmp=tmp*10+ch-'0'; ch=getchar();}
return tmp*fh;
}
double solve(double x, double y, int k){
if (xif (k==1) return x/y;
double ans=inf;
for (int i=1; ireturn ans;
}
int main(){
int x=read(), y=read(), n=read();
printf("%.6lf
",solve(x,y,n));
return 0;
}