• Source
    1. /**
    2. ********************************************
    3. This code only for beginners. Please, Don't Copy Past
    4. ********************************************
    5. **/
    6. #include<stdio.h>
    7. #include<math.h>
    8. #include<string.h>
    9. #include<stdlib.h>
    10.  
    11. int main()
    12. {
    13. int Car, NW, NS;
    14. while(scanf("%d %d %d", &NW, &Car, &NS) == 3){
    15. int T = NW + Car;
    16. printf("%.5lf\n", (Car * (T - 1)/(double)(T * (T - NS - 1))));
    17. }
    18. return 0;
    19. }
    20.