Chapter 120: I don't understand

(New book period, ask for flowers, ask for collection!) "Are you eavesdropping on us? Jiang Hua glared at the two of them angrily and asked in a deep voice.

"Forget it, whether the level is high or not depends on lip service, isn't there still a selection later?" Xiao Yuan pulled Jiang Hua and said.

"Hmph, you're in luck." Jiang Hua waved his fist and snorted.

"Let's pass the first round of selection first, don't be eliminated in the first round, and talk about the follow-up selection, haha......" One of the two boys pouted and said, pulling his companion and leaving with a smile.

This scene at the door of the classroom was just a small episode, neither Xiao Yuan nor Jiang Hua took it to heart, since the results were going to come out in half an hour, they simply stopped walking around, stood outside the classroom for a while, went to the bathroom, and went back to the classroom to wait.

"Jiang Hua, what did Xu Xiaoyang pull you out before the exam and say something, I saw that you were angry." Xiao Yuan asked.

"He said he would give me a standard answer in the exam." Jiang Hua looked around and said in a low voice.

"Then why do you still look angry?" Xiao Yuan also lowered his voice and asked.

"If I come back happily, a fool will know that something is wrong." Jiang Hua said.

"Hehe, I see." Xiao Yuan suddenly realized, nodded, and then added, "You guys are so insidious." ”

"Insidious?" Jiang Hua pursed his lips, and then said with a smile, "It's insidious, it's better than being eliminated for the sake of fairness, haven't you heard a word?" ”

"What?"

"Good people don't live long, but disasters live for a thousand years."

The two chatted aimlessly, time passed quickly, and before I knew it, half an hour had passed, and several students from the computer association who had organized the selection walked in again, and the previous girls walked up to the podium, and announced the list of students who had passed the selection to the students who were sitting below and waiting for the results, and said the next round of selection.

In the list of selected people, Xiao Yuan and Jiang Hua are impressively listed, in fact, not many people were eliminated in the first round, only a few unlucky people were eliminated, after they left the classroom in frustration, there were at least twenty people in the classroom to enter the next round, and the next round will eliminate most of them, only five students remain, these five students will face the last round of selection, that is, to talk face-to-face with President Duan Yanyue, and whether they can pass the selection and participate in the dinner will be decided by President Duan himself.

Listening to these rules, watching the students below hear that as long as they pass this round of selection, they will be able to talk to President Duan face-to-face, and they are all excited, Xiao Yuan once again appreciated the extraordinary personal charm of Duan Yanyue, a girl, and felt more and more that it was a pity that this girl did not study management and came to learn computers.

The programming test was still conducted in the form of a written test, and the time was extended to 90 minutes, and soon the test paper was sent to Xiao Yuan, who still habitually glanced at the test questions from beginning to end, and then began to answer from the first question.

Compared with the first round of selection, Xiao Yuan did much easier, the previous questions are very conventional, even if there are some questions in the middle that may be for selection, deliberately increasing the difficulty of such as computer binary reverse code complement operation questions, and some test questions related to data structures, but for him, these are basic knowledge that can no longer be basic.

Soon he did the final additional question, which has two additional questions, the first of which is a classic game of Tower of Hanoi, and the second is a logical reasoning problem, which gives a lot of logical judgment conditions and requires programming to find the final logical judgment result.

Seeing these two questions, Xiao Yuan smiled, he knew that whether he could pass the selection in the end or not, the decisive factor was here, these two questions were very simple to him, as simple as a high school student facing a primary school student's test questions, but you must know that now the candidates are all newly enrolled freshmen, even if they are computer science students, they have only been in class for two months in their freshman year, and they can make these test questions, and the level is quite good, so he judged that there will definitely not be many people who can really make these two questions.

This thought circled in Xiao Yuan's mind, and he was thrown aside and concentrated on the question.

The Tower of Hanoi problem is a classic recursive problem, as long as you can grasp the key to it, the program is easy to write, Xiao Yuan spent five minutes to write the program of this problem, and then turned his eyes to the next question.

The second question sets up a scene similar to Sherlock Holmes's case, a detective in order to find the murderer, locked up eight people in ABCDEFGH, and interrogated them separately, and then the question gave the interrogation results, in fact, it is a lot of logical judgment conditions, such as A says B is the murderer, B says he is not the murderer, but E and F must have one of the conditions such as the murderer, and requires a program to be written to find out the real murderer.

This question is a typical logical judgment question, and the solution is not as fixed as the Tower of Hanoi problem, after Xiao Yuan read the question, many solutions immediately flashed in his mind, some concise and some cumbersome.

Almost subconsciously, Xiao Yuan chose the most concise method, buried himself in writing, and completed the writing of the entire program with only a dozen lines of code.

He looked at his test paper repeatedly, and felt that there was no problem, so he put down the test paper, looked left and right, and found that except for him, other students were still burying their heads in the questions, and Jiang Hua was also burying his head in the book, as for whether he was doing the questions or copying the questions, it was unknown.

Because Xiao Yuan and Jiang Hua's results determine whether Xu Xiaoyang can participate in the dinner, he has been paying close attention to the two of them, and saw Xiao Yuan raise his head and look left and right, and now the time has only passed half an hour, so he thought that Xiao Yuan was in trouble like the last one, so he walked over.

"How long has it been?" Xiao Yuan saw Xu Xiaoyang coming over and asked.

"It's more than thirty minutes, and there's still an hour, so there's plenty of time." Xu Xiaoyang replied.

"Oh, there's still more than an hour, I'm done, turn in the papers." Xiao Yuan felt that instead of wasting time sitting in the classroom, it was better to go out for a walk.

"You're done?" Xu Xiaoyang's eyes widened in disbelief, and asked, although his voice had been deliberately lowered, but because the classroom was very quiet, it still attracted the attention of almost everyone, and it was also a little incredible for them to be able to complete all the questions in half an hour.

"Yes, I'm done." Xiao Yuan confirmed, sorted out the test papers, handed them to Xu Xiaoyang, and then left the classroom under the gaze of him and all the students.

Xu Xiaoyang took Xiao Yuan's test paper back to the podium, and the students of several associations who were invigilating in the classroom came over curiously, and looked at Xiao Yuan's test paper with Xu Xiaoyang, because they had standard answers in their hands, so the previous questions were read quickly, Xiao Yuan was able to make the previous questions involving data structures and coding operations 100% correctly, which surprised them, but Xu Xiaoyang laughed, the original worry was swept away, the more powerful Xiao Yuan was, the greater his hope of being able to participate in the dinner.

Soon they saw the final additional question, the first Hanoi tower Xiao Yuan gave a very standard recursive algorithm, and the standard answer is almost the same, by this time, Xu Xiaoyang has been able to determine that even if Xiao Yuan can't do the last additional question, it should not be a problem for him to pass the selection, but Xu Xiaoyang still wants to see Xiao Yuan's answer to the last question.

The last additional question was on the other side of the test paper, Xu Xiaoyang flipped over, but saw a program with only ten lines of code, and felt a little surprised and disappointed, because the program on the standard answer has at least fifty or sixty lines, which is too different from the program given by Xiao Yuan, and similarly, he doesn't think that such a large logic problem involving more than a dozen logical judgment conditions can be solved with ten lines of code.

Although he was a little disappointed, Xu Xiaoyang still read patiently, and after reading a few lines, he raised his head, looked at several of his classmates gathered around, and asked, "Which of you can understand?" ”

Several other students shook their heads with a wry smile, because they didn't understand what Xiao Yuan wrote, and since they couldn't understand it, they didn't dare to draw conclusions about this program easily.

"Why don't we input this program into the computer and compile and run it and see if we can get the result?" For the sake of prudence, Xu Xiaoyang suggested.

"Okay, that's it." Several others nodded in agreement.

Because there was no computer in this classroom, Xu Xiaoyang took the test papers, walked out of the classroom, and went down to the teaching building, where the computer room of the computer department was located in the office building, and he was going to find a computer there to verify Xiao Yuan's algorithm.

After getting off the teaching building, Xu Xiaoyang saw that Xiao Yuan was looking at the two newspaper columns there under the teaching building, so he called him over and went to the office building together.

ps: Today's two shifts are over.