We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffe5a92 commit f0a1ecfCopy full SHA for f0a1ecf
my-submissions/m3021.go
@@ -0,0 +1,3 @@
1
+func flowerGame(n int, m int) int64 {
2
+ return int64((n + 1) / 2) * int64(m / 2) + int64(n / 2) * int64((m + 1) / 2)
3
+}
my-submissions/m3021.py
+class Solution:
+ def flowerGame(self, n: int, m: int) -> int:
+ return ceil(n / 2) * (m // 2) + (n // 2) * ceil(m / 2)
0 commit comments