自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 一串数字,求能被22整除的子串数量

import java.util.Scanner;public class Test { public static void main(String[] args) { Scanner reader = new Scanner(System.in); String arr = reader.next(); int a = 0; for(int i = 0; i < arr.length(); i++){ .

2021-09-11 17:04:37 290

原创 给定一个 元素有序的(升序)整型数组 nums 和一个目标值 target ,写一个函数搜索 nums 中的第一个出现的target,如果目标值存在返回下标,否则返回 -1

import java.util.Arrays;import java.util.Scanner;public class Test { public static void main(String[] args) { int[] a = new int[5]; Scanner reader = new Scanner(System.in); for (int i = 0; i < 5; i++) { a...

2021-09-11 14:14:46 3010

原创 一个细菌 每分钟 分裂一次 每个细菌 只能分裂3次 输入n个小时 求n个小时后细菌的总数量

import java.util.Scanner;public class Test { public static void main(String[] args) { Scanner reader = new Scanner(System.in); int n = reader.nextInt(); int sum = 1;//细菌初始数量为1 if (n <= 3) {//当时间不超过三小时时 没有停止分裂的细胞 .

2021-09-10 22:44:53 1166

原创 输入进制 输入两个数 将两个数的和用所输入的进制表示出来

import java.util.Scanner;public class Test { public static void main(String[] args) { Scanner reader = new Scanner(System.in); int n = reader.nextInt(); int n1 = n; int num1 = reader.nextInt(); int num2 = read.

2021-09-10 22:08:07 138

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除