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

added 132 characters in body
Source Link
Noodle9
  • 20.4k
  • 3
  • 23
  • 47

C (gcc), 47(削除) 47 (削除ここまで) 27 bytes

x;ff(d,m){for(x=3079091;m=275*m/9-30+d-m;x/=4)d+=28+x%4;m=d;2%m;}

Try it online! Try it online!

Uses formula from Lynn 's Haskell answer .

C (gcc), 47 bytes

x;f(d,m){for(x=3079091;--m;x/=4)d+=28+x%4;m=d;}

Try it online!

C (gcc), (削除) 47 (削除ここまで) 27 bytes

f(d,m){m=275*m/9-30+d-2%m;}

Try it online!

Uses formula from Lynn 's Haskell answer .

Source Link
Noodle9
  • 20.4k
  • 3
  • 23
  • 47

C (gcc), 47 bytes

x;f(d,m){for(x=3079091;--m;x/=4)d+=28+x%4;m=d;}

Try it online!

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