Logo
  • Home
  • Codeforces
  • Software
  • Home Page in Chinese
  • @xloypaypa
  • Search
Menu
Author 181 Posts
xloypaypa

xloypaypa

Twitter
Newer Posts Page 3 of 23 Older Posts

Codeforces Round #765 ABC Solutions (Java/C++)

By xloypaypa in codeforces on 02 Feb 2022

A. Ancient Civilization Solution: Count the number of Xs where each bit is 1. If a bit has more than half of 1's, then y is 1 in that bit, otherwise it's 0.…

Codeforces Round #764 ABCDEFG Solutions (Java/C++)

By xloypaypa in codeforces on 25 Jan 2022

A. Plus One on the Subset Solution: Obviously, output the maximum value minus the minimum value. Code: Java C++…

Codeforces Round #764 Masha-forgetful Solution (Java/C++)

By xloypaypa in codeforces on 25 Jan 2022

Solution: Trie + DP。 First, any number greater than 3 can be represented as the sum of 2s and 3s. So we have each of our segments of length either 2 or 3.…

Codeforces Round #763 ABC Solutions (Java/C++)

By xloypaypa in codeforces on 15 Jan 2022

A. Robot Cleaner Solution: Just simulate the behavior of the robot according to the requirements of the problem. Code: Java C++…

Codeforces Round #762 (Div. 3) ABCDEFG Solutions (Java/C++)

By xloypaypa in codeforces on 11 Jan 2022

A. Square String? Solution: First, see whether the length of the string can be divisible by 2, and then verify whether the first half and the second half are the same.…

Codeforces Round #761 ABCD solutions (Java/C++)

By xloypaypa in codeforces on 06 Jan 2022

A. Forbidden Subsequence Solution: You can sort the strings directly, that is, you can directly output the string in the form of aaaabbbbccccdefg.…

Codeforces Round #760 ABCDEFG Solutions (Java/C++)

By xloypaypa in codeforces on 29 Dec 2021

A. Polycarp and Sums of Subsequences Solution: We assume a[1]<a[2]<a[3]. So naturally b[7]=a[1]+a[2]+a[3], b[6]=a[2]+a[3], b[5]=a[1]+a[3].…

Codeforces Round #760 Trader Problem Solution (Java/C++)

By xloypaypa in codeforces on 28 Dec 2021

Solution: First, we can directly consider all items together. Let's consider the following example (I modified it a little bit based on the sample data):…

Newer Posts Page 3 of 23 Older Posts
xloypaypa's Blog © 2025 Published with Ghost • Theme Attila • System theme
DigitalOcean Referral Badge 蜀ICP备19018968号