📄 3098046_ac_312ms_5244k.java
字号:
import java.util.*;
import java.io.*;
public class Main
{
public static void main(String [] args) throws IOException
{
new Main().solve();
}
private void solve() throws IOException
{
Scanner cin = new Scanner (System.in);
int num[] = new int [10];
int i, c;
while(true)
{
c = 0;
for(i = 0; i < 6; i++)
{
num[i] = cin.nextInt();
c += num[i];
}
if(c == 0)
{
break;
}
Arrays.sort(num,0,6);
c -= num[0]+num[5];
System.out.print(c/4);
if(c%4!=0)
{
c = c%4;
c = c*25;
if(c==50)
{
c = 5;
}
System.out.print("."+c);
}
System.out.println();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -