【题目描述】
【输入】
【输出】
【输入样例】
【输出样例】
#include<cstdio> int main(){ float x,y; scanf("%f",&x); if(x>=0 && x<5)y=-x+2.5; if(x>=5 && x<10)y=2-1.5*(x-3)*(x-3); if(x>=10 && x<20)y=x/2-1.5; printf("%.3f",y); return 0; } //OK
Powered by 孙会中 @ 2024-2026【 www.sunhuizhong.cn 】All rights reserved
访问统计:386183 本月:281 上月:799 今日:7 昨日:6 当前在线:1人