CS/BaekJoon

· CS/BaekJoon
🎈문제 https://www.acmicpc.net/problem/10998 💬설명 Print에 두 Int 변수값을 * 해주면 곱하기 연산을해서 결과값을 낼 수 있다. ⌨️ CODE import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int a, b; a = sc.nextInt(); b = sc.nextInt(); System.out.println(a * b); } }
· CS/BaekJoon
🎈문제 https://www.acmicpc.net/problem/1001 💬설명 Print에 Int변수값을 - 해주면 연산결과를 출력할 수 있다. ⌨️ CODE import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int a, b; a = sc.nextInt(); b = sc.nextInt(); System.out.println(a - b); } }
· CS/BaekJoon
🎈문제 https://www.acmicpc.net/problem/1000 💬설명 Print에 두 Int 변수값을 + 해주면 연산해서 결과값을 낼 수 있다. ⌨️ CODE import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int a, b; a = sc.nextInt(); b = sc.nextInt(); System.out.println(a + b); } }
· CS/BaekJoon
🎈문제 https://www.acmicpc.net/problem/2557 💬설명 Print로 간단하게 해결해보자 ⌨️ CODE public class Main{ public static void main(String[] args) throws Exception{ System.out.println("Hello World!"); } }
Bell91
'CS/BaekJoon' 카테고리의 글 목록 (17 Page)