Count Peaks

Problem Map information is given on an N*N grid. Each grid is marked with the height of that area. The number on each grid that is greater than its top, bottom, left, and right numbers is the peak area. Write a program to find out how many peak regions there are. It is assumed that the edges of the…

Read More

Why is setTimeout(fn, 0) sometimes useful?

setTimeout(callback, time) is a JavaScript method you have to carefully use because it directly affects the browser or visible performance. Fundamentally, what does method stand for? from MDN, The method of the mixin sets a timer which executes a function or specified piece of code once the…

Read More

Max Grid Sum

Problem Numbers are written on the 5*5 grid as shown below. Given a grid of N*N, output the largest of the sum of each row, the sum of each column, and the sum of the two diagonals. input A natural number N is given in the first line (1<=N<=50). From the second line to the N lines, each line is…

Read More

Ranking

Problem Write a program that outputs each student’s rank in the order in which they are entered when the Korean language scores of N (1<=N<=100) students are entered. input N (3<=N<=1000) is input in the first line, and N integers representing the Korean score are input in the second line. If the…

Read More

Counting Score

Problem An OX problem is a problem that has two possible answers: right or wrong. In the case of consecutive correct answers in a test made of multiple OX questions, it was decided to calculate the score as follows to give additional points. If the first question is correct, it is counted as 1 point…

Read More
Page 12 Of 26