wuqg5518
wuqg5518
全部文章
分类
题解(94)
归档
标签
去牛客网
登录
/
注册
wuqg5518的博客
全部文章
(共93篇)
题解 | #二维数组求和#
public class Main { public static void main(String[] args) { int[][] arr = {{11,33,55},{22,44,66,88},{131,214,315,146},{928,827,726,625},{424,525}}; ...
Java
2021-11-14
0
369
题解 | #数组倒转#
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { int[] arr = new int[6]; Scanner scanne...
Java
2021-11-14
0
313
题解 | #数组遍历#
import java.util.Scanner; public class Main { public static void main(String[] args) { int[] ary = new int[6]; int max; int min; Scanner scanner = new...
Java
2021-11-14
0
402
题解 | #邮箱验证#
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String str = ...
Java
2021-11-14
1
448
题解 | #判断体重指数#
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double height = scann...
Java
2021-11-14
0
355
题解 | #判断学生成绩等级#
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String grade =scanner...
Java
2021-11-14
0
419
题解 | #计算商场折扣#
import java.util.*; public class Main { public static void main(String[] args) { Scanner console = new Scanner(System.in); int price = console.nextInt...
Java
2021-11-14
0
422
题解 | #矩阵的最小路径和#
import java.util.*; public class Solution { /** * * @param matrix int整型二维数组 the matrix * @return int整型 */ public int minPathSum (int[][] matrix) { // ...
Java
动态规划
二维动态dp数组
2021-11-10
0
383
题解 | #用两个栈实现队列#
import java.util.Stack; public class Solution { Stack stack1 = new Stack();//创建栈1 Stack stack2 = new Stack();//创建栈2 //使用两个栈实现队列, //方法思想:插入数据时插入在栈1;弹出数...
Java
栈
队列
2021-11-07
0
283
题解 | #交换变量值#
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a = scanner.nextI...
Java
交换变量值
2021-11-05
122
2102
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页