Chapter 52 BUG: He didn't charge the money, BUFF: Got it, got it
Shang Siyu and Chen Jiming have no opinions, no matter what kind of group competition, brushing questions is very necessary to run in.
Each other can know their respective levels, strengths, and disadvantages by brushing the questions.
The lunch break is only a little more than an hour, and time is precious, Su Xiaomu didn't say a word, just opened the online question bank on the web page.
One of the topics goes like this:
Give an NXM matrix - roughly 'sloppy' like this, with two squares with a fork inside them forming a rectangle. β
Now you have to start at a certain point and go through all the points and go back to the starting point, asking for the least path.
There are 8 directions from a point, and the distance between adjacent points on the line is 1.
Su Xiaomu didn't mean to hide it, and pointed to the topic and said.
"In our opinion, the description of the question is actually misleading, emphasizing some issues that have little to do with the stem, such as the TSP (traveling salesman) problem.
So, what we have to do is put aside these distractions, and the rest is not much of a problem. β
ββ¦β¦β
Shang Siyu: "Yes, yes, yes." β
Chen Jiming: ", it's amazing my brother." β
The two heads on the right and further right are dotted one after another, like chickens pecking rice.
At the end, Su Xiaomu concluded, "On the whole, we get the linear algorithm for this problem:
That is, if there is an even number of m and n, the result is mn, otherwise, the result is mn+0.41. β
Next, the whole process of high-energy .JPG!
Su Xiaomu directly started the online problem system on the webpage and entered the C++ code:
#includeβ‘
After hitting the last carriage return, the code is only 18 lines in total, and the commit decision returns AC, passing.
Shang Siyu clasped his two little hands together in front of his chest and applauded, "Xiaomu-san, you are amazing!"
Chen Jiming: "Cow." β
He basically didn't dare to blink his eyes during the whole process, so he could keep up with Su Xiaomu's speed of solving the problem.
It's not that he can't solve this problem, it's just that he can't solve it that fast.
From start to finish, it was a total of 9 minutes and 21 seconds.
This includes explaining the stem, analyzing the algorithm, typing code, committing code, and making judgments......
As well as including their dumbfoundedness.
Chen Jiming doesn't have any other thoughts now, watch and study hard and follow the big guy, and don't want anything else.
He felt that with such problem-solving efficiency, during the regional competition, what he and Shang Siyu were responsible for was to cheer on the side and call and shout 666.
It's tiring to say, but I have to do a few things well!
The first run-in ended like this, Su Xiaomu showed his advantages, and Chen Jiming and Shang Siyu also showed their own advantages.
Su Xiaomu is a variety of wills.
Shang Siyu also knows all kinds of things, all kinds of praise people, and cheers up, and he still understands the algorithm and can complete the problem alone.
Chen Jiming also knows all kinds of questions, all kinds of reading questions, after all, it is pure English, and at a glance, he still needs to translate in the brain, and he will also complete the questions alone.
So, to complete three questions in one hour, the first one took 9 minutes and 21 seconds, the second one took 22 minutes for a relatively simple one, and the third one took 31 minutes for the second one......
Ok, a little bit timed out.
β¦β¦β¦β¦
β¦β¦β¦β¦
After the afternoon class, Su Xiaomu finally planned to manipulate the failed product of Saoke.com again.
It's okay not to waste too much of those rented server hardware resources!
After accessing the background of Saoke.com through the computer at home, and seeing the number of site visits and traffic status, Su Xiaomu fell into deep thought.
Is there really a need for rescue?
A full three days have passed, and there are advertisements on campus, the total number of visits:
39γ
It doesn't matter if you don't look at the traffic status, there is no peak or trough......
Although Su Xiaomu has probably figured out the reason why the website is hitting the street in the past few days, he is full of heart when he looks at the very simple numbers on the screen.
Saoke.com was just started, and there was no traffic orientation, no official support from the school, and it was difficult to get any content on an empty shell just by relying on group advertisements and forum topping.
There are no gimmicks, or no places to make people fall quickly, it's for sure.
In the past few days, Su Xiaomu has carefully watched video sharing platforms in his spare time, and B counts these similar types of websites.
pondered something.
First of all, in the registration entrance and login, due to poor consideration, no third-party interface has been added.
Only South China University of Technology students are allowed to log in with the on-campus communication.
The limitations are too great!
Whether the person is a student at South China University of Technology or not, he is first and foremost social.
Before entering South China University of Technology, there are generally some instant messaging accounts, such as WeChat.
This kind of large-scale instant messaging platform will open the interface, and it is not complicated to add and support third-party account login, and you can get it out according to the interface file.
This is the first modification that Su Xiaomu planned to make to Saoke.com.
This modification, under Su Xiaomu's slender fingers, slowly took shape.
It's easy to say, but it's not so simple to change.
The main reason is that Su Xiaomu has suffered a loss that he is not an otaku, and he does not have the hand speed of the unicorn arm at all, and what he can guarantee is that the key error rate is as low as 0.1%.
It's not as good as some bigwigs who can roll the keyboard with their faces and can write 600 words a minute.
"Hey, there was a bug this time?"
After the code was completed, Su Xiaomu submitted it to the debugger to run, and it actually returned an error.
HAS MY BUG IMMUNITY BUFF EXPIRED?
A very brief conversation popped up in Su Xiaomu's mind for no reason:
BUG: HE DIDN'T TOP UP THE MONEY.
BUFF: Got it, got it!
According to the wrong positioning, Su Xiaomu quickly found the place where the error was.
After smashing his mouth, Su Xiaomu beeped quietly, "A total of thousands of lines have been modified, and one thousandth of the key errors are actually exceeded!"
"Sometimes it's not good to be too confident!"
It was only 5:40 p.m. when the code was modified and merged.
Female creditors usually arrive home at 6 o'clock, and then have dinner at 6:30, so there are still 50 minutes.
That's enough to implement a few small ideas!
Su Xiaomu stretched his long waist, crossed his fingers in reverse directions, and let out a long breath after a crackling sound.
"Work hard, work hard!"
Clicking on the pycharm software on the iMac launchpad, Su Xiaomu first built a simple framework. β’
He was going to write a small program in Python, which is particularly suitable for writing web crawlers, and the role was very simple.
Use keywords, the number of likes, the number of barrages and other factors to traverse the interesting videos in the barrage complaining website such as the number of B, and then add some filters and so on.
The last thing to get is:
The types of videos that college students like to complain about.
And to be a porter who respects copyright to the greatest extent, and artificially fleshes up the empty shell of the sorcerer......
(1): If this graphic is not described, it will bother you to imagine it.
(2): Well, omitted.
(3) :p ycharm: Apple's version of the Python compiler.
======
Broken bowls, broken pots, broken shoes.
Continued: To be honest, if you continue to write Shenhao's essays, you can probably have better results? Now I write this daily essay pondering a lot of work, each chapter took three hours, but it doesn't quite meet everyone's taste, say how not to use routines, how dare you try new ones, you should hit the street! Okay, then please delete the bookshelf if you don't like it, anyway, it's all you who hit the street, you are stupid, you deserve it.