蜗壳 @ 2021-05-16 10:55:04
两行代码搞定
strA=input()
print("%.3f"%float(strA[::-1]))
by BqtMtsZDnlpsT @ 2021-05-16 11:21:53
tlqtj(危
by Stinger @ 2021-05-16 11:24:57
爪巴
by 966123anyunchuan @ 2021-05-16 11:47:54
python就这
by 写代码到头秃 @ 2021-05-16 12:38:11
#include <iostream>
using namespace std;int main(){double n;cin >> n;n *= 10;cout << (int)n % 10 << '.' << (int)n / 10 % 10 << (int)n / 100 % 10 << (int)n / 1000;return 0;}
然而C++也可以两行【滑稽】
by Coros_Trusds @ 2021-05-16 17:18:45
tlqtj
by guodong @ 2021-06-22 13:50:43
@123456zmy 这个好!!