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 Revisions

11 of 11
added 4 characters in body
Noodle9
  • 20.4k
  • 3
  • 23
  • 47

C (gcc) -lm, (削除) 23 (削除ここまで) \$\cdots\$ (削除) 50 (削除ここまで) 27 bytes

Saved 6 bytes thanks to a'_'!!!
Added 38 bytes to fix type error kindly pointed out by S.S. Anne.
Saved 3 bytes thanks to rtpax!!!
Saved a whopping 23 bytes thanks to an idea from ErikF!!!

#define f(n)ceil(n/sqrt(2))

Try it online!

Noodle9
  • 20.4k
  • 3
  • 23
  • 47

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