Skip to main content
added 72 characters in body
Source Link
Sundar R
  • 6.6k
  • 21
  • 33

Perl 5 with   -p, 1818 15 bytes

$_=int(~$_=1+--$_/100)+1100|0 

Try it online!Try it online!

(-3 whole bytes, thanks to @Dom Hastings.)

Or with -p -MPOSIX:

1515 13 bytes

$_=ceil($_$_=ceil$_/100) 

Try it online!Try it online!

(-2 bytes, again thanks to @Dom Hastings.)

Perl 5 with -p, 18 bytes

$_=int(~-$_/100)+1 

Try it online!

Or with -p -MPOSIX:

15 bytes

$_=ceil($_/100) 

Try it online!

Perl 5   -p, 18 15 bytes

$_=1+--$_/100|0 

Try it online!

(-3 whole bytes, thanks to @Dom Hastings.)

Or with -p -MPOSIX:

15 13 bytes

$_=ceil$_/100 

Try it online!

(-2 bytes, again thanks to @Dom Hastings.)

Source Link
Sundar R
  • 6.6k
  • 21
  • 33

Perl 5 with -p, 18 bytes

$_=int(~-$_/100)+1 

Try it online!

Or with -p -MPOSIX:

15 bytes

$_=ceil($_/100) 

Try it online!