18
3
Output the following table:
一一得一
一二得二 二二得四
一三得三 二三得六 三三得九
一四得四 二四得八 三四十二 四四十六
一五得五 二五一十 三五十五 四五二十 五五二十五
一六得六 二六十二 三六十八 四六二十四 五六三十 六六三十六
一七得七 二七十四 三七二十一 四七二十八 五七三十五 六七四十二 七七四十九
一八得八 二八十六 三八二十四 四八三十二 五八四十 六八四十八 七八五十六 八八六十四
一九得九 二九十八 三九二十七 四九三十六 五九四十五 六九五十四 七九六十三 八九七十二 九九八十一
Or you can use the first three letters in its English word, in case that some languages don't support Chinese characters:
OneOneGetOne
OneTwoGetTwo TwoTwoGetFou
OneThrGetThr TwoThrGetSix ThrThrGetNin
OneFouGetFou TwoFouGetEig ThrFouTenTwo FouFouTenSix
OneFivGetFiv TwoFivOneTen ThrFivTenFiv FouFivTwoTen FivFivTwoTenFiv
OneSixGetSix TwoSixTenTwo ThrSixTenEig FouSixTwoTenFou FivSixThrTen SixSixThrTenSix
OneSevGetSev TwoSevTenFou ThrSevTwoTenOne FouSevTwoTenEig FivSevThrTenFiv SixSevFouTenTwo SevSevFouTenNin
OneEigGetEig TwoEigTenSix ThrEigTwoTenFou FouEigThrTenTwo FivEigFouTen SixEigFouTenEig SevEigFivTenSix EigEigSixTenFou
OneNinGetNin TwoNinTenEig ThrNinTwoTenSev FouNinThrTenSix FivNinFouTenFiv SixNinFivTenFou SevNinSixTenThr EigNinSevTenTwo NinNinEigTenOne
You can output in any reasonable format, e.g. plain text separated with space/comma/tab and newline, 2D array where empty places are empty or don't exist (The 2*1 place is empty so there shouldn't be anything in the array).
Code golf, shortest code in bytes win. GBK encoding is allowed, where each Chinese character use 2 bytes.
Converting Table:
一 One
二 Two
三 Thr
四 Fou
五 Fiv
六 Six
七 Sev
八 Eig
九 Nin
十 Ten
得 Get
The rest seems fairly intuitive, but could you at least explain how 十 and 得 work? – Dennis – 2018-03-09T18:26:35.137
得 is only used when the product is smaller than 10 – l4m2 – 2018-03-09T18:29:59.893
ahhh, so if it is greater that 10 instead 得 we are supposed to use 十? – Luis felipe De jesus Munoz – 2018-03-09T19:09:08.547
@LuisfelipeDejesusMunoz and [11,19] are special with a bare 十. – FrownyFrog – 2018-03-09T19:43:44.347
我能确认这是正确的。(Translation: I can confirm that this is correct) – Esolanging Fruit – 2018-03-09T19:51:00.103
It seems unfair to require a three-byte Roman string (four if you need a null terminator) in place of a two-byte Chinese character. – David Richerby – 2018-03-10T13:23:30.887
@David Richerby The roman output is a bit more expensive to fairten languages that are optimized for letters – l4m2 – 2018-03-10T14:24:44.137
Seems someone say "二五得十", and that's right but worse than "二五一十". Here "二五一十" is required
– l4m2 – 2018-03-10T16:48:49.997Why I learned 三五一十五 / 二八一十六 at school. I must attend a fake school. // Anyway, I can't recite it until maybe 4th grade. I just try to do a mental arithmetic adding, when I was asked to recite this.... – tsh – 2018-03-12T02:51:13.070
I say "一五五 二五一十 三五十五 四五二十 五五廿五" all the "x十" is expressed with a single syllable when something followed – l4m2 – 2018-03-12T04:00:30.893
@tsh Same, I learned it that way as well. – ericw31415 – 2018-03-17T19:40:31.380