P1000题目要求
P1000题目链接
public class Main {
public static void main(String[] args) {
System.out.println(" ********\r\n" +
" ************\r\n" +
" ####....#.\r\n" +
" #..###.....##....\r\n" +
" ###.......###### ### ###\r\n" +
" ........... #...# #...#\r\n" +
" ##*####### #.#.# #.#.#\r\n" +
" ####*******###### #.#.# #.#.#\r\n" +
" ...#***.****.*###.... #...# #...#\r\n" +
" ....**********##..... ### ###\r\n" +
" ....**** *****....\r\n" +
" #### ####\r\n" +
" ###### ######\r\n" +
"##############################################################\r\n" +
"#...#......#.##...#......#.##...#......#.##------------------#\r\n" +
"###########################################------------------#\r\n" +
"#..#....#....##..#....#....##..#....#....#####################\r\n" +
"########################################## #----------#\r\n" +
"#.....#......##.....#......##.....#......# #----------#\r\n" +
"########################################## #----------#\r\n" +
"#.#..#....#..##.#..#....#..##.#..#....#..# #----------#\r\n" +
"########################################## ############");
}
}
P1001题目要求
P1001题目链接
import java.io.*;
import java.util.*;
public class Main {
public static void main(String args[]) throws Exception {
Scanner scanner=new Scanner(System.in);
int a = scanner.nextInt(), b = scanner.nextInt();
System.out.println(a+b);
scanner.close();
}
}
P1421题目要求
P1421题目链接
import java.util.Scanner;
public class Main {
public static void main(String args[]) throws Exception {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt(), b = scanner.nextInt();
if (a=0) {
int c = (int) (a*10 + b)/19;
System.out.println(c);
}
scanner.close();
}
}
P1425题目要求
P1425链接
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int a = scan.nextInt(), b = scan.nextInt(), c = scan.nextInt(), d = scan.nextInt();
int e = c - a, f = d - b;
if (f
关注
打赏
热门博文
- 【Linux】Ubuntu20.04安装和卸载MySQL8
- 【Linux】Ubuntu 20.04 报错 curl: (23) Failure writing output to destination 的解决方法
- 【Java】JUnit 4.13.2 警告 ‘assertEquals(double, double)‘ is deprecated 的解决方法
- 【JavaScript】处理 @parcel/transformer-js: Browser scripts cannot have imports or exports.
- 【Python】处理TypeError: Plain typing.NoReturn is not valid as type argument
- 【Python】Matplotlib可视化50例
- 【C语言】C语言修改MySQL数据库
- 【Java】从默认包导入类和对象报错的解决方法
- 【Java】panel.getGraphics()报错空指针异常的解决方法
- 【Java】IDEA编译Java项目报错 java: 找不到符号 的解决方法