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

xloypaypa

Twitter
Newer Posts Page 5 of 23 Older Posts

Educational Codeforces Round 117 X-Magic Pair Solution (Java/C++)

By xloypaypa in codeforces on 26 Nov 2021

Solution: We assume that a<b, let's observe various possible operations: According to the above picture, we find that when 0<a<b-2a, a will never be replaced,…

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

By xloypaypa in codeforces on 20 Nov 2021

A. Mathematical Addition Solution: Obviously, when $x=u^2,\ y=-v^2$, the conditions are met. Code: Java C++…

Codeforces Round #755 (Div. 2) Game with Stones Solution (Java/C++)

By xloypaypa in codeforces on 20 Nov 2021

Solution: First of all, we noticed that for the first pile of stones, it must be operated with the second pile of stones. And when the first pile of stones is taken to empty...…

Codeforces Round #755 (Div. 2) Guess the Permutation Solution (Java/C++)

By xloypaypa in codeforces on 19 Nov 2021

Solution: We consider the image of querying [x, n]. In other words, as x changes, the changes of the result of query (? x n) .…

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

By xloypaypa in codeforces on 16 Nov 2021

A. A.M. Deviation Solution: Obviously it is meaningless to adjust $a_1$ and $a_3$. So it is not difficult to find that the effect of each operation on the result is 3.…

Codeforces Round #754 Treelabeling Solution (Java/C++)

By xloypaypa in codeforces on 16 Nov 2021

Solution: We first consider when $u\oplus v> \min(u,v)$. It is not difficult to find that $u\oplus v> \min(u,v)$ if and only if one of the highest bits of u and v is 0 and the other is 1. Take the following picture as an example:…

Codeforces Round #754 Array Equalizer Solution (Java/C++)

By xloypaypa in codeforces on 15 Nov 2021

Solution: First of all, we can naturally notice that i=1 will directly affect all numbers, and the final result will only be affected by b[1]-a[1].…

Full-stack developer and their economic principles

By xloypaypa in software on 13 Nov 2021

Recently, forced to make a living, re-study the principles of economics, just to review the comparative advantages, so I combined my own job and wrote such a thing similar to a small exercise after class.…

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