Problem:
A/B Problem

Write a program which reads two integers a and b, and calculates the following values:

a ÷ b: d (in integer)

remainder of a ÷ b: r (in integer)

a ÷ b: f (in real number)

Input

Two integers a and b are given in a line.

Output

Print d, r and f separated by a space in a line. For f, the output should not contain an absolute error greater than 10-5.

Constraints

1 ≤ a, b ≤ 109

Sample Input 1

3 2

Sample Output 1

1 1 1.50000

Solution in C# (judge verdict: Wrong Answer)

using System;    
     
class sample12{    
    static void Main(string[] args){
        int result = 0 ;
        int remainder = 0;
        float fresult = 0;
        int[] int_number = new int[2];
        string[] str_number = Console.ReadLine().Split(' '); 
        
        //入力された数字をintへ変換
        for(int i = 0 ; i < 2; i++){
                    int_number[i] = int.Parse(str_number[i]);
        }
        
        //バリデーション
 
        if(int_number[0] < 1 || int_number[1] < 1 || int_number[0] > 1000000000 || int_number[1] > 1000000000 ){
            
                    Console.WriteLine("入力した値は範囲外です。");
                    Environment.Exit(0);
        } 
                
        //約数ならカウントする
        result = int_number[0] / int_number[1];
        remainder = int_number[0] %int_number[1];
        fresult = result;
        
        
        Console.WriteLine("{0} {1} {2}",result,remainder,fresult);
    }    
}