赞
踩
- public class Main {
- public static void main(String[] args) {
- System.out.println("Hello,World!");
- }
- }
- public class Main {
- public static void main(String[] args) {
- System.out.println(" * ");
- System.out.println(" *** ");
- System.out.println("*****");
- System.out.println(" *** ");
- System.out.println(" * ");
-
- }
- }
- public class Main {
- public static void main(String []args){
- System.out.println(
- " ********\n" +
- " ************\n" +
- " ####....#.\n" +
- " #..###.....##....\n" +
- " ###.......###### ### ###\n" +
- " ........... #...# #...#\n" +
- " ##*####### #.#.# #.#.#\n" +
- " ####*******###### #.#.# #.#.#\n" +
- " ...#***.****.*###.... #...# #...#\n" +
- " ....**********##..... ### ###\n" +
- " ....**** *****....\n" +
- " #### ####\n" +
- " ###### ######\n" +
- "##############################################################\n" +
- "#...#......#.##...#......#.##...#......#.##------------------#\n" +
- "###########################################------------------#\n" +
- "#..#....#....##..#....#....##..#....#....#####################\n" +
- "########################################## #----------#\n" +
- "#.....#......##.....#......##.....#......# #----------#\n" +
- "########################################## #----------#\n" +
- "#.#..#....#..##.#..#....#..##.#..#....#..# #----------#\n" +
- "########################################## ############");
- }
- }
- import java.util.Scanner;
-
- public class Main {
- public static void main(String[] args) {
- Scanner sc=new Scanner(System.in);
- int a=sc.nextInt(),b =sc.nextInt();
- System.out.println(a+b);
- }
- }
- import java.util.Scanner;
-
- public class Main {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- String a = sc.next();
- System.out.printf(" " + " " + "%s\n", a);
- System.out.printf(" " + "%s%s%s\n", a, a, a);
- System.out.printf("%s%s%s%s%s\n", a, a, a, a, a);
- }
- }
- import java.util.Scanner;
-
- public class Main{
- public static void main(String[] args){
- Scanner sc = new Scanner(System.in);
- int a = sc.nextInt(), b = sc.nextInt();
- System.out.println(a*b);
- }
- }
-
- import java.util.Scanner;
-
- public class Main{
- public static void main(String[] args){
- Scanner cin = new Scanner(System.in);
- char a = cin.next().charAt(0);
- System.out.println((char)(a + ('A' - 'a')));
- }
- }
- import java.util.Scanner;
-
- public class Main {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- String s = sc.next();
- for (int i = s.length() - 1; i >= 0 ; i--) {
- System.out.print(s.charAt(i));
- }
- }
- }
- import java.util.Scanner;
-
- public class Main {
- public static void main(String[] args) {
- Scanner sc=new Scanner(System.in);
- double a=sc.nextDouble();
- int b=sc.nextInt();
- System.out.printf("%.3f\n", a/b);
- System.out.println(b*2);
- }
- }
- import java.util.Scanner;
-
- public class Main {
- public static void main(String[] args) {
- Scanner sc=new Scanner (System.in);
- double a=sc.nextDouble();
- double b=sc.nextDouble();
- double c=sc.nextDouble();
- double p=(a+b+c)/2;
- double s=Math.sqrt(p*(p-a)*(p-b)*(p-c));
- System.out.printf("%.1f",s);
- }
- }
- import java.util.Scanner;
-
- public class Main{
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- int s = sc.nextInt();
- int v = sc.nextInt();
- int h = 0;
- int m = 0;
- int t = (int)Math.ceil(s/(v+0.0))+10;
- int time = 8*60;
- int tmp = time - t;
- if(tmp<0) {
- tmp += 24*60;
- }
- h = tmp/60;
- m = tmp-h*60;
- if(h<10) {
- System.out.print(0+""+h);
- }else {
- System.out.print(h);
- }
- System.out.print(":");
- if(m<10) {
- System.out.print(0+""+m);
- }else {
- System.out.print(m);
- }
- }
- }
- import java.util.Scanner;
-
- public class Main {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- int h = sc.nextInt();
- int r = sc.nextInt();
- double pi = 3.14;
- double v = pi * r * r * h / 1000;
- int result = (int) (20 / v) + 1;
- System.out.println(result);
- }
- }
- import java.util.Scanner;
-
- public class Main {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- int a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt(),d=sc.nextInt();
- if(d<b) {
- System.out.println(c-a-1 +" "+ (d+60-b));
- }else {
- System.out.println(c-a +" "+ (d-b));
- }
- }
- }
- import java.util.Scanner;
-
- public class Main{
- public static void main(String[] args){
- Scanner sc = new Scanner(System.in);
- int a =sc.nextInt(),b = sc.nextInt();
- System.out.println((a*10+b)/19);
- }
- }
- import java.util.Scanner;
-
- public class Main {
- public static void main(String []args) {
- Scanner sc = new Scanner(System.in);
- int a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt();
- System.out.println((int)(a*0.2 + b*0.3 + c*0.5));
- }
- }
结语:“难道向上攀爬的那条路,不是比站在顶峰更让人热血澎湃吗?”--贺炜
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。