Cpp 썸네일형 리스트형 [Algorithm] Birthday Cake Candles 안녕하세요. Bot - binoo 입니다. > Hi, I am Bot-binoo. 이번에 풀어볼 문제는 Birthday Cake Candles 입니다. > The problem to solve this time is Birthday Cake Candles. > Header : copyrighted by Bot-binoo. > Post. > Quest.Colleen is turning years old! Therefore, she has candles of various heights on her cake, and candle has height . Because the taller candles tower over the shorter ones, Colleen can only blow out the ta.. 더보기 [Algorithm] Connecting Towns > Quest.Gandalf is travelling from Rohan to Rivendell to meet Frodo but there is no direct route from Rohan (T1) to Rivendell (Tn).But there are towns T2,T3,T4...Tn-1 such that there are N1 routes from Town T1 to T2, and in general, Ni routes from Ti to Ti+1 for i=1 to n-1 and 0 routes for any other Ti to Tj for j ≠ i+1Find the total number of routes Gandalf can take to reach Rivendell from Roha.. 더보기 [Algorithm] Handshake / 악수 > Quest.At the annual meeting of Board of Directors of Acme Inc, every one starts shaking hands with everyone else in the room. Given the fact that any two persons shake hand exactly once, Can you tell the total count of handshakes? > Input.Input Format The first line contains the number of test cases T, T lines follow. Each line then contains an integer N, the total number of Board of Directors.. 더보기 [Algorithm] Divisible Sum Pairs > Quest.You are given an array of integers, , and a positive integer, . Find and print the number of pairs where and + is evenly divisible by . > Input.Input Format The first line contains space-separated integers, and , respectively. The second line contains space-separated integers describing the respective values of . > Output.Output Format Print the number of pairs where and + is evenly divi.. 더보기 [Algorithm] 캥거루 두 마리 > Quest.There are two kangaroos on an x-axis ready to jump in the positive direction (i.e, toward positive infinity). The first kangaroo starts at location and moves at a rate of meters per jump. The second kangaroo starts at location and moves at a rate of meters per jump. Given the starting locations and movement rates for each kangaroo, can you determine if they'll ever land at the same locat.. 더보기 [Algorithm] 사과나무와 오렌지나무 > Quest.Sam's house has an apple tree and an orange tree that yield an abundance of fruit. In the diagram below, the red region denotes his house, where is the start point and is the end point. The apple tree is to the left of his house, and the orange tree is to its right. You can assume the trees are located on a single point, where the apple tree is at point and the orange tree is at point . .. 더보기 [Algorithm] Angry Professor > Quest.A Discrete Mathematics professor has a class of students. Frustrated with their lack of discipline, he decides to cancel class if fewer than students are present when class starts. Given the arrival time of each student, determine if the class is canceled. > Input.Input Format The first line of input contains , the number of test cases. Each test case consists of two lines. The first lin.. 더보기 [CPP] Generics 안녕하세요. Bot - binoo 입니다.오늘은 [CPP] Generics와 관련된 주제로 간단하게 정리 해볼까 합니다. Generics : 포괄적인, 총칭의 (네이버 사전)Generics 를 쉽게 말씀드리자면, 어떤 것이 와도 좋다! 입니다. CPP에서 Generics 는 Template 로 많이 쓰입니다.Java에서는 T 혹은 ? 로 구현되는 부분이기도 합니다. List 가 하나 있다고 합시다.List A; List Aindex Value Format -- - 처음 생성시에는 이 리스트에 어떤 값(정확히는 물린 인덱스)도 없습니다.// A 리스트에 하나의 개체를 넣는다. A.push_back( 20 ); List AindexValueFormat020Integer -- - 첫 데이터는 숫자가 입력되었습.. 더보기 이전 1 2 다음