delete pics to save space
This commit is contained in:
20
history_source/ccf 入门篇/U4/4.1.8.cpp
Normal file
20
history_source/ccf 入门篇/U4/4.1.8.cpp
Normal file
@ -0,0 +1,20 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int a,b,s,f;
|
||||
while(true)
|
||||
{
|
||||
cin>>s;
|
||||
b=s+1;
|
||||
a=a+s;
|
||||
for(int i=0;i<9;i++)
|
||||
{
|
||||
cin>>f;
|
||||
if(f>b) b=f;
|
||||
if(f<s) s=f;
|
||||
a=a+f;
|
||||
}
|
||||
cout<<(a-b-s)/8.0<<endl<<endl;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user