提交时间:2026-06-07 18:55:05
运行 ID: 443999
#include <iostream> #include <cmath> // 用于 floor 函数 #include <iomanip> // 用于保留小数 using namespace std; int main() { double a, b, r; int k; cin >> a >> b; k = floor(a / b); r = a - k * b; cout << fixed << setprecision(4) << r << endl; return 0; }