wuqg5518
wuqg5518
全部文章
题解
归档
标签
去牛客网
登录
/
注册
wuqg5518的博客
全部文章
/ 题解
(共94篇)
题解 | #统计输入正数个数#
import java.util.*; public class Main { public static void main(String[] args) { int count = 0; Scanner scanner = new Scanner(System.in); //write ...
Java
2021-11-14
0
329
题解 | #二维数组求和#
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
377
题解 | #数组倒转#
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
323
题解 | #数组遍历#
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
407
题解 | #邮箱验证#
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
458
题解 | #判断体重指数#
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
361
题解 | #判断学生成绩等级#
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
424
题解 | #计算商场折扣#
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
428
题解 | #矩阵的最小路径和#
import java.util.*; public class Solution { /** * * @param matrix int整型二维数组 the matrix * @return int整型 */ public int minPathSum (int[][] matrix) { // ...
Java
动态规划
二维动态dp数组
2021-11-10
0
387
题解 | #用两个栈实现队列#
import java.util.Stack; public class Solution { Stack stack1 = new Stack();//创建栈1 Stack stack2 = new Stack();//创建栈2 //使用两个栈实现队列, //方法思想:插入数据时插入在栈1;弹出数...
Java
栈
队列
2021-11-07
0
286
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页