精華區beta Marginalman 關於我們 聯絡資訊
蛤 這甚麼題目 我直接寫的 要出門懶得修成O(1)了 應該一行解吧 反正有過 def flowerGame(self, n: int, m: int) -> int: rets = 0 for i in range(1, n+1): if i%2==1: rets += (m//2) else: rets += ((m+1)//2) return rets -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.132.58.28 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Marginalman/M.1756427358.A.91C.html
davie11333: 別捲惹 08/29 08:30
sustainer123: 大師 08/29 08:32
wu10200512: 別卷了 08/29 08:42