Asa's Website

A - A / B Problem

cpaojitp1

最終更新日

Table of Contents

Loading...

問題

https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/4/ITP1_4_A

問題文

aabb が与えられるので、以下の値を計算してね。

制約

サンプル

I/O 1

3 2
1 1 1.5

考察

やるだけ。

コード

https://onlinejudge.u-aizu.ac.jp/status/users/a01sa01to/submissions/1/ITP1_4_A/judge/6312154/C++17

int main() { int a, b; cin >> a >> b; printf("%d %d %.10lf\n", a / b, a % b, (double) a / b); return 0; }