본문 바로가기

자료구조15

[CodeWars] javascript - 6kyu : Returning Strings 기본적인 문제는 문제풀이 없이 Solution만 작성되어 있습니다. Title Returning Strings Description Make a function that will return a greeting statement that uses an input; your program should return, "Hello, how are you doing today?". [ Example Output ] 'Naver'// => "Hello, Naver how are you doing today?". 'Google'// => "Hello, Google how are you doing today?". 'Daum'// => "Hello, Daum how are you doing today?". Test C.. 2020. 8. 10.
[CodeWars] javascript - 6kyu : Will the present fit? 기본적인 문제는 문제풀이 없이 Solution만 작성되어 있습니다. Title Will the present fit? Description Santa's elves are boxing presents, and they need your help! Write a function that takes two sequences of dimensions of the present and the box, respectively, and returns a Boolean based on whether or not the present will fit in the box provided. The box's walls are one unit thick, so be sure to take that in to account... 2020. 7. 28.
[백준] javascript - 2739번 : 구구단 기본적인 문제는 문제풀이 없이 Solution만 작성되어 있습니다. Title 구구단 Description N을 입력받은 뒤, 구구단 N단을 출력하는 프로그램을 작성하시오. 출력 형식에 맞춰서 출력하면 된다. [ Example Input ] 첫째 줄에 N이 주어진다. N은 1보다 크거나 같고, 9보다 작거나 같다. 2 [ Example Output ] 출력형식과 같게 N*1부터 N*9까지 출력한다. 2 * 1 = 2 2 * 2 = 4 2 * 3 = 6 2 * 4 = 8 2 * 5 = 10 2 * 6 = 12 2 * 7 = 14 2 * 8 = 16 2 * 9 = 18 Solution // => 결과값 : 입력값에 따라서 구구단을 출력 const readline = require('readline'); co.. 2020. 7. 25.
[백준] javascript - 9498번 : 시험 성적 기본적인 문제는 문제풀이 없이 Solution만 작성되어 있습니다. Title 시험 성적 Description 시험 점수를 입력받아 90 ~ 100점은 A, 80 ~ 89점은 B, 70 ~ 79점은 C, 60 ~ 69점은 D, 나머지 점수는 F를 출력하는 프로그램을 작성하시오. [ Example Input ] 첫째 줄에 시험 점수가 주어진다. 시험 점수는 0보다 크거나 같고, 100보다 작거나 같은 정수이다. 100 [ Example Output ] 시험 성적을 출력한다. A Solution const fs = require('fs') const inputData = fs.readFileSync('/dev/stdin') const a = inputData if(100>= a && a>=90){ conso.. 2020. 7. 22.