Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
103560 | 李朋秦 | 06小数除法 | C++ | Accepted | 1 MS | 272 KB | 233 | 2024-12-29 12:23:43 |
#include<iostream> #include<cstdio> #include<iomanip> #include<cmath> using namespace std; int main(){ double a,b,c; cin>>a>>b; c=a-(int)(a/b)*b; cout<<fixed<<setprecision(2)<<c<<endl; return 0; }