본문 바로가기

Problem Solving1237

[백준] 10657 Cow Jog - Data Structure / Java • 문제 링크 10657번: Cow Jog The cows are out exercising their hooves again! There are N cows jogging on an infinitely-long single-lane track (1 speed) stk.pop(); stk.push(speed); } bw.write(String.valueOf(stk.size())); bw.flush(); } } 2023. 6. 30.
[백준] 10527 Judging Troubles - Data Structure / Java • 문제 링크 10527번: Judging Troubles The NWERC organisers have decided that they want to improve the automatic grading of the submissions for the contest, so they now use two systems: DOMjudge and Kattis. Each submission is judged by both systems and the grading results are compared to make s www.acmicpc.net • 풀이 과정 • 풀이 코드 import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.. 2023. 6. 29.
[백준] 15233 Final Score - Data Structure / Java • 문제 링크 15233번: Final Score We have had a problem with one of our hard disks and we lost the final score of some football matches. However, we have been able to recover the names of the players that scored and found the members of each team on Wikipedia. www.acmicpc.net • 풀이 과정 • 풀이 코드 import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputS.. 2023. 6. 28.
[백준] 13915 Hot Air Ballooning - Data Structure / Java • 문제 링크 13915번: Hot Air Ballooning Dave is the director of the Summer school of hot air ballooning. Being a responsible director, he keeps a list of flights of each trainee in the school. After each flight, Dave appends a note to the lists of flights of each trainee participating in that pa www.acmicpc.net • 풀이 과정 • 풀이 코드 import java.io.BufferedReader; import java.io.BufferedWriter; import java... 2023. 6. 27.
[백준] 5957 Cleaning the Dishes - Data Structure / Java • 문제 링크 5957번: Cleaning the Dishes Bessie and Canmuu are teaming up to wash the massive pile of N (1 0) washed.push(unwashed.pop()); else while (d-- > 0) dried.push(washed.pop()); } StringBuilder sb = new StringBuilder(); while (!dried.empty()) sb.append(dried.pop()).append("\n"); bw.write(sb.toString()); bw.flush(); } } 2023. 6. 26.
[백준] 4921 나무 블록 - Data Structure / Java • 문제 링크 4921번: 나무 블록 입력은 여러 개의 테스트 케이스로 이루어져 있다. 각 테스트 케이스는 한 줄에 하나씩 주어진다. 각 조각은 문제의 그림에 나와있는 숫자로 주어진다. 숫자는 공백없이 주어진다. 적어도 1개의 www.acmicpc.net • 풀이 과정 • 풀이 코드 import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.HashMap; import java.util.Map; public class Main { static Map m.. 2023. 6. 25.