kutakuta

雑記です

View My GitHub Profile

020 - Log Inequality (★3)

2025-09-25

問題

解答

提出 #69584313

type I = [Int]
type O = Bool

solve :: I -> O
solve [a, b, c] = a < c^b

logを含まない不等式に変形して整数で比較する。

ライブラリに追加

showBBool :: String -> String -> Bool -> B.ByteString
showBBool t _ True = B.pack t 
showBBool _ f False = B.pack f

Boolを文字列に変換する関数を追加した。