"it is good"!

After eating, he lay down and fell asleep.

When I woke up tired the next day, breakfast was already on the table and I received a text message on my phone.

Dad: Your mother asked me to remind you to have breakfast.

Reply: Got it.

Ever since Zhao Zhenxi got a mobile phone, he has always tried to use it in every possible way, whether it is calling or sending text messages. If you don’t use the dozens of text messages of the monthly package, it seems to be a loss, but most of his circle of friends There is no mobile phone, and there is no recipient if you want to send a text message.

Zhao Yi shook his head funny.

After breakfast, he continued to fight vigorously.

debugging!

run!

After the screening program is compiled, it has been debugged and run. He mainly debugs the follow-up program and checks the overall operation.

Nearly [-] lines of code are running, and there are still many errors.

Even with the assistance of "Contact Rate", there are more than [-] places to be found just for input errors, and a wrong symbol will cause huge problems in the program.

Debug, modify!

Re-debugging and re-modification!

After more than two hours, the program finally ran successfully once.

Zhao Yi entered several initial states of the Rubik's Cube, and all got the expected results.

His main concern is the speed of operation.

Among them, after a set of data was input, the cpu reached its maximum efficiency in an instant, and the computer seemed to be stuck, and it took three or four seconds to get the result.

He simply added a count item nn in the screening program, and every time the screening program runs, the count item will increase a little.

Then he entered two kinds of Rubik's Cube states that can be restored in fifteen steps.

The program runs for about a second, and the result is obtained.

It turned out ok.

nn got different values, one is 36211, one is 67091.

"so little?"

Zhao Yi was surprised.

Even if he had confidence in the screening method, he never expected that such a huge amount of data would be collected in the second step of screening and comparison.

Think about it.

Screening and comparison brushes down the most computationally demanding and useless parts, and the part that continues to run eliminates more steps that confuse the Rubik's Cube.

The amount of computation increases exponentially.

Screening makes the bottom of the index smaller, and within ten steps, it will become an increase in units of thousands or hundreds, and the amount of increase can be ignored.

"If it is the most complicated situation, the number of screenings can reach tens of millions, or even hundreds of millions?"

Zhao Yi thought.

That kind of data is actually not much.

Ordinary home computers can still solve it, but the calculation time required is longer, maybe tens of seconds, maybe 1 minute, a few minutes, or ten minutes.

Even if it rises to the level of hours, it is already quite remarkable.

Now the world recognizes that the calculation of the third-order Rubik's Cube can only be done with a supercomputer, and the performance of a home computer is too poor.

After the program is designed, the rest is optimization.

Zhao Yi made an input optimization.

In order to facilitate entering the design theme, 54 colors of six interfaces were required for the input. In fact, only three faces are enough to determine the entire Rubik’s Cube.

After adding the input optimization code, only 27 colors for three faces are needed.

After that comes the detection code.

If the input Rubik's cube color is not established, the detection code will be executed and an error message will be given.

then.

Zhao Yi made a simple interface.

There are 27 spaces on the left, which can be filled with the color of the Rubik's Cube; on the right is a blank output interface, which will display the rotation results of the least steps in text form.

Add a small prompt box in the middle.

According to the running status of the program, put in three prompts: Please enter the color of the Rubik's Cube; the program is being executed, please wait; finished, please see the steps on the right.

ok!

Finish!

Looking at the interface on the computer and the answer given on the right after entering a Rubik's Cube state, Zhao Yi felt a huge sense of accomplishment emerge.

finished!

The result of several days and ten hours of work!

This is the essence!

This is art!

In the great moment of harvesting success, can you still be considered a person without pretending to be forced?

Correct!

It's about letting other people enjoy the joy together!

Zhao Yi quickly took a screenshot of the screen, then sent it to the 'computer technology exchange group', and then dived silently with a smile on his face and arms crossed.

Immediately.

The group exploded!

……

A few days ago, when Zhao Yi posted data to respond to online doubts, the group discussed the problem of calculating the third-order Rubik's cube, and the discussion went on and on, but there was no result.

Everyone thought it was over.

The day before yesterday, Zhao Yi took a video to restore the Rubik's Cube, which aroused discussions in the group again, but there was still no result.

Most people in the group are not familiar with Zhao Yi.

It is very impolite to ask questions that may involve key technologies, because the technologies involved may be invaluable.

Now seeing the picture sent by Zhao Yi, everyone in the group was shocked.

Intelligent Technology Zhang Junlei: "Is this the third-order Rubik's Cube?"

Mechanical signal Liu Chengwu: "I don't believe it! I don't believe it! I don't believe it..."

Ma Xiaojun, a Confucianism missionary: "Don't be kidding, I have been thinking about it for several days, but I have no idea at all. The amount of calculation is too huge!"

Gao Jixian: "Can you really figure it out?"

Sister Geili Qian Hong: "When I saw this, I put it directly on the work at hand, and took out the Rubik's Cube/Rubik's Cube picture from the drawer."

Qian Hong actually posted a few pictures of the Rubik's Cube, and added a sentence, "Use that calculator, come and try to calculate it. If you can figure it out, I will call you Dad."

Zhang Junlei: "Sure enough, it's Sister Geili!"

Liu Chengwu: "Give it to Sister Li!"

Ma Xiaojun: "Give it to Sister Li!"

Gao Jixian: "Sister Li, give me strength!"

Zhao Yi pursed his lips vigorously, looked at the picture and entered it into the Rubik's Cube calculator, quickly calculated the result, and then sent the screenshot to the group.

Immediately.

The group was quiet.

When Zhao Yi was about to wait for the follow-up, he suddenly heard a knock on the door, and he noticed that it was past twelve o'clock.

"So early?" He went to open the door.

A group of people stood at the door.

Sun Liang pushed the door at the front and went in.

Lin Xiaoqing and Zhao Linlin followed closely behind, laughing and chatting with each other, saying hello and entering.

There are two left outside the door.

One is a middle-aged man with a fat figure and dressed in casual clothes; the other is a tall woman in a long skirt, and she is very fashionable from top to bottom.

The middle-aged man stretched out his hand with a smile on his face, "You are Zhao Yi, a genius hacker on the Internet, right? I am Zhou Fangsheng, the director of the "Brain Power" program team."

He pointed to the woman beside him, "This is Feng Lai from Tianyuan Studio."

"You can call me Sister Feng." Feng Lai added, with a warm smile on his face.

Zhao Yi nodded and asked, "Your purpose is...?"

"We're here to meet you face to face and talk about the misunderstanding that happened earlier."

Feng Lai said bluntly, "There is a lot of public opinion on the Internet, and they say everything. I think it will have a bad impact on our column and on your life."

She looked around and asked with a smile, "Are we talking here?"

"Please come in!"

Zhao Yi glanced into the room, but turned around to give way.

Chapter 78 The characters of the masters are all weird!

Zhou Fangsheng and Feng Lai were allowed to sit in the middle of the sofa.

Lin Xiaoqing and Zhao Linlin huddled together on the small sofa beside them, looking at Zhou Fangsheng and Zhou Fangsheng curiously, as if wondering what they were doing here.

Sun Liang simply stood by.

Zhao Yi didn't care about Sun Liang either. He took the water in a disposable cup and handed it to several people respectively. Then he moved a stool and sat next to the tea table, "Let's talk now!"

Zhou Fangsheng took the water channel and thanked him, and then talked about the misunderstanding between the two parties.

"I'm the person in charge of the program group, but I can't manage everything. What the contestants say outside, as long as it doesn't affect the program, that's their freedom."

"Of course, Jia Hongning is our signed player, and everything he said has something to do with the program team."

"Here I apologize to you!"

Zhou Fangsheng did not bow, but his words seemed very sincere, and he continued, "It's not just verbal, because it has affected your life, we should also express it."

"When I came here, I discussed it with Sister Feng. The program team can give you 5 yuan as compensation."

Zhao Yidao, "Money is not a problem. The most important thing is that I don't want anything to affect my life."

Zhou Fangsheng looked at Feng Lai in surprise.

Feng Lai also looked over.

From the old residential buildings and the not-so-large living area, it can be seen that the family conditions of the students in front of them are not good. 5 yuan is definitely a huge sum of money. How could he refuse so simply? It is somewhat unexpected.

Lin Xiaoqing suddenly stood up.

She frowned slightly, but her voice was very clear, "Yes, why not!"

Lin Xiaoqing walked to Zhao Yi's side, looked at Zhou Fangsheng and continued, "Zhao Yi deserves it. The past few days have been terrible. There are always people coming to disturb and annoy me. Also, look at what is said on the Internet. , and some people say that Zhao Yi is hyping up, hoping to take advantage of the fame of "Brain Power", what are you talking about?"

Lin Xiaoqing glanced at Zhao Yi.

Zhao Yi opened his mouth in surprise, but didn't say anything, and simply let Lin Xiaoqing play.

Lin Xiaoqing seemed to be encouraged, and even her expression became more confident. She continued, "But the compensation must not be transferred directly. The source of the money is unclear. I should write something to make it clear that the money is compensation for Zhao Yi. That's how it's safe."

"what do y'all think?"

Zhou Fangsheng didn't say anything, obviously very surprised.

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

You'll Also Like