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 4 of 22 Older Posts

Codeforces Round #757 Divan and bitwise operations Solution (Java/C++)

By xloypaypa in codeforces on 02 Dec 2021

Solution: We first consider how to construct an array A that matches the input.…

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

By xloypaypa in codeforces on 28 Nov 2021

A. Make Even Solution: Obviously, if there is no even number, -1 is output. If the last digit itself is an even number, 0 is output. If the first digit is an even number, 1 is output. Otherwise, output 2.…

Codeforces Round #756 Robot and Candies Solution (Java/C++)

By xloypaypa in codeforces on 28 Nov 2021

Solution: First of all, we can immediately find that for the grid (x, y), no matter how the robot moves, the parity of the grid x+y is always the same. So it is natural to solve for odd and even numbers separately.…

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.…

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