Skip to main content
edited body
Source Link
Alnitak
  • 144
  • 6

C, 35, 34 27 bytes

f(n){n/=time(0)/86400%7-3;86400%7^3;}

-7 bytes with thanks to @MartinEnder and @Dennis

Try it online!

C, 35, 34 27 bytes

f(n){n/=time(0)/86400%7-3;}

-7 bytes with thanks to @MartinEnder and @Dennis

Try it online!

C, 35, 34 27 bytes

f(n){n/=time(0)/86400%7^3;}

-7 bytes with thanks to @MartinEnder and @Dennis

Try it online!

added 38 characters in body
Source Link
Alnitak
  • 144
  • 6

C, 35, 34 3427 bytes

f(n){time(&n);n/=((n/86400=time(0)%7/86400%7-3);3;}

Try it online!-7 bytes with thanks to @MartinEnder and @Dennis

Try it online!

C, 35 34 bytes

f(n){time(&n);n/=((n/86400)%7-3);}

Try it online!

C, 35, 34 27 bytes

f(n){n/=time(0)/86400%7-3;}

-7 bytes with thanks to @MartinEnder and @Dennis

Try it online!

added 19 characters in body
Source Link
Alnitak
  • 144
  • 6

C, 3535 34 bytes

f(n){time(&n);n/=((n/86400)%7!=3-3);}

Try it online!

C, 35 bytes

f(n){time(&n);n/=((n/86400)%7!=3);}

Try it online!

C, 35 34 bytes

f(n){time(&n);n/=((n/86400)%7-3);}

Try it online!

Source Link
Alnitak
  • 144
  • 6
Loading