Wedding Ceremony

Problem Hyun-soo is getting married next month. Hyun-soo rents a place for the wedding reception and plans to hold it for three days without a break. Hyeon-soo requested information about the time of N friends attending the reception in advance. Each friend told Hyeon-soo what time he would arrive…

Read More

Coordinate Alignment

Problem Given N coordinates on a plane (x, y), write a program that sorts all coordinates in ascending order. The sort criterion is first sorted by the x value, and if the x value is the same, it is sorted by the y value. input The first line is given the number of coordinates N (3<=N<=100,00…

Read More

Naughty Hyeonsu

Problem A new semester has begun. Hyunsoo was so excited to meet his new mate. There are N students in Hyunsoo’s class. In order to assign class numbers to the class, the teacher placed the class in a row on the playground, starting with the tallest student. Class numbers are numbered from 1 to N…

Read More

Least Recently Used

Problem Cache memory is a high-speed temporary memory between the CPU and main memory (DRAM). It is very expensive and has a small capacity, so it must be used efficiently. The cache memory usage rules of the computer of the withdrawal follow the LRU algorithm. LRU algorithm is an abbreviation of…

Read More

Insertion Sort

Problem Write a program that sorts in ascending order when N numbers are input and outputs them. The sorting method is insertion sort. input The first line is given a natural number N (1<=N<=100). In the second line, N natural numbers are entered with a space between them. Each natural number is in…

Read More
Page 5 Of 26