[GDOI2008] color ball game

General idea of the topic given n ∗ m n*m The start state and target state of n * m. The state contains only three characters R, B and G. two operations are given, respectively: 1. Select one ...

Posted by trixiesirisheyes on Mon, 24 Jan 2022 19:41:56 +0100

UVA120 Stacks of Flapjacks pancakes

Thematic translation Here is a stack of pancakes. Please write a program to indicate how to arrange these pancakes from top to bottom according to the radius of the pancakes from small to large. All pancakes have different radii. To put the pancakes in order, you need to flip the pancakes. The method is to insert a spatula into a stack of pan ...

Posted by karlitosphere on Mon, 24 Jan 2022 18:34:37 +0100

[C language] judge and output prime numbers (Trial Division)

This is a programming topic I like very much. Don't underestimate this problem. It seems simple, but it's actually mysterious. Since this is an introduction to C language, it only introduces the simplest and easiest way to think of: trial division. But even the trial division has changed a lot. To understand trial division, you must first know ...

Posted by skroks609 on Mon, 24 Jan 2022 18:09:28 +0100

Hash table and record of line points -- Calculation of the maximum number of points on the line

subject oj platform Topic analysis There are two ways to solve this problem, but without exception, hash tables are needed. The first solution is to record the slope and intercept of the line. Specific steps: Write a function for calculating the slope and intercept between any two points, and the return value is a binary.Enumerate t ...

Posted by hame22 on Mon, 24 Jan 2022 18:07:23 +0100

[daily force deduction 29] symmetric binary tree

1, Title [LeetCode-101] Give you the root node of a binary tree, root, and check whether it is axisymmetric. Example 1: Input: root = [1,2,2,3,4,4,3] Output: true Example 2:   Input: root = [1,2,2,null,3,null,3] Output: false Tips: The number of nodes in the tree is in the range [1, 1000]-100 <= Node.val <= 100 A ...

Posted by K3nnnn on Mon, 24 Jan 2022 17:38:31 +0100

[NOI2008] volunteer recruitment (cost stream)

[NOI2008] volunteer recruitment (cost stream) Title Description After his successful bid for the Olympic Games, Bubu finally became the director of the human resources department of the company subordinate to the Olympic Organizing Committee. As soon as Bubu took office, he encountered a problem: recruit a group of short-term volunteers for t ...

Posted by apaxson on Mon, 24 Jan 2022 14:18:04 +0100

Data structure - simple sorting

1, Simple sort 1.1 introduction to comparable interface Since we are going to talk about sorting here, we will certainly compare between elements, and Java provides an interface, Comparable, which is used to define sorting Rules. Here we briefly review the Comparable interface in the form of a case. Requirements: 1. Define a Student class ...

Posted by $SuperString on Mon, 24 Jan 2022 14:10:54 +0100

One question per day (the seventh programming question in the second provincial competition of group B of C / C + + in 2020)

Here is the title of the blue bridge cup over the years. Welcome to pay attention to me [problem description] During the Spring Festival in 2020, a special date has attracted everyone's attention: February 2, 2020. Because if this date is written in the format of "yyyymmdd", it is 20200202, which is exactly a palindrome number. We ...

Posted by adamriley on Mon, 24 Jan 2022 12:07:42 +0100

10_ Visual odometer 1_ Triangulation

preface Through the introduction in the previous section, we can calculate the camera motion, but we don't know the specific position of feature points in space. In monocular SLAM, we cannot obtain the depth information of pixels only by relying on a single image. We need to estimate the depth of map points by triangulation. Triangulation Tr ...

Posted by ChrisMayhew on Mon, 24 Jan 2022 09:35:09 +0100

Codeforces Round #767 (Div. 2) ABCD problem solving

A. Download More RAM Idea: sign reach topic Check in question Check in question Press mirror a from ...

Posted by screamer141 on Mon, 24 Jan 2022 08:43:52 +0100