Skip to content

wongsingfo/cf-master

Repository files navigation

Content History

2004: Educational Codeforces Round 169 (Rated for Div. 2)

Date: Aug/15/2024 Rank: 5441 Solved: 3 Rating change: -127 New rating: 1832

  • Problem F: Key technique: find a suffix and a prefix that are equal.
  • Problem G: Use segtree (may excceds the time limit), two-stack technique, prefix/suffix sum.

2002: EPIC Institute of Technology Round August 2024 (Div. 1 + Div. 2)

Date: Aug/11/2024 Rank: 1500 Solved: 4 Rating change: 0 New rating: 1934

  • Problem D: For a vaild DFS order, the parent of p[i+1] must be an ancestor of p[i].
  • Problem E: Consider an incremental solution. Only keep useful information with a stack.
  • Problem F: The prime gap is small: O(log n). Do a bfs search in a small corner (p,n) to (q,m).

1998: Codeforces Round 965 (Div. 2)

Date: Aug/10/2024 Rank: 1319 Solved: 3 Rating change: -38 New rating: 1934

  • Problem E: Build a Cartesian tree and do dp on it.

1993: Codeforces Round 963 (Div. 2)

Date: Aug/04/2024 Rank: 722 Solved: 3 Rating change: -6 New rating: 1972

  • Problem D: Key observation: i%k is the number of picked elements.
  • Problem E: For a fix row, the number of possible values is n+1. Use dp to select a path.
  • Problem F: Walking in a map with size of [w*2, h*2]. Use math to calc how many times it visits (0,0). A similar problem 982E.

1997: Educational Codeforces Round 168 (Rated for Div. 2)

Date: Jul/30/2024 Rank: 2351 Solved: 4 Rating change: -90 New rating: 1978

  • Problem E: For each monster, use binary search to find out what is the minimum k that the user will have to fight this monster.
  • Problem F: Knapsack counting.

1995: Codeforces Round 961 (Div. 2)

Date: Jul/23/2024 Rank: 69 Solved: 5 Rating change: +114 New rating: 2067

  • Problem E: Enumerate the min value and the max value. Use segment tree to fast check if the state is valid.

1990: Codeforces Round 960 (Div. 2)

Date: Jul/20/2024 Rank: 359 Solved: 4 Rating change: +49 New rating: 1953

  • Problem E: Each query removes sqrt N nodes. Then use sqrt N queries to move the Mole to the root.
  • Problem F: Key observation: number of possible ends is log N. Use segment tree.

1988: Codeforces Round 958 (Div. 2)

Date: Jul/15/2014 Rank: 2194 Solved: 3 Rating change: -81 New rating: 1903

Unsolved problems:

  • Problem D: The maximum number of round is limited to log2n.
  • [Problem E]: Use Cartesian tree to calculate the answer. What happens if one of the tree node gets removed?
  • Problem E: Count the contribution of each number to the final answer. A trick to find the second maximum next value.
  • Problem F: For each n, calculate sum i sum p sum q F(i, p) times G(n-i, q). Reduce the time from O(n4) to O(n3).

1983: Codeforces Round #956 (Div. 2) and ByteRace 2024

Date: Jul/07/2024 Rank: 131 Solved: 5 Rating change: +114 New rating: 1984

Unsolved problems:

  • Problem F: Binary search on the answer and check for each new right end if it can lead to a smaller xor value.
  • Problem G: Calculate each bit independently. Use the patterns (e.g. 00110011) to precompute the sum to the tree root.

1978: Codeforces Round 953 (Div. 2)

Date: Jun/16/2024 Rank: 340 Solved: 5 Rating change: +63 New rating: 1870

Unsolved problems:

  • Problem F: Use DSU to merge the nodes with the same factor.

1984: Codeforces Global Round 26

Date: Jun/09/2024 Rank: 2154 Solved: 4 Rating change: -31 New rating: 1807

Unsolved problems:

  • Problem D: Use the z-algorithm to check if the string is composed of several identical substrings.
  • Problem E: Tree DP. Need to enumerate which node is root.
  • Problem F: Enumerate the answer. Use a one-pass DP to check if the answer is valid.
  • Problem G: Sort the permutation by constructive solution.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages