Run ID:129043

提交时间:2025-08-21 16:17:51

#include <bits/stdc++.h> using namespace std; float N; int main(){ scanf("%f",&N); if(N<5){ printf("%.3lf",-N+2.5); }else if(N>=5&&N<10){ printf("%.3lf",2-1.5*(N-3)*2); }else if(N>=10&&N<20){ printf("%.3lf",N/2-1.5); } return 0; }