精華區beta Programming 關於我們 聯絡資訊
※ 引述《btocola@kkcity.com.tw (btocola)》之銘言: > 原來如此呀~,那受教了! > 照您的說法,請教一下200!的乘績,您要用什麼型態的變數來裝它? > 或是說,您有特別的算法可以求出結果? 不要想太多。 這種東西用最爛的方法, 都可以用 unsigned long long array 來存, 高興存多少就存多少, 然後只要實作它的乘法運算, 就可以搞定它了, 這種很爛的寫法都不會讓時間複雜度衝到 200! 去。 -- Name: Tseng, Ling-hua E-mail Address: uranus@it.muds.net School: National Chung Cheng University Department: Computer Science and Information Engineering Researching: Porting GCC and Implementing VLIW instruction scheduler in GCC Homepage: https://it.muds.net/~uranus -- ╔═══╗ ┼────────────────────────╮ 狂狷 Origin:[ 狂 狷 年 少 ] whshs.cs.nccu.edu.tw ╰─╮ 年少 ┼╮ < IP:140.119.164.16 > ╰─╮ ╚╦═╦╝ From:218-171-136-237.dynamic.hinet.net ─╨─╨─ KGBBS 遨翔"BBS"的狂狷不馴;屬於年少的輕狂色彩