Chapter 71: Chapter 67 Olympic Competition
The compressed file sent by Zhang Zhen, once decompressed, contained only two files.
One was an overview of the subpackage, explaining what functionality should be implemented under the main framework.
Zhao Yi took a careful look.
The content of the overview was about inputting the collected data, organizing and analyzing it, and then outputting an arranged set of data.
The content of this subpackage computation is obviously very important, just like simply ranking scores. If the ranking results of a class of students are erroneous, it could affect the issuing of certificates, the selection of outstanding students, and even the mindset of both students and parents.
Wait a minute. freewebnovel.cσ๓
Of course, computing with the subpackage is not as simple as grading. The collected data has many attributes, each with different degrees of importance. It requires a special algorithm to assign scores, which then need to be calculated and analyzed to finally provide a detailed ranking.
The second file provides the program framework and requirements.
Since it’s only for the subpackage work, the requirements are not as stringent. As long as the output data is correct, it’s enough. Once it’s done and sent over, the other team will make some improvements and adjustments to better integrate the program into the system.
Zhao Yi opened the programming software, copied the framework directly, and began testing "Connection Law".
"First step is to write an input package, categorize different types..."
["Connection Law"!]
"Next is to establish small project groups..."
["Connection Law"!]
"Then comes comparison..."
["Connection Law"!]
It works!
Zhao Yi thought to decompose the coding work into smaller steps, trying to use "Connection Law" for each little step. With this, he realized that he could formulate the content of the following few lines or dozen lines of code practically effortlessly.
His fingers were continuously typing, without stopping even once.
Next, he began to extend the use of "Connection Law", no longer distinguishing steps in such detail, and applying it directly to slightly larger tasks.
After using it successively twice, he found that his energy value had decreased--
By one point!
Although the energy consumption of one point is not much, he only wrote about twenty lines of code. A few hundred lines would be quite noticeable consumption.
But his fingers kept on typing.
A line of code only took about three to four seconds on average, while the longer ones didn’t take more than ten seconds. A few hundred lines would barely require a few tens of minutes.
Of course.
This amount of consumption wasn’t excessive.
What Zhao Yi cared more about were the rules of "Connection Law".
As for the work at hand, the more finely he divided the content, the less energy it consumed. If the content wasn’t divided as finely, it required more energy.
But at the same time, consuming energy had its advantages.
The code written by "Connection Law" was incredibly simplified and rigorous, while the details he thought of himself weren’t as perfect.
It was as if he was decorating a house.
Planning the wall, floor, and the arrangement of various furniture and electrical appliances separately, using the best materials, and buying the best furniture and appliances, but when put together, unsightly mismatches might happen.
"Connection Law" was equivalent to an interior designer.
It could design every part perfectly, and harmonize the combination of disparate items, resulting in a perfect match.
...
While testing "Connection Law", the subpackage design work was completed.
Zhao Yi typed the final sentence, then ran and debugged it. He tried inputting data several times and didn’t find any problems.
"It should be fine, right?"
He was about to send it to Zhang Zhen, but noticed that only half an hour had passed?
"Forget it!"
"I’ll send it tomorrow!"
Completing the task in half an hour was a bit unbelievable. Even experienced algorithm engineers take at least a full day for a similar task.
Actually, coding and entering the code only took up a part of the time. Debugging, running, and improving the code consumed indeterminate amounts of time.
The code written by "Connection Law" was already very refined. The errors mostly occurred during the input process due to typos and not due to design or algorithmic errors.
Zhao Yi started feeling a headache.
He quickly shut down the computer and went straight to bed.
...
The next day, he woke up feeling refreshed, and a new day of studying and earning Study Coins began.
He biked to school in the morning for exercise.
He teased Lin Xiaoqing a bit as per his daily routine. fɾēewebnσveℓ.com
For some reason, Lin Xiaoqing seemed somewhat dull when she heard his banter. She seemed to be unresponsive, or it’s as if she completely ignored his jokes.
"Has she developed a resistance?"
Zhao Yi had no choice but to change targets and talk to other girls instead.
It worked wonders!
[Tease, target: Luo Rui, Earning: +2 Study Coins]
[Flirting with Girls, Target: Wang Jincui, +2 Study Coins.]
Zhao Yi’s confidence in his charm soared by several percentage points, but whenever he teased other girls, he kept feeling a pair of eyes staring at him.
Sensing carefully.
Was that... murderous intent!?
Zhao Yi quickly turned his head to look at Lin Xiaoqing, only to find her engrossed in her book.
Was it an illusion?
Actually, he had no interest in small talk with the girls, especially those in the front row of the classroom...
Ahem.
Zhao Yi had no height preference, but a height of over one and a half meters coupled with a round face and chubby body, some even with adolescence freckles?
Forget it!
It’s better to be alone.
Sage mode for studying, activate!
The results of a day’s hard work were very rewarding.
Apart from the daily coursework, he also managed to devour the biology textbook for the second half of the eleventh grade. He only skimmed through it, but still remembered many key points.
After the math class in the afternoon, Niu Lianhua called a few people to the office, namely Sun Liang, He Ronghua, Zhao Yi, Lin Xiaoqing, and Zhou Xin.
The top five in the Monthly Test in Mathematics!
On the way.
Lin Xiaoqing began guessing, "It’s definitely the Mathematical Olympiad, the school wants us to participate."
"Should be."
He Ronghua nodded in agreement.
Zhao Yi looked at everyone and asked, "Isn’t the Olympiad very difficult? Do we have a chance if we participate?"
"How can there be no chance!" Lin Xiaoqing pouted discontentedly, "As long as it’s a competition, there’s always a chance!"
"Okay, okay!"
Zhao Yi couldn’t be bothered to argue with the tenacious girl.
"Humph!"
Another routine snorting look.
When they arrived at the office, Niu Lianhua indeed started talking about the competition.
The Olympic Competition has many subjects.
The Mathematical Olympiad is the most important, if you get a provincial first-prize, you can get an extra twenty points in the College Entrance Examination. Other subjects include physics, chemistry, informatics and biology, each having different policies for adding scores and admissions for the College Entrance Examination.
Niu Lianhua said, "The school collectively applies only for mathematics. If you guys have any friends who want to participate in the Olympiad in other subjects, they can register with their respective teachers."
She looked at Zhao Yi, "Zhao Yi, do you want to register for the Informatics Competition?"
"What’s the use of applying for that? Does it also add points to the college entrance examination?" Zhao Yi asked doubtfully, as he had no knowledge in this area.
"The Informatics Competition is even more powerful than the Mathematical Olympiad. If you win the highest award, you have a chance to be admitted directly to the Computer Science department of a top University." Niu Lianhua said, her eyes shining.
If it were before, a student of No. 13 Middle School participating in the Informatics Competition would have been unthinkable. After all, most of the participating students have been trained in programming from a young age.
The student in front is different!
He is a computer genius who cracked a Mac, perhaps with some simple training, he could win a prize.
Zhao Yi shook his head immediately after hearing this, "If I want to study Computer Science, I don’t need to participate in any competition."
True!
Niu Lianhua thought of the rumor that the Computer Science department of a top university had invited Zhao Yi to attend with reduced grades.
Zhao Yi’s grades are not bad now and he also has some fame, so it’s not difficult for him to enter a top university through special recruitment. Indeed, there’s no need for him to participate in any other competitions.
"So, what major do you want to study?" Niu Lianhua asked with interest.
Everyone else also looked over.
"I haven’t decided yet, maybe a science major, maybe medicine, biology or something... In any case, Computer Science is definitely out!" Zhao Yi was very sure about this.
Niu Lianhua still didn’t understand, but what mattered was the Mathematical Olympiad.
She mentioned the schedule, stating that in the near future, they would open a classroom for a few people to study Olympiad questions in their spare time. She would also come over for guidance.
"Even though I don’t expect us to win a big prize, we still have to take it seriously!"
Niu Lianhua said.
While she was speaking, she was looking at Sun Liang the whole time, as if she was explaining to him alone.
The others were ignored.
After everything was said and done, Niu Lianhua continued to speak seriously to Sun Liang, "You have never been trained for the Olympiad, right? Recently, do more Olympiad problems, get used to it. With your math skills, it should be pretty easy to get past the city level."
"It’s the same for all of you!"
Finally, Niu Lianhua remembered the others, "Even if you can’t win prizes, participating in the Mathematical Olympiad can broaden your thinking skills. As this year’s College Entrance Examination questions are difficult, it’s a good chance to practice some tough problems."
She hasn’t even participated yet, and she’s already sure she’s getting eliminated?
Zhao Yi turned to look at the expectant Sun Liang, feeling a sudden surge of... competitive spirit?
After all, he’s got two divine skills on hand!
It’s not about winning a provincial-level competition, but passing the first city-level barrier should be fairly easy, right?