#50356: C++ 的


1121228@stu.wghs.tp.edu.tw (你知道我是誰嗎!!??)


簡單來說就是a/2再四捨五入

#include <bits/stdc++.h>
using namespace std;
 
int main() {
double a;
while(cin >> a){
    double tmp = round(a*10/2)/10.0;
    cout << fixed << setprecision(1) << tmp << endl;
}
    return 0;
}