Problem 2715 --Computation - A / B Problem

2715: Computation - A / B Problem

"
Time Limit $1$ 秒/Second(s) Memory Limit $512$ 兆字节/Megabyte(s)
提交总数 $604$ 正确数量 $328$
裁判形式 特别裁判/Special Judge 我的状态 尚未尝试
难度 分类标签 STL

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)

Two integers a and b are given in a line.

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.

浮点数最好使用double 而不是float, 小数点后至少保留5位以上

3 2
1 1 1.50000
1 ≤ a, b ≤ 10^9

推荐代码 查看2715 所有题解 上传题解视频得图灵币

本题记录 用 户(点击查看用户) 运行号(点击购买题解) 时 间
算法最快[$0 $ms] 。。。。 796365 2021-12-12 15:52:52
内存最少[$0 $KB] 你伦敦的表哥 523027 2019-11-13 10:58:30
第一AC 刘欢@计算机科学与技术161 314199 2018-11-15 18:48:54
第一挑战 我怎么这么帅 302897 2018-11-02 19:02:22

赛题来源/所属竞赛 会津大学《C++ Programming I》 C++程序设计(入门)

竞赛编号 竞赛名称 竞赛时间 访问比赛
1660 2021-2022-1学期《C语言程序设计》:循环结构I【21计算机】 2021-10-25 00:00:00 请登录
1564 2020-2021-1学期《C语言程序设计》:循环结构I【20计算机12345】 2020-10-23 10:00:00 请登录
1391 2019-2020-1学期《C语言程序设计I》:循环结构I【19计算机12班】 2019-10-23 10:00:00 请登录