Chapter 236 A real man gets C! (4k)
"Um?"
Xu Qingshan woke up, but found that there was a little more pressure in his arms. He looked down and saw the girl lying on him looking at him with interest.
"When did you come here? Why didn't you wake me up?"
Xu Qingshan's voice was a little hoarse.
It was indeed like this when I just woke up after using the air conditioner all night.
"I came here after nine o'clock. Seeing that you were sleeping soundly, I wanted you to sleep a little longer."
Jiang Huanxi's beautiful eyes were still staring at Xu Qingshan.
"What time is it?"
"It's 11:24, and there's still time to sign up. I originally planned to wake you up at 11:30 before you get up."
Jiang Huanxi told the truth.
"Okay."
Xu Qingshan rubbed his eyes, took the phone and looked at it, only to find that there were many missed calls, mostly from Mei Hong and an unknown number, but they all started calling him after ten o'clock.
He thought for a moment and called Mei Hong first.
"Hey, Dean Mei, what's wrong?"
"Ouch! Xiao Xu, you're finally up. You should call Yang Shu first. He wants to form a team with you. Please submit your registration information before twelve o'clock, otherwise it will be closed. No I said it, hang up, 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 am Xu Qingshan."
"Hello, Yang Shu."
"I heard what Dean Mei said, Senior Yang Shu."
"Poplar."
The person opposite seemed to be very concerned about not being called senior. Xu Qingshan noticed this and changed his tune.
"You agreed to form a team with me to play in the ICPC competition?"
"Well, I want to be with you."
This is somewhat ambiguous.
But Xu Qingshan can understand what this brother means.
Maybe it was because I saw my results today and I was sincerely convinced, thinking that he was holding my thigh, but in fact it really didn't count.
Xu Qingshan knows very well that in the ICPC finals, the three team members need to divide their work to solve the problem together, read the questions quickly, and then proceed simultaneously.
Usually in the finals, what matters in the end is the time taken, not the accuracy.
Even if it's Jiang Huanxi, don't think that Jiang Huanxi is just a hugger.
Her mathematical ability plays a big role in helping to verify the results. You need to be careful when submitting the program, otherwise once the submitted program reports an error, you will be directly penalized.
Xu Qingshan has already thought about the team structure.
The three of them act as the brains and main force, Yang Shu handles the deputy C and acceptance procedures, and Jiang Huanxi handles the assistant and data verification. This can better ensure the progress, accurate procedures, and correct data.
"I will bring my girlfriend with me, who majors in mathematics. Are you okay with that?"
Xu Qingshan asked.
"able."
"Okay, you send me the information and I will register now."
"What are the arrangements for tomorrow?"
Yang Shu really doesn't talk much, but Xu Qingshan thinks this is good and very efficient.
"Find a place near the school with food and air conditioning to work for a day. I'll book 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. Look, Lao Mei almost fought with you last time. I'm not short of money. Just listen to me."
"Oh, okay."
"that's all."
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 want me to be called senior. I'm actually younger than us."
Xu Qingshan showed his identity information to Jiang Huanxi, and then turned on his computer and started following the steps given by Mei Hong to register to participate in the online preliminaries of the 34th ACM International Collegiate Programming Competition Asian Qualifiers, Shanghai Division.
"Maybe it's because she goes to school early. I remember our Yuanpei also has a 16-year-old girl? She seems to be from Sichuan."
Jiang Huanxi said.
"Okay, you've registered. Let's go out for a walk later to see if there are any suitable simple food stores nearby. We can book a private room and stay there all day tomorrow."
"good."
Jiang Huanxi agreed to Xu Qingshan's words and agreed with smiling eyes.
The next day.
Normally on weekend mornings, there would be many people going out of school to visit the capital. Especially since the freshmen of this class have just arrived in the capital, many people want to visit the Forbidden City and the square.
But Xu Qingshan and Jiang Huanxi were nesting in a separate box of an Internet cafe with Yang Shu.
"I originally wanted to find a tea restaurant, but I didn't expect that this Internet cafe has a lot of food, and it can also be delivered by the restaurant and barbecue next door."
Xu Qingshan looked at Yang Shu's strange eyes and couldn't help but explain.
"Oh, okay."
Yang Shu just nodded. He didn't care where he started working, as long as there were tables and chairs.
"It will start soon. It will start at 10 o'clock on time and will last until 3 o'clock in the afternoon. The number of questions should be 8-12. Only one computer can be used."
"I know."
Yang Shu replied that he subconsciously stayed away from Xu Qingshan and Jiang Huanxi.
He felt that the aura of the young couple did not fit well with his.
Others are cashing in, but I am a dead house.
The ACM-ICPC competition consists of qualifiers on each continent and global finals. Only the winners of the qualifiers on each continent are eligible to participate in the global finals.
The 34th ACM-ICPC Asian Qualifiers has a total of 15 competition areas, and the competition time starts from September to the end of November. Among them, 5 competition areas including Hudu, Bingcheng, Luzhou, Yongcheng and Jiangcheng have been set up in mainland China.
Xu Qingshan and the others only participated in the online qualifiers to qualify for the official qualifiers of the Hudu Division.
Only by becoming the regional champion can you directly enter the global finals.
It sounds exciting.
"Then let's get started, Yang Shu. You do it first. You choose 5 questions first, and then show me the other 5 questions. I will exchange answers after I have a clear idea. Okay."
"Can."
Yang Shu nodded.
Now that he is here, he will listen to Xu Qingshan's arrangements, because Xu Qingshan is a strong man.
Normally, more than 120 teams would participate in the qualifiers in the regional competition, but Xu Qingshan could see that more than 500 teams had signed up for the online qualifiers, and each team name was weirder than the last.
The more normal ones are the "Born to Be Talented Team", "Dream Programming Circle Team" and so on. A little bit cute, like the "Brave Paw Team" or "Sailor Moon Team".
But Xu Qingshan never expected that many college students would already be engaged in abstraction in 2009.
What about "Ah, yes, yes, the team", "Others acceded to our g", "Test account", "Baby, why are you so fat?", "Wealth is in the sky", "They said the team name can be chosen casually", "A family of young and old" "Charge forward", "firstblood".
Fortunately, more teams are more particular about formality and use English.
Xu Qingshan and the others didn't have any idea about the team name, so they randomly picked "NO.001".
It's quite casual, and I really don't mean to be crazy. (dog head.jpg)
"Let's get started."
Xu Qingshan glanced at the time, motioned to Yang Shu to sit in the middle, and sat next to Yang Shu.
Jiang Huanxi looked at it from the side and decided to go downstairs to buy lunch boxes for logistics.
The online competition started on time. Yang Shu quickly opened the questions and asked Xu Qingshan to glance at other questions. After getting Xu Qingshan's permission, he began to think carefully about the first question.
Xu Qingshan was simply typing out the topic and general ideas in his notebook.
Online competition is actually quite boring.
Especially in the environment you choose, a box like Xu Qingshan's is quiet, but it also lacks some of the passion and excitement of the game.
Yang Shu sat in front of the computer, tapping the keyboard with both hands quickly, but he wrote, deleted and deleted from time to time.
It needs to be explained.
For formal competitions like this at the ACM-ICPC level, even in the online preliminaries, the questions given are more difficult than the competition-level questions Huaqing University and Beijing University have stuffed behind the training question bank.
Because the difficulty of the competition refers to the small competition level, or previous years' questions in the regional competition.
As we all know, in competitions, the difficulty of questions from previous years decreases in decreasing order. Every year, the old guys from the competition committee are thinking of ways to torment more students.
The difficulty in 2009 has been improved compared to before.
Even Yang Shu doesn’t have the confidence to defeat the cauldron with one strike.
However, the solution can still be solved. Yang Shu's hands moved quickly, but beside him, Xu Qingshan moved faster than him.
Even if he just read the question for a short time, his super memory has already helped him remember the content of the question.
And the brain is running wildly, starting to write code and simulate the program in the brain.
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 discovered that he could actually simulate the way computers operate in layers to analyze his own code.
To a certain extent, this is a bug-level capability.
That is to say, others need to write it all at once and then take a machine test, but Xu Qingshan himself can write and test it at the same time, and it is completely subconscious, so that he can immediately change any sentence he writes that has problems.
Jiang Huanxi came back from downstairs, bringing three full lunch boxes.
Yang Shu hadn't completely solved a question yet, and 40 minutes had passed, which made Yang Shu start to sweat on his forehead.
"Almost, just a little bit close, just a little bit close."
Yang Shu gritted his teeth.
He didn't quite believe that someone so confident in himself started sweating profusely when facing the first question of the online preliminaries.
According to this progress, if he is alone, he may only be able to complete 4-5 questions in 5 hours.
certainly.
What he didn't know was.
When setting the difficulty of the online qualifying competition this time, the two most difficult questions were deliberately placed at the front. This was what they wanted.
Looking at Yangshu, I started to get nervous before I could fully solve it in 40 minutes.
Students all know that OJ platform training is from simple to difficult. Can the teacher who sets the competition questions not know this?
“Don’t be nervous, take a deep breath and think again.”
Xu Qingshan said.
"If you feel that your thoughts are a little confused now, think about it for a while and let me use the computer."
"Um?"
Yang Shu watched Xu Qingshan push his chair away gently, moved to the computer, switched directly to a question he had just read, and started to fly with his hands, and the code flowed smoothly from his hands into the computer. in the display.
Yang Shu was stunned and even forgot what he was doing just now.
"Done!"
【AC】/【Accepted! 】
The program judgment results were refreshed on the computer, and a node above it turned green and checked, which meant that there was no problem with Xu Qingshan's code.
"Let me see where you are stuck."
"Actually, there's no need to use Pascal for your set. It's too standardized and elegant."
Xu Qingshan couldn't help but said.
"Pascal is already the tear of the DOS era. Although, write a common and practical complex algorithm. It is stable and fast, 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 can't stand it He is so verbose!"
Xu Qingshan complained, and started typing on the keyboard with his hands again.
"Things that are too well-behaved will not be able to drive fast, be wild, or do magic."
"A real man gets a C!"
After Xu Qingshan finished speaking, the code that Yang Shu had just written on the computer had been overwritten. Yang Shu leaned in front of the computer and looked at it carefully while asking aloud.
"But if you use C, you have to spend too much time checking bugs. If you submit an error, you will be penalized."
"Harmful."
Xu Qingshan waved his hand.
"I tried it on our OJ platform at Beijing University the night before yesterday. I remember Lao Mei said at the time that the judging system was customized according to the competition standards, right?"
"right."
"That's right, using C and C++, there are many ways to avoid bugs."
"What we want is not to do every step accurately. What we want to achieve is actually: 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.
"Actually, 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. Computers don't need to be used. As long as our purposes, behaviors, and results are completely consistent, it means we are right."
"Of course, if you can't do this when you actually do projects and do scientific research in the future, this can only be regarded as a special means for exam preparation."
"Come on, try again. After all, this is your idea. It's a good idea. I'll leave it to you to submit it."
After Xu Qingshan finished speaking, he relinquished his position to Yang Shu and continued on with the second question, which he had half done.
In fact, he originally planned to finish both questions and wait until Yang Shu solved the first question before answering them together.
But firstly, the second question is still far from being completely answered, and secondly, Yang Shu’s heart was a little unsteady after the first question, so he came to the rescue.
In fact, from Xu Qingshan's own opinion, Yang Shu is already quite strong.
It’s just that I didn’t go out to meet more geniuses, and I didn’t touch more and higher problems.
That could easily turn into a frog in the well.
This ICPC is an opportunity.
Xu Qingshan took the lunch box from Jiang Huanxi, a pure pendant, handed one to Yang Shu, and then began to lean on the sofa of the Internet cafe and accept Jiang Huanxi's feeding.
Fortunately, Yang Shu is now concentrating on the code, otherwise he would not even need to eat the box lunch, and he would be full of dog food.
I must update it early tomorrow night and make sure it is complete! But I should go to the hospital for a physical examination tomorrow afternoon, eh, eh, eh.
(End of this chapter)