There was an error while loading. Please reload this page.
1 parent 103c900 commit 28d9647Copy full SHA for 28d9647
2023/06.clj
@@ -0,0 +1,9 @@
1
+(ns wait-for-it)
2
+
3
+(defn ways-to-win [[duration record]]
4
+ (count (for [i (range (inc duration))
5
+ :let [travel-time (- duration i)]
6
+ :when (> (* travel-time i) record)]
7
+ i)))
8
9
+(reduce * (map ways-to-win durations+records))
0 commit comments