2022LDU winter vacation training - patch

Patch Problem description There are always errors in a program. The company often releases patches to correct these errors. Unfortunately, when correcting some errors with each patch, some errors will be added at the same time. Each patch has a certain running time. A company published a game with n errors B={b1,b2,b3,..., bn}, so the comp ...

Added by MishaPappa on Sat, 08 Jan 2022 12:25:07 +0200

Tree array: 1D + 2D

Some content sources: bestsort blog Recommended blog: CSDN: Nangong Yichen - thoroughly understand the two-dimensional tree array CSDN: Lv1_kangdi - 2D tree array summary and template The one-dimensional tree array sum[x] records the prefix and length of lowbit(x) from 1 to X The two-dimensional tree array sum [x] [y] records the sum of area ...

Added by BooRadLey on Tue, 04 Jan 2022 06:41:27 +0200

CF762 (div3) A~G (H to be supplemented)

First of all, there was no interesting thinking problem after the fight. Instead, it was mainly simulated code farming problem, which was very annoying (referring to being a code farmer in the middle of the night)...... A. Square String? (violence) Judge parity and compare violence #include <bits/stdc++.h> #define ll long long #defin ...

Added by smti on Sun, 26 Dec 2021 11:09:34 +0200

Byte 8.29 written test replay (in question recall)

Byte 8.29 written test replay (in question recall) Question 1 natural numbers a and b Simple topic meaning Give the number a and B, and then give a number + 1 in the first round, a number + 2 in the second round, and a number + i in the i round. You can choose which number to add in each round. Ask you to become the same minimum number of ro ...

Added by gwolff2005 on Sun, 19 Dec 2021 15:49:49 +0200

Educational codeforces round 113 C. July meeting

https://codeforces.com/contest/1569/problem/C Meaning: n numbers. Every time it passes through a number, it will be - 1. If no number is continuously reduced twice when all numbers are reduced, such a sequence is called a good sequence. Find the number of all good sequences. The answer is mod998244353 Solution: We can find that no matter wh ...

Added by EdN on Thu, 09 Sep 2021 23:02:19 +0300