OJ-Problems-Source/HDOJ/4015_autoAC.cpp

16 lines
263 B
C++
Raw Normal View History

#include<stdio.h>
int main()
{
int T;
int m,k;
int iCase=0;
scanf("%d",&T);
while(T--)
{
iCase++;
scanf("%d%d",&m,&k);
printf("Case #%d: %.8lf\n",iCase,(double)1/(k+m*k+1));
}
return 0;
}