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

xloypaypa

Twitter
Newer Posts Page 9 of 23 Older Posts

Codeforces Round #745 (Div. 2) Mathematics Curriculum Solution (Java/C++)

By xloypaypa in codeforces on 04 Oct 2021

Solution: First of all, we do not consider the condition that the number of good numbers is exactly equal to k, we first consider the characteristics of the good number itself.…

Codeforces Round #745 (Div. 2) Portal Solution (Java/C++)

By xloypaypa in codeforces on 04 Oct 2021

Solution: It is not difficult to find that when a=5 and b=4, only 16 steps are required even in the worst case.…

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

By xloypaypa in codeforces on 02 Oct 2021

A. Casimir's String Solitaire Solution: Obviously, Yes if and only if the sum of the number of letter A and letter C is equal to the number of letter B, otherwise No.…

Codeforces Round #744 Minimal Coverage Solution (Java/C++)

By xloypaypa in codeforces on 02 Oct 2021

Solution: First of all, let's think about the simplest way: Obviously, for every segment, there will be two possibilities of going to the left or right. Each possibility contains three pieces of information:…

Educational Codeforces Round 114 ABCD Solutions (Java/C++)

By xloypaypa in codeforces on 25 Sep 2021

A. Regular Bracket Sequences Solution: Taking n=5 as an example, we can write 1 solution at once: ()()()()(). Then we can write the following 4 solutions:(())()()()()()(())()()()()()(())()()()()()()(())…

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

By xloypaypa in codeforces on 21 Sep 2021

A. Countdown Solution: Obviously, we will replace every non-zero number with the ones digit and then subtract it.Therefore, in addition to the operation required for this number to be subtracted, a swap operation can be added. (Except for the ones digit itself)…

Educational Codeforces Round 113 ABCD Solutions (Java/C++)

By xloypaypa in codeforces on 16 Sep 2021

A. Balanced Substring Solution: Just need to find "ab" or "ba" in the string. Code: Java C++…

Codeforces Round #742 ABCDE Solutions (Java/C++)

By xloypaypa in codeforces on 12 Sep 2021

A. Domino Disaster Solution: Obviously, if the first row is LR or RL, then the second row only needs to be the same.…

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