백준

백준

[JAVA] 백준 10171번 고양이

public class Main { public static void main(String[] args) { System.out.println("\\ /\\\n" + " ) ( ')\n" + "( / )\n" + " \\(__)|"); } }

백준

[JAVA] 백준 10430번 나머지

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Integer a = scanner.nextInt(); Integer b = scanner.nextInt(); Integer c = scanner.nextInt(); System.out.println((a+b)%c); System.out.println(((a%c) + (b%c))%c); System.out.println((a*b)%c); System.out.println(((a%c)*(b%c))%c); } }

백준

[JAVA] 백준 9498번 시험성적

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Integer a = scanner.nextInt(); if (a=90) { System.out.println("A"); } else if (a=80) { System.out.println("B"); } else if (a=70) { System.out.println("C"); } else if (a=60) { System.out.println("D"); } else { System.out.println("F"); } } }

백준

[JAVA] 백준 10869번 사칙연산

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Integer a = scanner.nextInt(); Integer b = scanner.nextInt(); System.out.println(a+b); System.out.println(a-b); System.out.println(a*b); System.out.println(a/b); System.out.println(a%b); } }

백준

[JAVA] 백준 10998번 A*B

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Integer a = scanner.nextInt(); Integer b = scanner.nextInt(); System.out.println(a*b); } }

백준

[JAVA] 백준 10718번 We love kriii

public class Main { public static void main(String[] args) { System.out.println("강한친구 대한육군"); System.out.print("강한친구 대한육군"); } }

백준

[JAVA] 백준 2754번 학점계산

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String a = scanner.nextLine(); if (a.equals("A+")){ System.out.println(4.3); } else if (a.equals("A0")) { System.out.println(4.0); } else if (a.equals("A-")) { System.out.println(3.7); } else if (a.equals("B+")) { System.out.println(3.3); } else if (a.equals("B0")) { S..

백준

[JAVA] 백준 2753번 윤년

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Integer a = scanner.nextInt(); if (a%4==0){ if (a%100!=0 || a%400==0) { System.out.println("1"); }else { System.out.println("0"); } }else { System.out.println("0"); } }}

DEV장화
'백준' 카테고리의 글 목록 (16 Page)