'commit'
This commit is contained in:
19
LuoGu/RuMen/P5705.cpp
Normal file
19
LuoGu/RuMen/P5705.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
float a;
|
||||
cin >> a;
|
||||
int b = int(a * 10);
|
||||
bool first = true;
|
||||
while (b) {
|
||||
cout << b % 10;
|
||||
if (first) {
|
||||
cout << ".";
|
||||
first = false;
|
||||
}
|
||||
b /= 10;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user