본문 바로가기

JavaScript554

[백준] 2750: 수 정렬하기 / Node.js (JavaScript) https://www.acmicpc.net/problem/2750 2750번: 수 정렬하기 첫째 줄에 수의 개수 N(1 ≤ N ≤ 1,000)이 주어진다. 둘째 줄부터 N개의 줄에는 수 주어진다. 이 수는 절댓값이 1,000보다 작거나 같은 정수이다. 수는 중복되지 않는다. www.acmicpc.net 문제 N개의 수가 주어졌을 때, 이를 오름차순으로 정렬하는 프로그램을 작성하시오. 입력 첫째 줄에 수의 개수 N(1 ≤ N ≤ 1,000)이 주어진다. 둘째 줄부터 N개의 줄에는 수 주어진다. 이 수는 절댓값이 1,000보다 작거나 같은 정수이다. 수는 중복되지 않는다. 출력 첫째 줄부터 N개의 줄에 오름차순으로 정렬한 결과를 한 줄에 하나씩 출력한다. 예제 입력 1 5 5 2 3 4 1 예제 출력 1 1.. 2022. 10. 25.
[Codewars] How good are you really? (8 kyu) / JavaScript https://www.codewars.com/kata/5601409514fc93442500010b 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: There was a test in your class and you passed it. Congratulations! But you're an .. 2022. 10. 25.
[백준] 5337: 웰컴 / Node.js (JavaScript) https://www.acmicpc.net/problem/5337 5337번: 웰컴 Welcome을 예제 출력처럼 출력하는 프로그램을 작성하시오. www.acmicpc.net 문제 Welcome을 예제 출력처럼 출력하는 프로그램을 작성하시오. 출력 Welcome을 아래 예제 출력처럼 출력한다. 예제 출력 1 . . . | | _ | _. _ ._ _ _ |/\|(/.|(_.(_)[ | )(/. 풀이 템플릿 리터럴을 이용해서 풀었다. \를 표시하려면 앞에 \을 붙여주어야 한다. 코드 console.log(`. . . | | _ | _. _ ._ _ _ |/\\|(/.|(_.(_)[ | )(/.`); 참고 https://developer.mozilla.org/ko/docs/Web/JavaScript/Refe.. 2022. 10. 24.
[Codewars] Beginner Series #2 Clock (8 kyu) / JavaScript https://www.codewars.com/kata/55f9bca8ecaa9eac7100004a 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: Clock shows h hours, m minutes and s seconds after midnight. Your task is to writ.. 2022. 10. 24.