0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-24 18:11:59 +00:00

B2026 计算浮点数相除的余

R71617056
This commit is contained in:
Baoshuo Ren 2022-03-17 19:52:40 +08:00
parent 8c58315571
commit b069920771
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

15
Luogu/B2026/B2026.cpp Normal file
View File

@ -0,0 +1,15 @@
#include <cmath>
#include <iostream>
using std::cin;
using std::cout;
const char endl = '\n';
double a, b;
int main() {
std::ios::sync_with_stdio(false);
cin >> a >> b;
cout << fmod(a, b) << endl;
return 0;
}