原创 Codeforces Round #648 (Div. 2) E. Maximum Subsequence Value

Codeforces Round #648 (Div. 2) E. Maximum Subsequence Value 題目鏈接 Ridhiman challenged Ashish to find the maximum val

原创 AtCoder Beginner Contest 170 D. Not Divisible

AtCoder Beginner Contest 170 D. Not Divisible 題目鏈接 寥寥數字,我看了半天都沒看懂😂 後來發現是日譯音的問題,真的是無力吐槽😂 題意就是找數組中的一個數 aia_iai​,數組中除

原创 AtCoder Beginner Contest 170 E. Smart Infants

AtCoder Beginner Contest 170 E. Smart Infants 考了一個高級數據結構~ 正好今天學了 multisetmultisetmultiset,所有的操作都是 O(logn),這題能夠完美解決

原创 Codeforces Round #645 (Div. 2) D. The Best Vacation

Codeforces Round #645 (Div. 2) D. The Best Vacation 題目鏈接 You’ve been in love with Coronavirus-chan for a long time,

原创 Educational Codeforces Round 87 (Rated for Div. 2) C2.Not So Simple Polygon Embedding

Educational Codeforces Round 87 (Rated for Div. 2) C2.Not So Simple Polygon Embedding 題目鏈接 The statement of this pr

原创 Codeforces Round #646 (Div. 2) B. Subsequence Hate

Codeforces Round #646 (Div. 2) B. Subsequence Hate 題目鏈接 Shubham has a binary string s. A binary string is a string

原创 Codeforces Round #598 (Div. 3) B.Minimize the Permutation

Codeforces Round #598 (Div. 3) B.Minimize the Permutation 題目鏈接 You are given a permutation of length n. Recall that

原创 Codeforces Round #611 (Div. 3) C.Friends and Gifts

Codeforces Round #611 (Div. 3) C.Friends and Gifts 題目鏈接 There are n friends who want to give gifts for the New Year

原创 Codeforces Round #579 (Div. 3) E.Boxers

Codeforces Round #579 (Div. 3) E.Boxers 題目鏈接 There are n boxers, the weight of the i-th boxer is ai. Each of them c

原创 Tokio Marine & Nichido Fire Insurance Programming Contest 2020 C.Lamps

Tokio Marine & Nichido Fire Insurance Programming Contest 2020 C.Lamps 題目鏈接 對一次操作,用差分很容易解決~ 題目的難點在於要想到 kkk 在一個小值附近

原创 第三屆中國計量大學ACM程序設計競賽個人賽(同步賽)A.Arithmetic Problems

第三屆中國計量大學ACM程序設計競賽個人賽(同步賽)A.Arithmetic Problems 題目鏈接 題目描述 During this winter vacation, Little Gyro went for a journ

原创 AtCoder Beginner Contest 169 E.Count Median

AtCoder Beginner Contest 169 E.Count Median 題目鏈接 思維題~ 可取的情況其實就是 A[i]A[i]A[i] 的中位數 m1m_1m1​ 到 B[i]B[i]B[i] 的中位數的數 m

原创 AtCoder Beginner Contest 169 D.Div Game

AtCoder Beginner Contest 169 D.Div Game 題目鏈接 數論題,既然題目要找的能被 nnn 整除的數都是素數的冪次方,那麼我們就對每一個素數及其冪次方,找所有能被 nnn 整除的即可,但是對一個

原创 東華大學2020年程序設計競賽(同步賽)C.City Supplies

東華大學2020年程序設計競賽(同步賽)C.City Supplies 題目鏈接 題目描述 YZ is the king of the kingdom. There are n cities in his kingdom. To

原创 Codeforces Round #648 (Div. 2) C. Rotation Matching

Codeforces Round #648 (Div. 2) C. Rotation Matching 題目鏈接 After the mysterious disappearance of Ashish, his two favo