[BOJ 1008] A/B

View as PDF

Submit solution

Points: 1
Time limit: 2.0s
Memory limit: 128M

Problem types
Allowed languages
Assembly, Awk, C, C++, Java, Pascal, Perl, Python, Sed, Text

두 정수 A와 B를 입력받은 다음, A/B를 출력하는 프로그램을 작성하시오.

입력 형식

첫째 줄에 A와 B가 주어진다. (0 < A, B < 10)

출력 형식

첫째 줄에 A/B를 출력한다. 실제 정답과 출력값의 절대오차 또는 상대오차가 10-9 이하이면 정답이다.

예제 입력 1

1 3

예제 출력 1

0.33333333333333333333333333333333

예제 입력 2

4 5

예제 출력 2

0.8

Comments

There are no comments at the moment.