P5740题目要求
P5740题目链接
这题比较水,简单的讲直接存一个max就完事。。。
P5740代码(Java语言描述)import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int num = Integer.parseInt(scanner.nextLine());
String result = "";
int max = -1;
for (int i = 0; i max) {
max = grade;
result = info;
}
}
scanner.close();
System.out.println(result);
}
}
P5741题目要求
P5741题目链接
不重复的两两比较——P5728
P5728题算是本题的简化版吧,本题算是有所变形,具体内容可以参考P5728。
P5741代码(Java语言描述)import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int num = Integer.parseInt(scanner.nextLine());
String[] name_array = new String[num];
int[] chinese_array = new int[num];
int[] math_array = new int[num];
int[] english_array = new int[num];
int[] grade_array = new int[num];
for (int i = 0; i
关注
打赏
热门博文
- 【Linux】Ubuntu20.04安装和卸载MySQL8
- 【Linux】Ubuntu 20.04 报错 curl: (23) Failure writing output to destination 的解决方法
- 【Java】JUnit 4.13.2 警告 ‘assertEquals(double, double)‘ is deprecated 的解决方法
- 【JavaScript】处理 @parcel/transformer-js: Browser scripts cannot have imports or exports.
- 【Python】处理TypeError: Plain typing.NoReturn is not valid as type argument
- 【Python】Matplotlib可视化50例
- 【C语言】C语言修改MySQL数据库
- 【Java】从默认包导入类和对象报错的解决方法
- 【Java】panel.getGraphics()报错空指针异常的解决方法
- 【Java】IDEA编译Java项目报错 java: 找不到符号 的解决方法