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

xloypaypa

Twitter
Newer Posts Page 6 of 23 Older Posts

Codeforces Round #752 (Div. 2) ABCDE Solutions (Java/C++)

By xloypaypa in codeforces on 07 Nov 2021

A. Era Solution: Just simulation. When we find a certain a[i]>i+ ans, insert the number of a[i]-(i+ ans). Code: Java C++…

Codeforces Round #752 Extreme Extension Solution (Java/C++)

By xloypaypa in codeforces on 07 Nov 2021

Solution: Obviously, we don't need to consider the operation sequence. Therefore, we directly consider how to perform several operations on a certain number.…

Codeforces Round #753 ABCDEFGH Solutions (Java/C++)

By xloypaypa in codeforces on 05 Nov 2021

A. Linear Keyboard Solution: Just simulate according to the question. Code: Java C++…

Codeforces Round #753 Banquet Preparations 2 Solution (Java/C++)

By xloypaypa in codeforces on 05 Nov 2021

Solution: Obviously, if two dishes are the same, then the total weight of the two dishes must also be the same. According to the previous question, we know that we can calculate the value range of the last remaining a.…

Codeforces Round #753 Banquet Preparations 1 Solution (Java/C++)

By xloypaypa in codeforces on 05 Nov 2021

Solution: We represent the total remain weight of each dish by $remain_i$, which obviously has $remain_i=a_i+b_i-m$.…

Codeforces Round #753 Robot on the Board 2 Solution (Java/C++)

By xloypaypa in codeforces on 05 Nov 2021

Solution: Obviously it is a memory search. Obviously, the maximum distance that the current point can travel = the maximum distance of the next point+1.…

Educational Codeforces Round 116 ABCE Solutions (Java/C++)

By xloypaypa in codeforces on 02 Nov 2021

A. AB Balance Solution: Obviously, if the beginning and ending letters are the same letter, AB(s) must be equal to BA(s). Code: Java C++…

Educational Codeforces Round 116 Arena Solution (Java/C++)

By xloypaypa in codeforces on 02 Nov 2021

Solution: Based on the size of the data, we can almost infer that the final complexity should be $n\cdot x$.…

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