Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Commonmark migration
Source Link

#Clojure, (削除) 40 (削除ここまで) 39 bytes

Clojure, (削除) 40 (削除ここまで) 39 bytes

(.exec(Runtime/getRuntime)"shutdown/s")

-1 byte by changing the flag from -s to /s, which allowed me to get rid of the space.

Basically the Java answer.

Testing this was fun. Windows decided to do a firmware update on my Surface the second it shut down. Of course.

(defn shutdown []
 (.exec (Runtime/getRuntime) "shutdown -s"))

#Clojure, (削除) 40 (削除ここまで) 39 bytes

(.exec(Runtime/getRuntime)"shutdown/s")

-1 byte by changing the flag from -s to /s, which allowed me to get rid of the space.

Basically the Java answer.

Testing this was fun. Windows decided to do a firmware update on my Surface the second it shut down. Of course.

(defn shutdown []
 (.exec (Runtime/getRuntime) "shutdown -s"))

Clojure, (削除) 40 (削除ここまで) 39 bytes

(.exec(Runtime/getRuntime)"shutdown/s")

-1 byte by changing the flag from -s to /s, which allowed me to get rid of the space.

Basically the Java answer.

Testing this was fun. Windows decided to do a firmware update on my Surface the second it shut down. Of course.

(defn shutdown []
 (.exec (Runtime/getRuntime) "shutdown -s"))
Source Link
Carcigenicate
  • 3.6k
  • 2
  • 23
  • 31

#Clojure, (削除) 40 (削除ここまで) 39 bytes

(.exec(Runtime/getRuntime)"shutdown/s")

-1 byte by changing the flag from -s to /s, which allowed me to get rid of the space.

Basically the Java answer.

Testing this was fun. Windows decided to do a firmware update on my Surface the second it shut down. Of course.

(defn shutdown []
 (.exec (Runtime/getRuntime) "shutdown -s"))

AltStyle によって変換されたページ (->オリジナル) /