2021全国高校计算机能力挑战赛决赛Java组
2021全国高校计算机能力挑战赛决赛Java组
题目一
解法:模拟 代码如下
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int[] nums = new int[n];
double[] values = new double[n];
double avg = 0;
int N = 0;
for (int i = 0; i < n; i++) {
int x = scan.nextInt();
double y = scan.nextDouble();
nums[i] = x;
val
共有 0 条评论