JavaScript554 [백준] 2480: 주사위 세개 / Node.js (JavaScript) https://www.acmicpc.net/problem/2480 2480번: 주사위 세개 1에서부터 6까지의 눈을 가진 3개의 주사위를 던져서 다음과 같은 규칙에 따라 상금을 받는 게임이 있다. 같은 눈이 3개가 나오면 10,000원+(같은 눈)×1,000원의 상금을 받게 된다. 같은 눈이 2개 www.acmicpc.net 문제 1에서부터 6까지의 눈을 가진 3개의 주사위를 던져서 다음과 같은 규칙에 따라 상금을 받는 게임이 있다. 같은 눈이 3개가 나오면 10,000원+(같은 눈)×1,000원의 상금을 받게 된다. 같은 눈이 2개만 나오는 경우에는 1,000원+(같은 눈)×100원의 상금을 받게 된다. 모두 다른 눈이 나오는 경우에는 (그 중 가장 큰 눈)×100원의 상금을 받게 된다. 예를 들어, .. 2022. 10. 12. [Codewars] Convert a Boolean to a String (8 kyu) / JavaScript https://www.codewars.com/kata/551b4501ac0447318f0009cd Codewars - Achieve mastery through coding practice and developer mentorship Coding practice for all programming levels – Join a community of over 3 million developers and improve your coding skills in over 55 programming languages! www.codewars.com DESCRIPTION: Implement a function which convert the given boolean value into its string repres.. 2022. 10. 12. [백준] 5338: 마이크로소프트 로고 / Node.js (JavaScript) https://www.acmicpc.net/problem/5338 5338번: 마이크로소프트 로고 마이크로소프트 로고를 예제 출력처럼 출력하는 프로그램을 작성하시오. www.acmicpc.net 문제 마이크로소프트 로고를 예제 출력처럼 출력하는 프로그램을 작성하시오. 출력 마이크로소프트 로고를 예제 출력처럼 출력한다. 예제 출력 1 복사 _.-;;-._ '-..-'| || | '-..-'|_.-;;-._| '-..-'| || | '-..-'|_.-''-._| 풀이 console.log(` _.-;;-._`); console.log(`'-..-'| || |`); console.log(`'-..-'|_.-;;-._|`); console.log(`'-..-'| || |`); console.log(`'-..-'.. 2022. 10. 12. [Codewars] Sum Arrays (8 kyu) / JavaScript https://www.codewars.com/kata/53dc54212259ed3d4f00071c Codewars - Achieve mastery through coding practice and developer mentorship Coding practice for all programming levels – Join a community of over 3 million developers and improve your coding skills in over 55 programming languages! www.codewars.com DESCRIPTION: Write a function that takes an array of numbers and returns the sum of the number.. 2022. 10. 12. 이전 1 ··· 123 124 125 126 127 128 129 ··· 139 다음