Problem Solving/CodeForces

Problem Solving/CodeForces

[Codeforces/코드포스] Educational Codeforces Round 135 (Div. 2) A - Colored Balls: Revisited

Problem - A - Codeforces codeforces.com 제일 많은 수의 공 제목 Colored Balls: Revisited 조건 time limit per test : 2 second memory limit per test : 256 megabytes input : standard input output : standard output 문제 The title is a reference to the very first Educational Round from our writers team, Educational Round 18. There is a bag, containing colored balls. There are n different colors of balls, numbered ..

Problem Solving/CodeForces

[Codeforces/코드포스] Codeforces Round #820 (Div. 3) D - Friends and the Restaurant

Problem - D - Codeforces codeforces.com two pointer 제목 Friends and the Restaurant 조건 time limit per test : 2 second memory limit per test : 256 megabytes input : standard input output : standard output 문제 A group of n friends decide to go to a restaurant. Each of the friends plans to order meals for xi burles and has a total of yi burles (1≤i≤n). The friends decide to split their visit to the re..

Problem Solving/CodeForces

[Codeforces/코드포스] Codeforces Round #820 (Div. 3) C - Jumping on Tiles

Problem - C - Codeforces codeforces.com 정렬 + 같은 문자가 존재할 때, 주의 제목 Jumping on Tiles 조건 time limit per test : 1 second memory limit per test : 256 megabytes input : standard input output : standard output 문제 Polycarp was given a row of tiles. Each tile contains one lowercase letter of the Latin alphabet. The entire sequence of tiles forms the string s. In other words, you are given a string s consi..

Problem Solving/CodeForces

[Codeforces/코드포스] Codeforces Round #820 (Div. 3) B - Decode String

Problem - B - Codeforces codeforces.com 뒤에서부터 제목 Decode String 조건 time limit per test : 1 second memory limit per test : 256 megabytes input : standard input output : standard output 문제 Polycarp has a string s consisting of lowercase Latin letters. He encodes it using the following algorithm. He goes through the letters of the string s from left to right and for each letter Polycarp considers it..

Problem Solving/CodeForces

[Codeforces/코드포스] Codeforces Round #820 (Div. 3) A - Two Elevators

Problem - A - Codeforces codeforces.com 제목 Two Elevators 조건 time limit per test : 1 second memory limit per test : 256 megabytes input : standard input output : standard output 문제 Vlad went into his appartment house entrance, now he is on the 1-th floor. He was going to call the elevator to go up to his apartment. There are only two elevators in his house. Vlad knows for sure that: the first ele..

Problem Solving/CodeForces

[Codeforces/코드포스] Codeforces Round #817 (Div. 4) E - Counting Rectangles

Problem - 1722E - Codeforces codeforces.com 이차원 누적합 제목 Counting Rectangles 조건 time limit per test : 6 second memory limit per test : 256 megabytes input : standard input output : standard output 문제 You have n rectangles, the i-th rectangle has height hi and width wi. You are asked q queries of the form hs ws hb wb. For each query output, the total area of rectangles you own that can fit a rectan..

Problem Solving/CodeForces

[Codeforces/코드포스] Codeforces Round #817 (Div. 4) D - Line

Problem - D - Codeforces codeforces.com 절반을 나눠서 왼쪽 부분에 있는 사람이 오른쪽을 보고 오른쪽 부분에 있는 사람이 왼쪽을 봐야 최대값을 가진다 제목 Line 조건 time limit per test : 2 second memory limit per test : 256 megabytes input : standard input output : standard output 문제 There are n people in a horizontal line, each looking either to the left or the right. Each person counts the number of people in the direction they are looking. The ..

Problem Solving/CodeForces

[Codeforces/코드포스] Codeforces Round #817 (Div. 4) C - Word Game

Problem - C - Codeforces codeforces.com map 제목 Word Game 조건 time limit per test : 1 second memory limit per test : 256 megabytes input : standard input output : standard output 문제 Three guys play a game: first, each person writes down n distinct words of length 3. Then, they total up the number of points as follows: if a word was written by one person — that person gets 3 points, if a word was w..

Problem Solving/CodeForces

[Codeforces/코드포스] Codeforces Round #817 (Div. 4) B - Colourblindness

Problem - B - Codeforces codeforces.com Green == Blue 제목 Colourblindness 조건 time limit per test : 1 second memory limit per test : 256 megabytes input : standard input output : standard output 문제 Vasya has a grid with 2 rows and n columns. He colours each cell red, green, or blue. Vasya is colourblind and can't distinguish green from blue. Determine if Vasya will consider the two rows of the gri..

Problem Solving/CodeForces

[Codeforces/코드포스] Codeforces Round #817 (Div. 4) A - Spell Check

Problem - A - Codeforces codeforces.com 방법 1. 'T', 'i', 'm', 'u', 'r' 외의 문자가 있는 지 확인하기 'T', 'i', 'm', 'u', 'r' 각각 1개씩 있는 지 확인하기 + 방법 2.입력 문자열을 정렬시켜 "Timru"와 같은 지 확인 아스키번호 T=84, i=105, m=109, u=117, r=114 제목 Spell Check 조건 time limit per test : 1 second memory limit per test : 256 megabytes input : standard input output : standard output 문제 Timur likes his name. As a spelling of his name, he allo..

Problem Solving/CodeForces

[Codeforces/코드포스] Codeforces Round #814 (Div. 2) B - Mathematical Circus

Problem - B - Codeforces codeforces.com 제목 Mathematical Circus 조건 time limit per test : 1 second memory limit per test : 256 megabytes input : standard input output : standard output 문제 A new entertainment has appeared in Buryatia — a mathematical circus! The magician shows two numbers to the audience — n and k, where n is even. Next, he takes all the integers from 1 to n, and splits them all in..

Problem Solving/CodeForces

[Codeforces/코드포스] Codeforces Round #814 (Div. 2) A - Chip Game

Problem - 1719A - Codeforces codeforces.com 제목 Chip Game 조건 time limit per test : 1 second memory limit per test : 256 megabytes input : standard input output : standard output 문제 Burenka and Tonya are playing an old Buryat game with a chip on a board of n×m cells. At the beginning of the game, the chip is located in the lower left corner of the board. In one move, the player can move the chip t..

JunHoChoi
'Problem Solving/CodeForces' 카테고리의 글 목록