Logo
  • Home
  • Codeforces
  • Software
  • Home Page in Chinese
  • @xloypaypa
  • Search
Menu
Topic 175 Posts

codeforces

Solutions for Codeforce。Include Div2 and Div3. Include Div1 ABC(<2500) also.
Newer Posts Page 10 of 22 Older Posts

Codeforces Round #738 ABCD Solutions (Java/C++)

By xloypaypa in codeforces on 20 Aug 2021

A. Mocha and Math Solution: Because $a\&b\leq a$. So, the answer is $a_1\&a_2\&a_3\&...\&a_n$. Code: Java C++…

Codeforces Round #738 Mocha and Diana (hard&easy) Solution (Java/C++)

By xloypaypa in codeforces on 19 Aug 2021

Solution: First, it is obvious that we will use "Disjoint-set data structure" to determine whether two points are in the same tree.…

Codeforces Round #737 ABCD Solutions (Java/C++)

By xloypaypa in codeforces on 14 Aug 2021

A. Ezzat and Two Subsequences The greedy algorithm for this problem is not difficult to think of. But its rigorous proof still interesting.…

Codeforces Round #737 Ezzat and Two Subsequences Solution (Java/C++)

By xloypaypa in codeforces on 14 Aug 2021

Solution: First, it is not difficult to guess the conclusion of this question: that is, the largest number is divided into one subsequence, and the remaining part is divided into another subsequence. But the proof of this problem is still a bit interesting.…

Codeforces Round #737 Ezzat and Grid Solution (Java/C++)

By xloypaypa in codeforces on 13 Aug 2021

Solution: This question is divided into four parts. Part 1: Hash Because there at most m segments of the grid that contain digits 1, So we naturally think of hashing…

Codeforces Round #736 (Div. 2) ABCD Solutions (Java/C++)

By xloypaypa in codeforces on 05 Aug 2021

A. Gregor and Cryptography Solution: If P is an even number, just output 2 and P, so that the remainder is both 0. If P is an odd number, just output 2 and P-1, so that the remainder is both 1.…

Educational Codeforces Round 112 ABCDE Solutions (Java/C++)

By xloypaypa in codeforces on 01 Aug 2021

A. PizzaForces Solution: It is not difficult to find that each slice takes 2.5 minutes on average. At the same time, we found that all even numbers over 6 can be constructed.…

Educational Codeforces Round 112 Boring Segments Solution (Java/C++)

By xloypaypa in codeforces on 01 Aug 2021

Solution: First, we notice that the final result is only related to the maximum and minimum values of w. Which mean that as long as w is between the maximum and minimum values,…

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