1991 Starting from the core

Chapter 50 Hello, my name is Su Yuanshan

Computers were quickly moved in.

As Su Yuanshan said, from top to bottom, everyone hopes that this competition will be a purely technical, absolutely fair and just competition, so it cannot have the slightest flaw - at least on the surface.

Su Yuanshan sat down silently, and then looked at Chen Xiaochuan - he saw a trace of surprise on Chen Xiaochuan's face.

Perhaps the department leader had already told him about his glorious deeds in Las Vegas.

But so what? As long as his relationship with his father is revealed on this occasion, he must prove it to himself, otherwise who will stop the crowd?

At this time, Professor Hang Dian, who had been silent, glanced at everyone and smiled helplessly: "Student Su Yuanshan, since you understand algorithms, why don't you write an algorithm for multi-dimensional arrays now? It will take a long time to write a program."

Su Yuanshan nodded and took another look at the professor.

The processing of multi-dimensional arrays is difficult or simple. It is just an exercise for undergraduates. If he can complete it, it will obviously prove that he has at least the ability of an undergraduate.

I clicked on C++, and after thinking silently for nearly a minute, I started writing header notes.

//A simple Tetris game.

Tetris is the simplest application of multi-dimensional arrays, and it is not easy to write. Two hundred lines of code are overwhelming. The most important thing is that Su Yuanshan used this thing to practice his skills in his previous life.

So he wrote very quickly.

As he kept typing on the keyboard, the contestants behind him finally couldn't help but ask their teacher Su Yuanshan whether the question he completed on the spot was difficult and what his level was.

Time passed slowly. Although the senior brothers and sisters in the electrical department wanted to see what Su Yuanshan had written, they were able to work on it non-stop for half an hour, but the people in the front row did not move, and they were too embarrassed to squeeze through.

As for the referees and professors on the stage, they were also a little surprised. How could an array algorithm require so much code... If Su Yuanshan didn't have that ability, he would have just not known how to write it, instead of just typing on the keyboard.

Only Su Xinghe roughly guessed what his son wanted to do.

If he simply writes a few lines or dozens of lines of code, people like him will naturally be able to understand his level. But if you really want to convince the public, you have to write an application of the algorithm.

Finally, the first contestant couldn't sit still. He walked behind Su Yuanshan and wanted to see what Su Yuanshan was writing.

But he soon discovered that he could understand the annotations, but could not understand what Su Yuanshan wrote at all.

With the first, there is the second and the third.

Su Yuanshan pursed his lips and tilted his head as if inadvertently, only to find that the girl was still sitting in the distance, but the expression on her face changed to curiosity and uncertainty.

With a slight sigh, Su Yuanshan finished writing the last paragraph of notes.

Click on debugging, and an interface pops up.

A boy exclaimed from behind: "You actually wrote a game?"

"The simplest application of multi-dimensional arrays is Tetris, so I just wrote one." Su Yuanshan kept pressing the direction keys, tested it a few times, then exited debugging and looked to the front desk.

Su Yuanshan stood up slowly and looked at Chen Xiaochuan: "The completed one is Tetris. It has a total of 229 lines including comments. Please check it with the judges."

*

*

After the judges looked at Tetris one by one, no one doubted Su Yuanshan's level.

No one present was confident that he could complete the design of Tetris in less than an hour, let alone that he had reduced the code to less than two hundred lines.

The computer was cancelled, and President Zhou came to deliver another rescue speech. In President Zhou's words, the hour that almost caused Professor Su Xinghe, who was in the limelight of the Department of Electrical Engineering, to fall into the "back door" crisis, turned into a meaningful moment. episode.

When the leader of the department announced that the Q\u0026A would continue, Su Yuanshan also faced the girl's curious gaze, pursed his lips, and silently walked to the corner of the first row.

He saw from the beginning that there was another place beside Ye Rudai.

After Su Yuanshan sat down, even though he was in a difficult mood, he still looked at the stage in silence. Only his profile was left, and he observed Ye Rudai's expression with his peripheral vision.

He laughed to himself in his heart, never expecting that he and his wife would be here and meet in this way. What about the "resistance love" we talked about?

Ye Rudai was also secretly observing Su Yuanshan.

Just as Su Yuanshan felt, when she first heard that Su Yuanshan was the son of Professor Su Xinghe, she felt extreme distrust and contempt for Su Yuanshan, and even regretted that she would come to participate in this competition.

But as Su Yuanshan sat under the computer and made up a Tetris almost effortlessly in front of everyone, she knew that Su Yuanshan was really capable.

She remembered that teacher Zhu Jianting once said that the simplest thing in programming is looping, followed by calculation, and the hardest thing is judgment, because that is the basis of all automation, just like the AND gate and NOT gate in chip design.

Tetris is a game based on judgment. It seems simple, but in fact it is very difficult. Algorithms are even used to make judgments.

So young...

Ye Rudai looked at the young man beside her with her peripheral vision, sighing in her heart.

And also a little cold.

Are all experts so cold?

Just when Ye Rudai was speculating wildly, the host on the stage called her name.

"Ye Rudai is from the second grade of Penang No. 2 High School. The entry is a salary statistics program."

Su Yuanshan's eyes narrowed!

Payroll program?

Dai Peiye?

After completing the Q\u0026A with the most perfect answer, Ye Rudai walked back to her seat.

She saw that the young master sitting next to her was looking at her, with a faint smile in his eyes.

Ye Rudai also smiled slightly, then withdrew her gaze, sat down and discussed her ranking with her instructor.

Ye Rudai bit her lip and lowered her voice: "Teacher Wang, how many do you think there are?"

"It's a pity that I can't get the special prize." The teacher surnamed Wang glanced at Su Yuanshan across her, smiled and cheered up Ye Rudai: "The top five should be no problem. I paid attention to other people's designs, and their designs are all difficult. Almost the same as you. But in terms of practicality, yours is better."

"Yeah! But I'm still a little nervous." The girl took a gentle breath, sat upright, and glanced at her side again.

Out of the corner of his eye, Su Yuanshan still looked at her with a smile.

"No, I think you should be first in the first prize."

Su Yuanshan stared at Ye Rudaishang's baby-fat face, gradually overlapping her appearance from memory, and said slowly with a smile.

Ye Rudai turned her head instantly: "Ah? Why?"

"Because of your code..."

Su Yuanshan suddenly closed his mouth, stared at the curiosity hidden in Ye Rudai's picturesque eyebrows, and took a breath with a smile.

"Do you have a pen and paper?"

"have."

"Borrow it."

Ye Rudai took out a notebook and signature pen from her small school bag in confusion.

Su Yuanshan opened the notebook and smiled when he saw the torn page.

Pick up a pen, draw a boat in the blank space, and then write text under the boat in annotation format.

/*Believe in my vision, you will definitely be the first! Don’t forget to delete this paragraph, above*/

Looking at the notes, especially the "warm reminder" at the back, Ye Rudai exclaimed and lightly covered her mouth, her beautiful eyes full of surprise.

Su Yuanshan continued to write.

"Hello, my name is Su Yuanshan, nice to meet you."

[Recommended tickets]

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

You'll Also Like