Links: https://ac.nowcoder.com/acm/problem/21992
Source: Cattle-off network
Time limit: C / C ++ 1 second, 2 seconds languages other
space restrictions: C / C ++ 32768K, other languages 65536k
64bit the IO the Format: LLD%
space restrictions: C / C ++ 32768K, other languages 65536k
64bit the IO the Format: LLD%
Title Description
Input two integers a, b, the output value of a divided by b, three decimal places
Enter a description:
Input two integers in the range int
Output Description:
The output of a floating point number, rounded to three decimal places
Example 1
5 2
Export
2.500
Entry
#include<iostream> using namespace std; int main() { int a,b; cin>>a>>b; float ans = 1.0 * a / b; printf("%.3f",ans); return 0; }