- 博客(19)
- 收藏
- 关注
原创 uni-app学习使用
遍历对象数据 使用for in 的形式对对象进行遍历,获取对象的时候使用对象名称[data]的方式获取每个对象的具体内容你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, 可以仔细阅读这篇文章,了解一下Markdown的基本语法知识。我们对Markdown编辑器进行了一些功能拓展与语法支持,除了标准的Markdown编辑器功能,我们增加了如下几点新功能,帮助你用它写博客:撤销:Ctrl/Command + Z 重做:Ctrl/Command + Y
2023-07-03 09:37:13
180
1
原创 20171202游戏
游戏 package practice; import java.awt.print.Printable; import java.util.ArrayList; import java.util.Scanner; public class ccf171202 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int a = sc.ne
2021-06-15 01:57:50
400
6
原创 20180302碰撞的小球
碰撞的小球 package practice; import java.util.Scanner; public class ccf180302 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt();//球数量 int L = sc.nextInt();//线段长度 int time = sc.nextInt();//时间 int
2021-06-15 01:49:48
91
原创 20180301跳一跳
跳一跳 package practice; import java.util.Scanner; public class ccf080301 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int score = 0; int mess = 1; while(true) { int b = sc.nextInt(); if (b==0) { break
2021-06-15 01:46:43
79
原创 20180902买菜
买菜 package practice; import java.util.Scanner; public class ccf180902 { public static void main(String[] args) { Scanner sc= new Scanner(System.in); int N = sc.nextInt(); int[][] arrs = new int[N][2];//存放第一个人的时间段 int len = 0;//聊天时间 for (int i
2021-06-15 01:44:08
68
原创 20180901卖菜
卖菜 package practice; import java.util.Scanner; public class ccf180901 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] price = new int[N]; for (int i = 0; i < price.length; i++) {
2021-06-15 01:40:25
219
原创 20180902小明放学
小明放学 正确答案,以红灯为基点进行计算。 import java.util.Scanner; public class ccf181202 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long r = sc.nextInt(); long y = sc.nextInt(); long g = sc.nextInt(); long ryg = r+y+g; lon
2021-06-15 01:37:20
149
原创 20181201小明上学
小明上学 package practice; import java.util.Scanner; public class ccf181201 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int red = sc.nextInt(); int yellow = sc.nextInt(); int green = sc.nextInt(); int pass = sc
2021-06-15 01:33:55
161
原创 20190301小中大
小中大 代码(80分) package practice; import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; public class CCf190301 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int Min
2021-06-15 01:28:25
1151
1
原创 201909-2小明种苹果(续)
小明种苹果 package practice; import java.awt.print.Printable; import java.util.Scanner; public class test190902 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt();//多少棵树 int[] total = new int[N];//存总数
2021-06-15 01:24:17
67
原创 201909-1小明种苹果
小明种苹果 package practice; import java.awt.print.Printable; import java.util.Scanner; public class test19091 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt();//苹果树个数 int M = sc.nextInt();//蔬果操作轮数
2021-06-15 01:21:07
59
原创 201912-2 回收站选址
回收站选址 自己写的代码(只有20分) package practice; import java.util.ArrayList; import java.util.Scanner; public class test19092 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a = 0; int b = 0; in
2021-06-12 02:36:20
390
原创 201912-1报数
报数 package practice; import java.awt.print.Printable; import java.io.StreamCorruptedException; import java.util.Scanner; public class test19121 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt();//
2021-06-12 02:33:11
100
原创 202009-2 风险人群查询
风险人群筛查 package practice; import java.util.Arrays; import java.util.Scanner; public class practice2 { public static void main(String[] args ) { Scanner sc = new Scanner(System.in); int m = sc.nextInt();//得到人数 int n = sc.nextInt();//得到连续数 int pl
2021-06-12 02:30:34
107
原创 20206-2 稀疏向量
稀疏向量 自己的代码(只有60分) import java.util.ArrayList; import java.util.Scanner; public class svector { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); Int
2021-06-12 02:26:36
85
原创 202009-1 检测点查询
称检测点查询 package practice; import java.awt.List; import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; import javax.xml.namespace.QName; public class practice1 { public static void main(String[] args) { Scanner sc = new Scanne
2021-06-12 02:20:29
107
原创 202006-1线性分类器
package practice; import java.util.Scanner; import javax.swing.text.StyledEditorKit.ForegroundAction; public class pc { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt();//点的个数 int m = sc.nextI.
2021-06-12 02:13:49
76
原创 剑指offer04
剑指offer04:二维数组的查找 在一个 n * m 的二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个高效的函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。 示例: 现有矩阵 matrix 如下: [ [1, 4, 7, 11, 15], [2, 5, 8, 12, 19], [3, 6, 9, 16, 22], [10, 13, 14, 17, 24], [18, 21, 23, 26, 30] ] 给定 target
2021-04-11 11:57:21
99
原创 剑指offer
剑指offer03:数组中的重复数字 找出数组中重复的数字。 在一个长度为 n 的数组 nums 里的所有数字都在 0~n-1 的范围内。数组中某些数字是重复的,但不知道有几个数字重复了,也不知道每个数字重复了几次。请找出数组中任意一个重复的数字。 示例 1: 输入: [2, 3, 1, 0, 2, 5, 3] 输出:2 或 3 ```java public class Solution { public static void main(String[] args) { Scanner scann
2021-04-10 00:56:15
84
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人