delete pics to save space
This commit is contained in:
20
history_source/ccf 入门篇/U3/3.5.2.cpp
Normal file
20
history_source/ccf 入门篇/U3/3.5.2.cpp
Normal file
@ -0,0 +1,20 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
long double a;
|
||||
while(true)
|
||||
{
|
||||
cin>>a;
|
||||
if(a>=0&&a<5) cout<<a+2.5<<endl;
|
||||
else
|
||||
{
|
||||
if(a>=5&&a<10) cout<<2-1.5*(a-3)*(a-3)<<endl;
|
||||
else
|
||||
{
|
||||
if(a>=10&&a<20) cout<<a/2-1.5<<endl;
|
||||
else cout<<"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ч!"<<endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user