Skip to content

Instantly share code, notes, and snippets.

//Object : write "Hello World!"
//Name : Hyeon Soo Lee
//Email : 99leehs@naver.com
public class ex01 {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
import java.util.Scanner;
//Object : A+B
//Name : Hyeon Soo Lee
//Email : 99leehs@naver.com
public class ex02 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
import java.util.Scanner;
//Object : A-B
//Name : Hyeon Soo Lee
//Email : 99leehs@naver.com
public class ex02 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
public class ex03 {
//Object : 7287
//Name : Hyeon Soo Lee
//Email : 99leehs@naver.com
public static void main(String[] args) {
System.out.println(18);
System.out.println("99leehs");
}
}
//Object : Dog
//Name : Hyeon Soo Lee
//Email : 99leehs@naver.com
public class ex04 {
public static void main(String[] args) {
String a = "|\\_/|";
String b = "|q p| /}";
String c = "( 0 )\"\"\"\\";
String d = "|\"^\"` |";
String e = "||_/=\\\\__|";
public class ex05 {
//Object : we love kriii
//Name : Hyeon Soo Lee
//Email : 99leehs@naver.com
public static void main(String[] args) {
System.out.println("강한친구 대한육군");
System.out.println("강한친구 대한육군");
}
}
import java.util.Scanner;
//Object : 그대로 출력하기
//question : 입력이 주어진다. 입력은 최대 100줄로 이루어져 있고, 알파벳 소문자, 대문자, 공백, 숫자로만 이루어져 있다.
각 줄은 100글자를 넘지 않으며, 빈 줄은 주어지지 않는다. 또, 각 줄은 공백으로 시작하지 않고, 공백으로 끝나지 않는다.
//Name : Hyeon Soo Lee
//Email : 99leehs@naver.com
public class ex06 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNextLine()) {
import java.util.Scanner;
//Object : 그대로 입력하기2
//question : 입력이 주어진다. 입력은 최대 100줄로 이루어져 있고, 알파벳 소문자, 대문자, 공백, 숫자로만 이루어져 있다.
// 각 줄은 100글자를 넘지 않으며, 빈 줄이 주어질 수도 있고, 각 줄의 앞 뒤에 공백이 있을 수도 있다.
//Name : Hyeon Soo Lee
//Email : 99leehs@naver.com
public class ex06 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNextLine()) {
import java.util.Scanner;
// Object : AxB
// Name : Hyeon Soo Lee
// Email : 99leehs@gmail.com
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
System.out.println(A*B);
import java.util.Scanner;
// Object : A/B
// Name : Hyeon Soo Lee
// Email : 99leehs@gmail.com
public class Ex08 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double A = sc.nextDouble();
double B = sc.nextDouble();
System.out.println(A/B);