본문 바로가기

JavaScript554

[백준] 26529: Bunnies / Node.js (JavaScript) https://www.acmicpc.net/problem/26529 26529번: Bunnies You’re going to raise farm animals and you decided to start with bunnies, the easiest of animals. To your surprise they are breeding like rabbits, so much so that you’re unable to count them accurately. However, you know that rabbits’ breeding patter www.acmicpc.net 문제 You’re going to raise farm animals and you decided to start with bunnies, .. 2023. 4. 25.
[Codewars] Get number from string (8 kyu) / JavaScript https://www.codewars.com/kata/57a37f3cbb99449513000cd8 Codewars - Achieve mastery through coding practice and developer mentorship A coding practice website 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 which removes from string all non-digit characters and.. 2023. 4. 25.
[백준] 15841: Virus Outbreak / Node.js (JavaScript) https://www.acmicpc.net/problem/15841 15841번: Virus Outbreak For each input value, the output contains a line in the format: Hour X: Y cow(s) affected, where X is the hour, and Y is the total affected cows that need to be euthanized based on the hour given by X. www.acmicpc.net 문제 The State Veterinary Services Department recently reported an outbreak of a newly found cow disease. All cows found .. 2023. 4. 24.
[백준] 15663: N과 M (9) / Node.js (JavaScript) https://www.acmicpc.net/problem/15663 15663번: N과 M (9) 한 줄에 하나씩 문제의 조건을 만족하는 수열을 출력한다. 중복되는 수열을 여러 번 출력하면 안되며, 각 수열은 공백으로 구분해서 출력해야 한다. 수열은 사전 순으로 증가하는 순서로 출력해 www.acmicpc.net 문제 N개의 자연수와 자연수 M이 주어졌을 때, 아래 조건을 만족하는 길이가 M인 수열을 모두 구하는 프로그램을 작성하시오. N개의 자연수 중에서 M개를 고른 수열 입력 첫째 줄에 N과 M이 주어진다. (1 ≤ M ≤ N ≤ 8) 둘째 줄에 N개의 수가 주어진다. 입력으로 주어지는 수는 10,000보다 작거나 같은 자연수이다. 출력 한 줄에 하나씩 문제의 조건을 만족하는 수열을 출력한다. 중복되.. 2023. 4. 24.