题目描述
现在有 tt 毫升肥宅快乐水,要均分给 nn 名同学。每名同学需要 22 个杯子。现在想知道每名同学可以获得多少毫升饮料(严格精确到小数点后 33 位),以及一共需要多少个杯子。
输入格式
输入一个实数 tt 和一个正整数 nn,使用空格隔开。
输出格式
输出两行。
第一行输出一个三位小数,表示可以获得多少毫升饮料。第二行输出一个正整数,表示一共需要多少个杯子。
输入输出样例
输入 #1
500.0 3
输出 #1
166.667 6
#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
float t;
int n;
cin >> t >> n;
printf("%.3f\n", t / n);
printf("%d\n", 2 * n);
return 0;
}