본문 바로가기

Problem Solving43

Codeforces Round #782 div2 Dashboard - Codeforces Round #782 (Div. 2) - Codeforces codeforces.com A. Red Versus Blue Problem - A - Codeforces codeforces.com 'R'과 'B'의 개수가 주어진다. \( cnt_R > cnt_B \) 이다. 연이어 나오는 문자의 최대 개수가 가장 작은 문자열을 만들어라. ( 예를 들어 \( cnt_R = 2 \), \( cnt_B = 1 \)이라고 할 때, "RRB"는 연이어 나오는 문자의 최대 개수는 2, "RBR"은 1이다 ) \( cnt_R > cnt_B \) 이므로 'B' 하나하나의 왼쪽 오른쪽에 'R'을 넣는 것이 유리할 것이다. ( R...R 'B' R...R 'B' R...R 이러한 방식으.. 2022. 4. 18.
Educational Codeforces Round #126 Dashboard - Educational Codeforces Round 126 (Rated for Div. 2) - Codeforces codeforces.com 어렵다 어렵다 어렵다. 이 또한 쉬워지리라. A. Array Balancing Problem - A - Codeforces codeforces.com \( a_1, a_2, ..., a_n \)과 \( b_1, b_2, ..., b_n \)이 주어진다. 다음과 같은 operation이 몇 번이든 가능하다. - index \( i \) ( \( 1 \leq i \leq n \) ) 을 선택해서 \( a_i \)와 \( b_i \)를 스왑할 수 있다. \( \sum_{i=1}^{n - 1} ( | a_i - a_{i + 1} | + | b_i -.. 2022. 4. 12.
AtCoder Beginner Contest #247 Tasks - AtCoder Beginner Contest 247 AtCoder is a programming contest site for anyone from beginners to experts. We hold weekly programming contests online. atcoder.jp A. Move Right A - Move Right AtCoder is a programming contest site for anyone from beginners to experts. We hold weekly programming contests online. atcoder.jp 0과 1로만 되어있는 길이 4의 문자열이 주어진다. 오른쪽으로 한 칸 움직였을 때의 문자열을 구하여라 4칸을 벗어나는 경우 사.. 2022. 4. 12.
AtCoder Regular Contest #138 Daiwa Securities Co. Ltd. Programming Contest 2022 Spring(AtCoder Regular Contest 138) - AtCoder AtCoder is a programming contest site for anyone from beginners to experts. We hold weekly programming contests online. atcoder.jp ARC라 그런지 참 어렵다. A. Larger Score A - Larger Score AtCoder is a programming contest site for anyone from beginners to experts. We hold weekly programming contests online. a.. 2022. 4. 11.