Chapter 236 A real man should get C! (4k)

"Ok?"

Xu Qingshan woke up, but found that there was some extra pressure in his arms. He looked down and saw the girl lying on him and looking at him with interest.

"When did you come? Why didn't you wake me up?"

Xu Qingshan's voice was a little hoarse.

After a night of using the air conditioner, I just woke up and this is exactly what happened.

"I came here around nine o'clock. Seeing that you were sleeping soundly, I wanted to let you sleep a little longer."

Jiang Huanxi's beautiful eyes were still staring at Xu Qingshan.

"what time is it?"

"It's 11:24. There's still time to sign up. I was planning on waking you up if you weren't up by 11:."

Jiang Huanxi told the truth.

"okay."

Xu Qingshan rubbed his eyes, took out his phone and looked at it, only to find that there were quite a few missed calls, most of which were from Mei Hong and an unfamiliar number, but they all started calling him after ten o'clock.

He thought about it and called Mei Hong first.

"Hey, Dean Mei, what's wrong?"

"Oh! Xiao Xu, you finally got up. Call Yang Shu first. He wants to form a team with you. Submit your registration information before 12 o'clock, otherwise it will be closed. I'm hanging up now. Hurry up!"

"Dudu.du."

It turned out that the strange number was Yang Shu.

Xu Qingshan then called Yang Shu.

"Hello, Senior Yang Shu, I'm Xu Qingshan."

"Hello, Poplar."

"I heard from Dean Mei, Senior Yang Shu."

"Poplar."

The other party seemed to care a lot about being called senior, and Xu Qingshan noticed it and changed his tone.

"You agree to team up with me to compete in the ICPC competition?"

"Well, I want to be with you."

This statement is somewhat ambiguous.

However, Xu Qingshan could understand what this old man meant.

Maybe it was because I saw my own results today and was sincerely convinced, and felt that he was clinging to me, but in fact it was not really the case.

Xu Qingshan knew very well that in the ICPC finals, three team members would work together to solve problems, and they would need to divide the work among themselves, read the questions quickly, and then proceed simultaneously.

Generally speaking, in the finals, what matters most is the time taken, not the accuracy.

Even if it is Jiang Huanxi, don't think that Jiang Huanxi is just clinging to others.

Her mathematical ability played a significant role in helping to verify the results. One needs to be cautious when submitting a program. Otherwise, if the submitted program reports an error, time will be penalized directly.

Xu Qingshan had already thought of the team structure.

There are three people, each acting as the brain and the main force, Yang Shu is the deputy C and the acceptance procedure, Jiang Huanxi is the auxiliary and data verification, this can better ensure the progress, program accuracy and data correctness.

"I'll bring my girlfriend, who's from the mathematics department, with me. Is that okay with you?"

Xu Qingshan asked.

"can."

"Okay, send me the information and I'll go register now."

"What are the arrangements for tomorrow?"

Yang Shu does talk little, but Xu Qingshan thinks this is not bad and is very efficient.

"Let's find a place near the school with food and air conditioning to work hard for a day. I'll go and reserve a place. Don't worry. I'll let you know later."

“Actually, you can come to the lab.”

Yang Shu thought for a while and said.

"Forget it. You see, Lao Mei almost fought with you last time. I have money, so just listen to me."

"okay."

"that's it."

After the two hung up the phone, Xu Qingshan received a message from Yang Shu.

However, he discovered that Yang Shu was actually younger than himself.

"No wonder you don't let me call you senior. You're actually younger than all of us."

Xu Qingshan showed Jiang Huanxi his identity information, then turned on his computer and followed the steps given by Mei Hong to register for the online preliminaries of the 34th ACM International Collegiate Programming Contest, Asia Qualifiers, Shanghai Division.

"Maybe she started school early. I remember there was a 16-year-old girl in Yuanpei. She seemed to be from Sichuan."

Jiang Huanxi said.

"Okay, we've registered. Let's go out for a walk later and see if there are any suitable fast-food restaurants nearby. We'll book a private room tomorrow and stay there for the whole day."

"it is good."

Jiang Huanxi agreed to all Xu Qingshan's words and responded with a smile.

The next day.

Normally, there are many people who leave school to visit Beijing on weekend mornings, especially the freshmen who have just arrived in Beijing. Many of them want to visit the Forbidden City and the square.

But Xu Qingshan and Jiang Huanxi, together with Yang Shu, stayed in a private room in an Internet cafe.

"I originally wanted to find a tea restaurant, but I didn't expect this internet cafe to have a lot of food. I can even ask the restaurant and barbecue next door to deliver it."

Xu Qingshan looked at Yang Shu's strange eyes and couldn't help but explain.

"Oh, good."

Yang Shu just nodded. He didn't care where to start working, as long as there was a table and a chair.

"It will start soon. It will start at 10 o'clock sharp and last until 8 o'clock in the afternoon. There should be 12- questions. You can only use one computer."

"I know."

Yang Shu answered, and he subconsciously moved a little further away from Xu Qingshan and Jiang Huanxi.

He felt that the aura of the young couple was not very compatible with his.

Others are popular, while I am a otaku.

The ACM-ICPC competition consists of continental qualifiers and the global finals. Only the winners of the continental qualifiers are eligible to participate in the global finals.

第34届ACM-ICPC亚洲区预选赛共设有15个赛区,竞赛时间从9月开始至11月结束。其中,在华夏内地设立沪都、冰城、庐州、甬城、江城等5个赛区。

Xu Qingshan and his team only participated in the online qualifying competition to qualify for the official qualifying competition in the Shanghai region.

Only by becoming the regional champion can you directly advance to the global finals.

It sounds very exciting.

"Then let's get started. Yang Shu, you go first. Choose 5 questions first, and then show me the other 5 questions. Once I have a clear idea, we can exchange answers. Is that okay?"

"can."

Yang Shu nodded.

Now that he was here, he would follow Xu Qingshan's arrangements because Xu Qingshan was a strong man.

Normally, there would be more than 120 teams participating in the regional qualifiers, but Xu Qingshan could see that more than 500 teams had signed up for the online qualifiers, and each team name was stranger than the last.

The more normal ones are "The Natural Talent Team", "The Dream Programming Team", etc. The slightly cuter ones are "The Brave Paw Patrol", "The Sailor Moon Team" and so on.

But Xu Qingshan never expected that in 09, many college students had already started to engage in abstraction.

What are "Ah, right, right, right team", "Others ac, we g", "Test account", "Little baby, what's wrong with you?", "Fortune is in the sky", "They said the team name is arbitrary", "The whole family rushes forward", "First blood".
Fortunately, most teams are more sophisticated and use English.

Xu Qingshan and the other two didn't have any ideas about the team name, so they just randomly named it "NO.001".

It's quite casual, I don't mean to be crazy. (狗头.jpg)

"let's start."

Xu Qingshan glanced at the time, gestured to Yang Shu to sit in the middle, and he sat next to Yang Shu.

Jiang Huanxi watched from the side and decided to go downstairs to buy lunch boxes as a logistics support.

The online competition started on time. Yang Shu quickly opened the questions and let Xu Qingshan take a look at the other questions. Then, with Xu Qingshan's permission, he began to think seriously about the first question.

Xu Qingshan was simply typing out the questions and general ideas in his notebook.

Online competitions are actually quite boring.

Especially in the environment that one chooses, like the box where Xu Qingshan and his friends are, it is quiet, but it also lacks the passion and exciting atmosphere of the game.

Yang Shu sat in front of the computer, typing quickly on the keyboard with his hands, only he wrote and deleted from time to time.

It should be noted that.

For a formal competition like this ACM-ICPC level, even the online preliminaries, the difficulty of the questions given is greater than the competition-level questions that Huaqing and Peking University put in the back of the training question bank.

Because the difficulty of that kind of competition refers to the small competition level, or previous years' questions from regional competitions.

As we all know, for competitions, the difficulty of questions in previous years decreases as time goes by. Every year, the old guys on the competition committee are thinking of ways to make things difficult for more students.

The difficulty in 2009 was higher than before.

Even Yang Shu did not have the confidence to defeat the enemy with one strike.

However, the solution can be found. Yang Shu's hands moved at a fast frequency, but beside him, Xu Qingshan moved even faster than him.

Even though he had only looked at the question for a short while, his super memory had already helped him remember the content of the question.

And the brain works frantically, starting to write code and simulate the operation of the program in the mind.

It's amazing.

In fact, after Xu Qingshan was exposed to a lot of programming knowledge, he quietly discovered that his mind seemed to be far more than just a strong memory. Even his super comprehension and inspiration capture were just the tip of the iceberg.

Because he found that he could simulate the way computers run in layers to analyze his own code.

To some extent, this is a bug-level capability.

That is to say, others need to finish writing in one go and then have the machine test, but Xu Qingshan can test it while writing, and it is completely subconscious, so if he finds a problem in any sentence, he can change it immediately.

Jiang Huanxi came back from downstairs and brought three full lunch boxes.

Yang Shu hadn't even finished solving a single problem, and 40 minutes had already passed, causing sweat to break out on his forehead.

"Almost, almost, just a little bit more."

Yang Shu gritted his teeth.

He couldn't believe that such a confident person like himself would start sweating profusely when facing the first question of the online qualifying round.

At this pace, if he was alone, he might only be able to finish 5-4 questions in 5 hours.

of course.

What he didn't know was.

When setting the difficulty of the online qualifying round this time, the two most difficult questions were deliberately placed at the front, with exactly this effect in mind.

Look at Yang Shu, he started to get nervous when he didn’t fully solve the problem in 40 minutes.

Students all know that the training on the OJ platform is from easy to difficult. How could the teachers who set the competition questions not know this?
"Relax, take a deep breath, and rethink."

Xu Qingshan said.

"If you feel your thoughts are a little confused, then think about it over there. Let me use the computer."

"Ok?"

Yang Shu watched Xu Qingshan gently push his chair away, move himself to the computer, and switch directly to a question he had just shown him. He began to work with his hands flying, and the code flowed smoothly from his hands into the computer screen.

Yang Shu was stunned and even forgot what he was doing.

"It's done!"

【AC】/【Accepted!】

The program judgment results were refreshed on the computer, and a node at the top turned green and checked, indicating that there was no problem at all with Xu Qingshan's code.

"Let me see where you are stuck."

"Actually, you don't need to use Pascal. It's too standard and too elegant."

Xu Qingshan couldn't help but say.

"Pascal is the tear of the DOS era. Although it is stable and fast for writing ordinary and practical complex algorithms, the code is also highly readable, the compilation speed is as fast as lightning, and the structure is perfect and can't hide bugs, but it is too verbose!"

Xu Qingshan complained and started typing on the keyboard again.

"Things that are too well-behaved and docile can't drive fast, can't be wild, and can't perform magic."

"A real man gets a C!"

After Xu Qingshan finished speaking, the code that Yang Shu had just written in the computer was overwritten. Yang Shu leaned in front of the computer and looked at it carefully, asking aloud.

"But if I choose C, I will have to spend too much time to check for bugs, and I will be fined if I submit an error."

"Harmful."

Xu Qingshan waved his hand.

"I tried it on our OJ platform the night before yesterday. I remember Lao Mei said at the time that the judging system was customized according to the competition standards, right?"

"Correct."

"That's right. There are many ways to avoid bugs in C and C++."

"We don't want to do every step precisely. Our only goal is to achieve: the program runs normally, the system does not report errors, the input is normal, and the output is correct."

Xu Qingshan said with a smile.

"In fact, the world of computer programming is much simpler than our real world."

"We need a process, a mental journey, and we need to consider every step, but computers don't. As long as our purpose, behavior, and results are completely consistent, it means we are right."

"Of course, if you can't do this when you're actually doing projects or scientific research in the future, this can only be considered a special method for exams."

"Come on, try it again. After all, this is your idea, and it's a good one. I'll leave it to you to submit it."

After Xu Qingshan finished speaking, he gave his seat back to Yang Shu and continued with the second question which he had finished halfway.

In fact, he originally planned to finish both questions and wait for Yang Shu to solve the first question before answering them together.

But firstly, the second question was still some distance from being completely answered, and secondly, seeing that Yang Shu's mind was a little unstable after solving the first question, he came out to save the situation.

In fact, in Xu Qingshan's own opinion, Yang Shu is already quite strong.

It’s just that I didn’t go out to meet more geniuses, nor did I touch more and higher problems.

It's easy to become a frog in a well.

This ICPC is an opportunity.

Xu Qingshan took the lunch box from Jiang Huanxi, the pure ornament, handed one to Yang Shu, and then leaned on the sofa in the Internet cafe and accepted Jiang Huanxi's feeding.

Fortunately, Yang Shu is now concentrating on the code, otherwise he would not even have to eat his lunch box and would just be full of dog food.

I will definitely update and complete the chapter early tomorrow night! But I should go to the hospital for a physical examination tomorrow afternoon, eh eh eh eh



(End of this chapter)

Tap the screen to use advanced tools Tip: You can use left and right keyboard keys to browse between chapters.

You'll Also Like