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