我自己的写法:
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
int a1=0;
int a2=0;
int sum1=0;
int sum2=0;
double average1;
double average2;
Scanner sc=new Scanner(System.in);
int n