mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-09 23:38:47 +00:00
B2026 计算浮点数相除的余
R71617056
This commit is contained in:
parent
8c58315571
commit
b069920771
15
Luogu/B2026/B2026.cpp
Normal file
15
Luogu/B2026/B2026.cpp
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user