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

codeforces

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

Codeforces Round #763 ABC Solutions (Java/C++)

By xloypaypa in codeforces on 15 Jan 2022

A. Robot Cleaner Solution: Just simulate the behavior of the robot according to the requirements of the problem. Code: Java C++…

Codeforces Round #762 (Div. 3) ABCDEFG Solutions (Java/C++)

By xloypaypa in codeforces on 11 Jan 2022

A. Square String? Solution: First, see whether the length of the string can be divisible by 2, and then verify whether the first half and the second half are the same.…

Codeforces Round #761 ABCD solutions (Java/C++)

By xloypaypa in codeforces on 06 Jan 2022

A. Forbidden Subsequence Solution: You can sort the strings directly, that is, you can directly output the string in the form of aaaabbbbccccdefg.…

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

By xloypaypa in codeforces on 29 Dec 2021

A. Polycarp and Sums of Subsequences Solution: We assume a[1]

Codeforces Round #760 Trader Problem Solution (Java/C++)

By xloypaypa in codeforces on 28 Dec 2021

Solution: First, we can directly consider all items together. Let's consider the following example (I modified it a little bit based on the sample data):…

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

By xloypaypa in codeforces on 19 Dec 2021

A. Life of a Flower Solution: Just simulate according to the description of the problem. Code: Java C++…

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

By xloypaypa in codeforces on 16 Dec 2021

A. Find Array Solution: Obviously, when x>0, x cannot be divisible by x+1. Therefore, we can set a[i]=a[i-1]+1. Code: Java C++…

Codeforces Round #758 Dominoes Solution (Java/C++)

By xloypaypa in codeforces on 15 Dec 2021

Solution: First of all, we need to notice that after the domino is painted, there are actually only 4 states: BW, WB, WW, BB.…

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