Skip to main content
deleted 21 characters in body
Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825

Python 2, 7374 (length) + 150130 (penalty) = 223204

k,n=2*[1]
for(c)infor[c]in(input(n)*2*2*2)[:1:-1]:n,k=k*ord(c[:n%16%15])+n/2,k*128

Output is via exit code, socode; 0 is truthy and, 1 is falsy. Produces garbage output to STDOUT and STDERR.

Try it online!Try it online!

Binary dump

00000000: 01101011 00101100 01101110 00111101 00110010 00101010  k,n=2*
00000006: 01011011 00110001 01011101 00001010 01100110 01101111  [1].fo
0000000c: 01110010 0010100001011011 01100011 0010100101011101 01101001 01101110  r(c)inr[c]in
00000012: 00101000 01101001 01101110 01110000 01110101 01110100  (input
00000018: 00101000 01101110 00101001 00101010 00110010 00101010 00110010  (n)*2*2*2*
0000001e: 00110010 00101010 00110010 00101001 01011011 00111010 00110001  *22*2)[:1
00000024: 00110001 00111010 00101101 00110001 01011101 00111010 01101110  1:-1]:n
0000002a: 01101110 00101100 01101011 00111101 01101011 00101010 01101111  n,k=k*ok=k*
00000030: 01101111 01110010 01100100 00101000 01100011 01011011 00111010  rdord(c[:
00000036: 00111010 01101110 00100101 00110001 00110110 00100101 00110001  n%16%1:n%16%
0000003c: 00110001 00110101 01011101 00101001 00101011 01101110 00101111  5]15])+n/
00000042: 00101111 00110010 00101100 01101011 00101010 00110001 00110010  /2,k*12k*1
00000048: 00111000        00110010 00111000                                      828

Python 2, 73 (length) + 150 (penalty) = 223

k,n=2*[1]
for(c)in(input()*2*2*2)[:1:-1]:n,k=k*ord(c[:n%16%15])+n/2,k*128

Output is via exit code, so 0 is truthy and 1 is falsy.

Try it online!

Binary dump

00000000: 01101011 00101100 01101110 00111101 00110010 00101010  k,n=2*
00000006: 01011011 00110001 01011101 00001010 01100110 01101111  [1].fo
0000000c: 01110010 00101000 01100011 00101001 01101001 01101110  r(c)in
00000012: 00101000 01101001 01101110 01110000 01110101 01110100  (input
00000018: 00101000 00101001 00101010 00110010 00101010 00110010  ()*2*2
0000001e: 00101010 00110010 00101001 01011011 00111010 00110001  *2)[:1
00000024: 00111010 00101101 00110001 01011101 00111010 01101110  :-1]:n
0000002a: 00101100 01101011 00111101 01101011 00101010 01101111  ,k=k*o
00000030: 01110010 01100100 00101000 01100011 01011011 00111010  rd(c[:
00000036: 01101110 00100101 00110001 00110110 00100101 00110001  n%16%1
0000003c: 00110101 01011101 00101001 00101011 01101110 00101111  5])+n/
00000042: 00110010 00101100 01101011 00101010 00110001 00110010  2,k*12
00000048: 00111000                                               8

Python 2, 74 (length) + 130 (penalty) = 204

k,n=2*[1]
for[c]in(input(n)*2*2*2)[:1:-1]:n,k=k*ord(c[:n%16%15])+n/2,k*128

Output is via exit code; 0 is truthy, 1 is falsy. Produces garbage output to STDOUT and STDERR.

Try it online!

Binary dump

00000000: 01101011 00101100 01101110 00111101 00110010 00101010  k,n=2*
00000006: 01011011 00110001 01011101 00001010 01100110 01101111  [1].fo
0000000c: 01110010 01011011 01100011 01011101 01101001 01101110  r[c]in
00000012: 00101000 01101001 01101110 01110000 01110101 01110100  (input
00000018: 00101000 01101110 00101001 00101010 00110010 00101010  (n)*2*
0000001e: 00110010 00101010 00110010 00101001 01011011 00111010  2*2)[:
00000024: 00110001 00111010 00101101 00110001 01011101 00111010  1:-1]:
0000002a: 01101110 00101100 01101011 00111101 01101011 00101010  n,k=k*
00000030: 01101111 01110010 01100100 00101000 01100011 01011011  ord(c[
00000036: 00111010 01101110 00100101 00110001 00110110 00100101  :n%16%
0000003c: 00110001 00110101 01011101 00101001 00101011 01101110  15])+n
00000042: 00101111 00110010 00101100 01101011 00101010 00110001  /2,k*1
00000048: 00110010 00111000                                      28
added 147 characters in body
Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825

Python 2, 6773 (length) + 210150 (penalty) = 277223

k=m=1k,n=2*[1]
for(c)in(input()*8*2*2*2)[:21:-1]:mn,k=m/2+ordk=k*ord(cc[:n%16%15])*k+n/2,k*128;1%(m%16%15)k*128

Output is via exit code, so 0 is truthy and 1 is falsy.

Try it online!Try it online!

Binary dump

00000000: 01101011001111010110110100111101001100010000101001101011 00101100 01101110 k=m=1.00111101 00110010 00101010  k,n=2*
00000006: 01100110011011110111001000101000011000110010100101011011 00110001 for(c)01011101 00001010 01100110 01101111  [1].fo
0000000c: 01101001011011100010100001101001011011100111000001110010 00101000 in01100011 00101001 01101001 01101110  r(inpc)in
00000012: 01110101011101000010100000101001001010100011100000101000 01101001 ut01101110 01110000 01110101 01110100  ()*8input
00000018: 00101001010110110011101000110010001110100010110100101000 00101001 00101010 00110010 00101010 00110010  ()[:2:-*2*2
0000001e: 00110001010111010011101001101101001011000110101100101010 00110010 00101001 1]01011011 00111010 00110001  *2)[:m,k1
00000024: 00111101011011010010111100110010001010110110111100111010 00101101 =m/2+o00110001 01011101 00111010 01101110  :-1]:n
0000002a: 01110010011001000010100001100011001010010010101000101100 01101011 rd(c)*00111101 01101011 00101010 01101111  ,k=k*o
00000030: 01101011001011000110101100101010001100010011001001110010 01100100 k,k*1200101000 01100011 01011011 00111010  rd(c[:
00000036: 00111000001110110011000100100101001010000110110101101110 00100101 8;1%(m00110001 00110110 00100101 00110001  n%16%1
0000003c: 00100101001100010011011000100101001100010011010100110101 01011101 %16%1500101001 00101011 01101110 00101111  5])+n/
00000042: 0010100100110010 00101100 01101011 00101010 00110001 00110010  2,k*12
00000048: 00111000                                        )       8

Python 2, 67 (length) + 210 (penalty) = 277

k=m=1
for(c)in(input()*8)[:2:-1]:m,k=m/2+ord(c)*k,k*128;1%(m%16%15)

Output is via exit code, so 0 is truthy and 1 is falsy.

Try it online!

Binary dump

00000000: 011010110011110101101101001111010011000100001010  k=m=1.
00000006: 011001100110111101110010001010000110001100101001  for(c)
0000000c: 011010010110111000101000011010010110111001110000  in(inp
00000012: 011101010111010000101000001010010010101000111000  ut()*8
00000018: 001010010101101100111010001100100011101000101101  )[:2:-
0000001e: 001100010101110100111010011011010010110001101011  1]:m,k
00000024: 001111010110110100101111001100100010101101101111  =m/2+o
0000002a: 011100100110010000101000011000110010100100101010  rd(c)*
00000030: 011010110010110001101011001010100011000100110010  k,k*12
00000036: 001110000011101100110001001001010010100001101101  8;1%(m
0000003c: 001001010011000100110110001001010011000100110101  %16%15
00000042: 00101001                                          )

Python 2, 73 (length) + 150 (penalty) = 223

k,n=2*[1]
for(c)in(input()*2*2*2)[:1:-1]:n,k=k*ord(c[:n%16%15])+n/2,k*128

Output is via exit code, so 0 is truthy and 1 is falsy.

Try it online!

Binary dump

00000000: 01101011 00101100 01101110 00111101 00110010 00101010  k,n=2*
00000006: 01011011 00110001 01011101 00001010 01100110 01101111  [1].fo
0000000c: 01110010 00101000 01100011 00101001 01101001 01101110  r(c)in
00000012: 00101000 01101001 01101110 01110000 01110101 01110100  (input
00000018: 00101000 00101001 00101010 00110010 00101010 00110010  ()*2*2
0000001e: 00101010 00110010 00101001 01011011 00111010 00110001  *2)[:1
00000024: 00111010 00101101 00110001 01011101 00111010 01101110  :-1]:n
0000002a: 00101100 01101011 00111101 01101011 00101010 01101111  ,k=k*o
00000030: 01110010 01100100 00101000 01100011 01011011 00111010  rd(c[:
00000036: 01101110 00100101 00110001 00110110 00100101 00110001  n%16%1
0000003c: 00110101 01011101 00101001 00101011 01101110 00101111  5])+n/
00000042: 00110010 00101100 01101011 00101010 00110001 00110010  2,k*12
00000048: 00111000                                               8
deleted 83 characters in body
Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825

Python 2, 67 (length) + 240210 (penalty) = 307277

k=m=1
for(c)in(input()*8)[:2:-1]:m,k=m/2+ord(c)*k,k*128;0%k*128;1%(m%16%15)

Output is via exit code, so 0 is truthy and 1 is falsy.

Try it online!Try it online!

Binary dump

00000000: 011010110011110101101101001111010011000100001010  k=m=1.
00000006: 011001100110111101110010001010000110001100101001  for(c)
0000000c: 011010010110111000101000011010010110111001110000  in(inp
00000012: 011101010111010000101000001010010010101000111000  ut()*8
00000018: 001010010101101100111010001100100011101000101101  )[:2:-
0000001e: 001100010101110100111010011011010010110001101011  1]:m,k
00000024: 001111010110110100101111001100100010101101101111  =m/2+o
0000002a: 011100100110010000101000011000110010100100101010  rd(c)*
00000030: 011010110010110001101011001010100011000100110010  k,k*12
00000036: 001110000011101100110000001001010010100001101101001110000011101100110001001001010010100001101101  8;0%8;1%(m
0000003c: 001001010011000100110110001001010011000100110101  %16%15
00000042: 00101001                                          )

Python 2, 67 (length) + 240 (penalty) = 307

k=m=1
for(c)in(input()*8)[:2:-1]:m,k=m/2+ord(c)*k,k*128;0%(m%16%15)

Output is via exit code, so 0 is truthy and 1 is falsy.

Try it online!

Binary dump

00000000: 011010110011110101101101001111010011000100001010  k=m=1.
00000006: 011001100110111101110010001010000110001100101001  for(c)
0000000c: 011010010110111000101000011010010110111001110000  in(inp
00000012: 011101010111010000101000001010010010101000111000  ut()*8
00000018: 001010010101101100111010001100100011101000101101  )[:2:-
0000001e: 001100010101110100111010011011010010110001101011  1]:m,k
00000024: 001111010110110100101111001100100010101101101111  =m/2+o
0000002a: 011100100110010000101000011000110010100100101010  rd(c)*
00000030: 011010110010110001101011001010100011000100110010  k,k*12
00000036: 001110000011101100110000001001010010100001101101  8;0%(m
0000003c: 001001010011000100110110001001010011000100110101  %16%15
00000042: 00101001

Python 2, 67 (length) + 210 (penalty) = 277

k=m=1
for(c)in(input()*8)[:2:-1]:m,k=m/2+ord(c)*k,k*128;1%(m%16%15)

Output is via exit code, so 0 is truthy and 1 is falsy.

Try it online!

Binary dump

00000000: 011010110011110101101101001111010011000100001010  k=m=1.
00000006: 011001100110111101110010001010000110001100101001  for(c)
0000000c: 011010010110111000101000011010010110111001110000  in(inp
00000012: 011101010111010000101000001010010010101000111000  ut()*8
00000018: 001010010101101100111010001100100011101000101101  )[:2:-
0000001e: 001100010101110100111010011011010010110001101011  1]:m,k
00000024: 001111010110110100101111001100100010101101101111  =m/2+o
0000002a: 011100100110010000101000011000110010100100101010  rd(c)*
00000030: 011010110010110001101011001010100011000100110010  k,k*12
00000036: 001110000011101100110001001001010010100001101101  8;1%(m
0000003c: 001001010011000100110110001001010011000100110101  %16%15
00000042: 00101001                                          )
deleted 83 characters in body
Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825
Loading
deleted 83 characters in body
Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825
Loading
added 1096 characters in body
Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825
Loading
Post Undeleted by Dennis
added 17 characters in body
Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825
Loading
Post Deleted by Dennis
Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825
Loading