MapleStory Cookie With Halo

๐Ÿ•ธ Algorithm 84

[๋ฐฑ์ค€][java][10172][๊ฐœ]

//1310172๊ฐœ public class Main { public static void main(String[] args) { System.out.println("|\\_/|"); System.out.println("|q p| /}"); System.out.println("( 0 )\"\"\"\\"); System.out.println("|\"^\"` |"); System.out.println("||_/=\\\\__|"); } } \์™€ "๊ฐ€ ์‹œ์Šคํ…œ์–ธ์–ด ํŠน์„ฑ์ƒ ํŠน์ˆ˜ํ•œ ์—ญํ• ์„ ํ•˜๊ธฐ๋•Œ๋ฌธ์— \๋ฅผ ์•ž์— ํ•œ๋ฒˆ ๋” ์ ์–ด์ค˜์•ผํ•œ๋‹ค๋Š” ์ ๋งŒ ์œ ์˜ํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค.

[๋ฐฑ์ค€][java][10171][๊ณ ์–‘์ด]

//12 10171 ๊ณ ์–‘์ด public class Main { public static void main(String[] args) { System.out.println("\\ /\\"); System.out.println(" ) ( ')"); System.out.println("( / )"); System.out.println(" \\(__)|"); } } ์‹œ์Šคํ…œ ์–ธ์–ด ํŠน์„ฑ์ƒ \๊ฐ€ ํŠน์ˆ˜ํ•œ ์—ญํ• ์„ ํ•˜๊ธฐ์—(\n์€ ์ค„๋ฐ”๊ฟˆ์ด๋ผ๋˜ ์ง€..) \๋ฅผ ์ถœ๋ ฅํ•™์žํ•  ๋•Œ \\๋กœ ์Šฌ๋ž˜์‹œslash๋ฅผ ๋‘๋ฒˆ ์ ์–ด์ค˜์•ผ \๋กœ ์ถœ๋ ฅ๋ฉ๋‹ˆ๋‹ค.

[๋ฐฑ์ค€][java][11382][๊ผฌ๋งˆ ์ •๋ฏผ]

import java.util.Scanner; //1111382๊ผฌ๋งˆ ์ •๋ฏผ public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String input = scanner.nextLine(); String[] inputArr = input.split(" "); long sum = 0; for (String i : inputArr) { sum += Long.parseLong(i); } System.out.print(sum); } } String๊ฐ’์„ ๋ฐ›์€ ํ›„์— Split()์„ ์ด์š”ํ•ด ์ž˜๋ผ String๋ฐฐ์—ด๋กœ ๋งŒ๋“ค์–ด์ค๋‹ˆ๋‹ค. for๋ฌธ์„ ํ†ตํ•ด ๊ฐ’์„ ๋ชจ๋‘ ๋”ํ•˜๋Š”๋ฐ Integer์˜ ๋ฒ”์œ„๋Š” 10..

[๋ฐฑ์ค€][java][2588][๊ณฑ์…ˆ]

import java.util.Scanner; public class Main { // 102588๊ณฑ์…ˆ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int firstInput = scanner.nextInt(); int secondInput = scanner.nextInt(); scanner.close(); System.out.printf("%d\n", firstInput * (secondInput % 10)); System.out.printf("%d\n", firstInput * ((secondInput % 100) / 10)); System.out.printf("%d\n", firstInput * ..

[๋ฐฑ์ค€][java][10430][๋‚˜๋จธ์ง€]

import java.util.Scanner; public class Main { // 910430๋‚˜๋จธ์ง€ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); int c = scanner.nextInt(); scanner.close(); System.out.printf("%d\n", (a + b) % c); System.out.printf("%d\n", ((a % c) + (b % c)) % c); System.out.printf("%d\n", (a * b) % c); System.out.printf("%d", ((..

[๋ฐฑ์ค€][java][18108][1998๋…„์ƒ์ธ ๋‚ด๊ฐ€ ํƒœ๊ตญ์—์„œ๋Š” 2541๋…„์ƒ?!]

import java.util.Scanner; public class Main { // 8181081998๋…„์ƒ์ธ ๋‚ด๊ฐ€ ํƒœ๊ตญ์—์„œ๋Š” 2541๋…„์ƒ?! public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.printf("%d", scanner.nextInt() - 543); } }

[๋ฐฑ์ค€][java][10869][์‚ฌ์น™์—ฐ์‚ฐ]

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int firstInput = scanner.nextInt(); int secondInput = scanner.nextInt(); scanner.close(); System.out.printf("%d\n", firstInput + secondInput); System.out.printf("%d\n", firstInput - secondInput); System.out.printf("%d\n", firstInput * secondInput); System.out.printf("%..

[๋ฐฑ์ค€][java][1008][A/B]

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double firstNumber = scanner.nextDouble(); double secondNumber = scanner.nextDouble(); System.out.println(firstNumber / secondNumber); } } ํ’€์–ด๋ณด์‹  ๋ถ„์€ ์•Œ๊ฒ ์ง€๋งŒ ์ด ๋ฌธ์ œ์—๋Š” ํ•จ์ •์ด ์žˆ์Šต๋‹ˆ๋‹ค. ์œ„ ๋ฌธ์ œ์˜ ๋งˆ์ง€๋ง‰ ์ค„ ์ •๋‹ต๊ณผ ์ถœ๋ ฅ๊ฐ’์˜ ์ ˆ๋Œ€์˜ค์ฐจ ๋˜๋Š” ์ƒ๋Œ€์˜ค์ฐจ๊ฐ€ 10^9 ์ดํ•˜ ๋ผ๋Š” ๋ฌธ๊ตฌ์ž…๋‹ˆ๋‹ค. float์€ ์†Œ์ˆ˜์  7์ž๋ฆฌ๊นŒ์ง€ double์€ ์†Œ์ˆ˜์  16์ž๋ฆฌ๊นŒ์ง€ ๊ฐ€๋Šฅํ•˜๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค.

๋ฐ˜์‘ํ˜•