2022 Blue Bridge Cup C + + group B, problem solving record

Multiple choice questions omitted This problem solution is a record of on-site problem solution, which cannot be guaranteed to be the same as the official problem solution. C: Brush question statistics Xiao Ming decided to brush the questions and prepare for the Blue Bridge Cup competition from next Monday. He plans to do a question every da ...

Posted by simon622 on Mon, 11 Apr 2022 13:12:27 +0300

2019 DS&A course practice - level II project subtask personal filing

Well, mark it like an elder Yanzi University cautious reference Job plan ID ISBN 1 When recognizing an ISBN image, we need to decompose the task, that is, it is divided into input image, grayscale processing, denoising processing, binarization processing, character segmentation processing, character recognition processing and other steps ...

Posted by nemesis1931 on Mon, 11 Apr 2022 12:53:24 +0300

c + + room problems (dfs)

Title Description The students came to the legendary Dali palace and looked at the floor plan outside the palace. Everyone wanted to know how many rooms there were in Dali palace? How big is the largest room? Because the Dali palace is very large, the students are too tired to count the number of rooms on the snow mountain. At this time, the s ...

Posted by jennyp on Mon, 11 Apr 2022 10:08:49 +0300

C + + and Python call each other

summary C + + and python call each other. Why do you want to do this function? It is because there are relatively few api interface libraries in C + + and rich api interface libraries in Python. The mutual call between Python module and C/C + + dynamic library will be involved in practical application. My system environment is Ubuntu 18 04. ...

Posted by Dr.Flink on Mon, 11 Apr 2022 09:11:09 +0300

Advantages and disadvantages of Select function

What is Select? Before exploring what is select(), let's discuss why select() was born. In a very distant era, the use of the Internet (Internet) is not extensive. Ordinary daily users account for a very small part of the total number of users, and the content of many websites is also very simple. Therefore, the maximum number of visits a ...

Posted by ryan.od on Mon, 11 Apr 2022 06:28:03 +0300

Sword finger offer - Chapter 3

Code normalization Name variables and functions with complete English word combinations Code integrity Basic function: function testBoundary testNegative test: non-conforming illegal input Three error handling methods: 1. Return value: advantages: consistent with the system API, disadvantages: inconvenient to use the calculation results 2. ...

Posted by ivory_kitten on Mon, 11 Apr 2022 05:01:29 +0300

Writing C + + and c# crash free programs under windows

C + + has good performance, but because of the direct operation of memory many times, the stability has not been very good. Before the program goes online, we certainly hope that the defects can be solved, but no one can guarantee that there are zero defects after the program goes online. How to ensure that the program crashes after the program ...

Posted by kol090 on Mon, 11 Apr 2022 03:53:58 +0300

Algorithm interview problem-1-egg drop problem

Problem description Method 1 - dynamic programming (timeout) class Solution { public: int superEggDrop(int K, int N) { const int INF=0x3f3f3f3f; //dp[i][j]: the minimum number of experiments using j eggs when there are I stairs vector<vector<int>>dp(N+1,vector<int>(K+1,0)); //initializa ...

Posted by newbeee on Mon, 11 Apr 2022 02:58:07 +0300

[deep string operation] · ten thousand word summary. Do you really understand these knowledge points?

Hello, I'm Duoni! Start Preface Blogger introduction: a cross-border artist who asked not to be named Learning stage: Advanced C language Belief support: diligence, as long as enough liver, there is no boundary in the world! Request before reading: bloggers are ashamed that they don't have any computer foundation. ...

Posted by kryptx on Mon, 11 Apr 2022 02:08:40 +0300

Blue Bridge Cup - Practice (3.5)

Blue Bridge Cup - Practice (3.5) Basic practice matrix multiplication Title Link: http://lx.lanqiao.cn/problem.page?gpid=T58 Resource constraints Time limit: 1.0s memory limit: 512.0MB Problem description Given an N-order matrix A, output the M-power of a (M is a nonnegative integer) For example:   A =   1 2   3 4 The second power o ...

Posted by bigrossco on Sun, 10 Apr 2022 20:47:13 +0300