Problem Solving/Baekjoon1339 [백준] 15001 Frog Leaps - Greedy / Java • 문제 링크 15001번: Frog Leaps It is a little known secret that frogs also like to participate in the BAPC. However, to reach Amsterdam they will need to cross lots of rivers. Fortunately, the frog is in good condition and can jump as far as he wants to go. However, jumping a distance o www.acmicpc.net • 풀이 코드 import java.io.BufferedWriter; import java.io.IOException; import java.io.OutputStreamWrit.. 2024. 4. 12. [백준] 27106 Making Change - Greedy / Java • 문제 링크 27106번: Making Change Given the amount of a purchase (1 ≤ P ≤ 99) in cents, determine the way to make "change for a dollar" for that purchase. Use four standard US coin denominations: 1, 5, 10, and 25. The way to make change uses the least number coins. www.acmicpc.net • 풀이 코드 import java.io.BufferedWriter; import java.io.IOException; import java.io.OutputStreamWriter; public class Main .. 2024. 4. 11. [백준] 3578 Holes - Greedy / Java • 문제 링크 3578번: Holes You may have seen a mechanic typewriter — such devices were widespread just 15 years ago, before computers replaced them. It is a very simple thing. You strike a key on the typewriter keyboard, the corresponding type bar rises, and the metallic letter mo www.acmicpc.net • 풀이 코드 import java.io.BufferedWriter; import java.io.IOException; import java.io.OutputStreamWriter; publ.. 2024. 4. 10. [백준] 5992 The Leisurely Stroll - Graph Theory / Java • 문제 링크 2024. 4. 9. [백준] 9790 Elephant Show - Graph Theory / Java • 문제 링크 9790번: Elephant Show There are a lot of elephants in Chiang Mai and many elephant camps can be seen around this city. Elephant camps are among the most popular attractions in Chiang Mai, but Khun-LungKen Elephant Farm is very different from the others. At Khun-Lung-Ken Elephan www.acmicpc.net • 풀이 코드 import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException.. 2024. 4. 8. [백준] 5975 Pathfinding - Graph Theory / Java • 문제 링크 5975번: Pathfinding Bessie is stranded on a deserted arctic island and wants to determine all the paths she might take to return to her pasture. She has tested her boat and knows she can travel from one island to another island in 1 unit of time if a route with proper current www.acmicpc.net • 풀이 코드 import java.io.BufferedWriter; import java.io.IOException; import java.io.OutputStreamWrit.. 2024. 4. 7. 이전 1 ··· 102 103 104 105 106 107 108 ··· 224 다음