Rebirth: I Carry A Desktop Computer Inside Me - #84 - Chapter 84 When Jiang Cheng Is Here, Just Shout 666 By Yourself.
- Home
- Rebirth: I Carry A Desktop Computer Inside Me
- #84 - Chapter 84 When Jiang Cheng Is Here, Just Shout 666 By Yourself.
At 9 o’clock sharp the next morning.
The regional qualifiers have officially begun.
In the large classroom, there are 156 long tables, each with a desktop computer and the main computer on the side. A team of three people can sit at exactly one table.
There is a balloon stand on each table with the name of the university and team written on the front.
Once a question is completed, a staff member will insert a colored balloon to mark the question.
It is also to increase the fun of the game.
Jiang Cheng drew the lottery number 071.
Sitting in the middle.
The three people, wearing black team uniforms, sat down.
As soon as the competition started, the originally locked display opened.
Question A.
Jiang Cheng took a look, memorized the title, and then quickly translated it.
Of course, Zhu Jian is mainly responsible for translation.
“Given 13 cards, m is a word, s is a strip, p is a tube, c is a number… Which cards can be added to make a fool of yourself.” Zhu Jian read the question lightly while reading, still writing on the manuscript paper in his hand, It is obvious that the description of this question is more complicated than that of usual school competitions.
Then there is an introduction to the rules of Hu cards.
Jiang Chengdao, “Let’s use the enumeration method for this question. Start with the pairs and go one by one…”
Zhu Jian agreed. There is no better algorithm for the time being. “Then for the first pair, we have to consider two possibilities. The next one is the same card or a different card. If it is a straight…”
Jiang Cheng nodded, and then began to quickly code in the computer inside his body.
Xu Siyuan also participated, and the two discussed several important sections of code on the draft paper.
But when he looked up, Jiang Cheng’s hand became an afterimage and he was quickly writing the main program…
Um, it’s only been five minutes!
The two stared at the screen and watched Jiang Cheng write the code.
“Yes, it is better to use bool variables, add a for loop, and enumerate directly…”
Well, with Jiang Cheng here, just shout 666 by yourself.
Twelve minutes later, both of them checked and found no problems.
Jiang Cheng naturally also tested it on the internal computer, so he submitted it directly and the AC passed it.
Zhu Jian looked up and looked around. Not a single team had finished yet, and he felt happy.
Got pink balloons.
Nearly ten minutes later, the Kyoto team and Li Zhengtao’s team also successfully solved the problem.
But at this time, Jiang Cheng and the others had already started writing code for the second question.
Zhu Jian smiled in his heart. The third brother’s hand speed was worthy of being single for many years. He just didn’t know why he still had such fast hand speed now that he had a girlfriend.
Question B is to find the divisor of n, sum the squares of each digit, and then output it in base m.
Xu Siyuan was more thoughtful about this question. After discussion, he was the first to propose a solution to the problem, and then Jiang Cheng quickly implemented it.
For the second question, AC passed.
Jiang Cheng’s team made rapid progress, arousing the examiner’s curiosity.
Reporters also came over and slapped Jiang Cheng in the face.
Jiang Cheng thought to himself: Mmp, although I know I am handsome, there is no need to put the camera in front of my face to take pictures…
In the next few questions, with Jiang Cheng’s quick response and algorithmic thinking, and Zhu Jian and Xu Siyuan’s joint thinking, they won questions 3-5 in sequence.
After winning five questions, the gold medal is basically guaranteed.
On the field, except for Jiang Cheng’s team, the best team already had three balloons.
Li Zhengtao’s team was in the first few rows. Zhong Tian looked back several times and became a little discouraged when he saw the number of balloons on Jiang Cheng’s table rapidly increasing.
He thought he just made a slight mistake during the campus competition.
But I never thought that Jiang Cheng’s strength was far more than that.
Li Zhengtao typed the code and saw that Zhong Tian was absent-minded and shouted softly, “Don’t worry about them for now. Think about it quickly. Which step did we make an error in and why did we get WA (error)?”
Duan Bo was also a little anxious. Staring at the code on the screen, his eyes felt dizzy.
“Damn it, Zhengtao, you deleted this variable definition here!” Duan Bo was speechless and slapped his arm hard.
One mistake equals extra time.
Li Zhengtao was irritated, “Damn, I don’t know what’s going on. Wasn’t he still here just now?”
“…” Duan Bo was speechless, “Change it quickly and try again.”
AC passed.
The level of the three of them was pretty good, and they aced the first, second, and fifth questions.
———-
Of course, Jiang Cheng didn’t know this and didn’t pay attention to it.
He now has a problem.
During the sixth question, no matter how the computer in the body simulates or inputs, it always displays the output -1.#j.
Zhu Jian reminded from the side, “I feel there is no problem. Third brother, you can submit it.”
“No, there’s something wrong.” Jiang Cheng shook his head, “It’s probably a recursion error.”
Jiang Cheng read all kinds of books on computers and quickly figured out the problem.
“Well, we also need to pay attention to the memory overflow problem. There should be a problem with the 24e part.” Jiang Cheng pointed out the problem.
“Then what should I do? I don’t know how to solve this problem.” Zhu Jian was a little confused.
Jiang Cheng pointed to the next question, “The seventh question is not difficult. You take a look at it first and look for ideas, and then I’ll think about it.”
“good.”
Afterwards, Jiang Cheng gently closed his eyes and began to modify the code.
Adding restriction statements and debugging still doesn’t work.
Perhaps, the algorithm needs to be changed.
Jiang Cheng’s mind was racing rapidly, and the CPU frequency suddenly increased.
The code has been rewritten piece by piece.
“As expected.” Jiang Cheng was overjoyed and found the problem.
There are some recursive boundary issues that are not fully considered, causing errors to always occur during operations.
His eyes opened, revealing a confident and spiritual light.
Returning to the sixth question, Jiang Cheng quickly modified the code, “Look, this part of the code seems reasonable, but upon closer inspection, we did not consider the boundary issue…”
After the modification was completed, Jiang Cheng debugged and submitted it directly, and it was AC again!
After answering six questions in a row, the time is just over half, only 2 hours and 50 minutes have passed!
The examiner came over again and watched the three people discussing the seventh question seriously. Jiang Cheng’s fast and accurate code made him keep nodding.
Mizuki Computer Science Department is indeed worthy of its name.
Jiang Cheng had already won the seventh question in the third hour and a half.
Still AC.
When he saw the last question, which was question H, Jiang Chengdu was stunned for a moment.
So watery? !
Two people get X points for killing tigers, and Y points for killing wolves. Given the relevant probabilities, let’s find the target that A should choose and the expected highest score between 1 and 10,000.
The title is long, but the question is simple.
It’s nothing more than comparing the expected scores for killing a tiger or a wolf.
The code took 21 lines. Jiang Cheng tested it on the computer inside his body and submitted it directly.
So, in front of his screen, there were the most balloons.
Colorful.
As for other teams, there are only five more and one less.
Xu Siyuan took the time to take a look at the Heihe University representative team. It was a bit miserable, with only one balloon.
Originally expecting a fierce competition, Jiang Cheng was a little unsatisfied because of the last question.
It seems that the participating teams were crushed…
Once I finished answering the questions in the competition, I still passed all ACs.
Several reporters took turns taking pictures.
Jiang Cheng is photogenic, with firm eyes and a slight smile on his face.
Zhu Jian, on the other hand, was so happy that he couldn’t stop moving his hands with excitement.
Xu Siyuan carefully shook his stylish hair in the mirror, showing off his best side.
He knew that the pictures taken this time would definitely make the news.
Because they are champions!
“Now I announce that the champion of the 37th ACM Asia Division (Tinmen) Live Competition is the 9#F4 team of Jiang Cheng (Class of 2011), Xu Siyuan (Class of 2011), and Zhu Jian (Class of 2011) from Shuimu University. Congratulations them!”
Jiang Cheng stood in the C position in the middle, took the golden trophy, and raised it gently.
Next to him, Zhu Jian tried his best to hold himself up so that he was on the same level as Jiang Cheng and Xu Siyuan, grinning.
Li Zhengtao’s team is also very good, with six ACs and won the runner-up.
But it felt like they were on the edge, a little boring.
Jiang Cheng thought that he might be hungry!