Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
96278 | 顾文博 | 06小数除法 | C++ | Accepted | 1 MS | 272 KB | 351 | 2024-11-03 15:28:41 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ double a,b,c; cin>>a>>b; c=a-(int) (a/b)*b; printf("%.2lf",c); return 0; }