首先注意到為了讓題目可以在十分鐘內回答出來,老師簡化了回傳值,並且限定輸入>=1,而我當下太在意小數點的精確度,而回答了IEEE 754的浮點數規格,然後打算用LUT的方式確保小數點,但這題若只要回傳"整數",我們可以考慮以下幾個例子
Jun 14, 2025contributed by < TonyLinX >
May 30, 2025contributed by willy-liu
May 9, 2025contributed by < TonyLinX >
Apr 6, 2025or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up