본문 바로가기

js17

[백준] javascript - 10718번 : We love kriii 기본적인 문제는 문제풀이 없이 Solution만 작성되어 있습니다. Title We love kriii Description ACM-ICPC 인터넷 예선, Regional, 그리고 World Finals까지 이미 2회씩 진출해버린 kriii는 미련을 버리지 못하고 왠지 모르게 올 해에도 파주 World Finals 준비 캠프에 참여했다. 대회를 뜰 줄 모르는 지박령 kriii를 위해서 격려의 문구를 출력해주자. [ Example Output ] 강한친구 대한육군 강한친구 대한육군 Solution const printTwice=(arg)=>{ console.log(arg) console.log(arg) } printTwice('강한친구 대한육군') 글 읽어주셔서 감사합니다. 보다 유익한 컨텐츠를 제작할 수.. 2020. 7. 12.
[백준] javascript - 2557번 : Hello World 기본적인 문제는 문제풀이 없이 Solution만 작성되어 있습니다. Title Hello World Description Hello World!를 출력하시오. [ Example Output ] Hello World! Solution console.log("Hello World!") 글 읽어주셔서 감사합니다. 보다 유익한 컨텐츠를 제작할 수 있도록 노력하겠습니다. ​ - TLOWAC 이창훈 - 2020. 7. 12.
[CodeWars] javascript - 7kyu - Growth Of Population 문제풀이 Title Growth Of Population Description In a small town the population is p0 = 1000 at the beginning of a year. The population regularly increases by 2 percent per year and moreover 50 new inhabitants per year come to live in the town. How many years does the town need to see its population greater or equal to p = 1200 inhabitants? At the end of the first year there will be: 1000 + 1000 * 0.02 + .. 2020. 4. 14.
[CodeWars] javascript - 6kyu - Sum of Digits / Digital Root 문제풀이 Title Sum of Digits / Digital Root Description In this kata, you must create a digital root function. A digital root is the recursive sum of all the digits in a number. Given n, take the sum of the digits of n. If that value has more than one digit, continue reducing in this way until a single-digit number is produced. This is only applicable to the natural numbers. Here's how it works: digital_.. 2020. 4. 12.