- 博客(8)
- 收藏
- 关注
转载 蓝桥杯 灵能传输
import java.util.ArrayList; public class Main { public static void main(String[] args) throws Exception{ String aa=“0100110001010001”; int n=aa.length(); ArrayList al=new ArrayList(); for(int i=1;i<=n;i++) { for(int j=0;j<=aa.length()-i;j++) { String
2020-07-11 21:02:40 198
原创 蓝桥杯 后缀表达式
public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int h=sc.nextInt(); int a=sc.nextInt(); int k=h+a+1; int[] arr=new int[k]; for(int i=0;i<k;i++) { arr[i]=sc.nextInt(); } sc.close(); for(int i=0;i
2020-07-11 20:56:54 209
转载 蓝桥杯 等差数列
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc =new Scanner(System.in); int n = sc.nextInt(); int [] num = new int [n]; int [] cha = new int [n-1]; for (int i = 0; i < num
2020-07-11 20:51:47 120
转载 蓝桥杯 迷宫
//import java.util.Scanner; public class Main { int map[][] = new int[32][52];//迷宫数组(有加墙) class Box {//方块内部类 int i;//方块的位置 int j; int pre;//本路径中上一个方块在队列中的下标 Box(int i,int j,int pre) { this.i = i; this.j = j; this.pre = pre; } void setBox(int i,int j,int pr
2020-07-11 20:40:59 97
转载 蓝桥杯 数的分解
public class Main{ public static boolean judge(int num){ while(num>0){ int k=num%10; if(k2 || k4){ return false; } num/=10; } return true; } public static void main(String[] args) { long result=0; for(int i=1;i<2019;i++){ for(int j
2020-07-04 09:46:54 148
转载 蓝桥杯 数列求值
public class Main { public static void main(String[] args) { int a = 1, b = 1, c = 1; for (int i = 3; i < 20190324; i++) { int temp = (a + b + c) % 10000; a = b; b = c; c = temp; } System.out.println(c); } }
2020-07-04 09:44:46 100
转载 蓝桥杯 年号字串
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int[] arr = new int[2500]; int n = scanner.nextInt(); int i = 1; while (n != 0) { if (n % 26 == 0) { arr[i] = 26 + 64; n -= 26;
2020-07-04 09:43:10 218
转载 蓝桥杯B组试题组队
蓝桥杯B组试题组队 import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; public class Main { static Scanner in = new Scanner(System.in); static int n; static int[][] a = new int[25][10]; static boolean[] vis = new boolean[25]; static
2020-07-03 21:45:24 221
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人