Skip to main content
deleted 1 character in body
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372

Matlab, 325320

A=(input('','s'));nnz(floor(modrem(bsxfun(@times,[A 0],2.^(-7:0)'),2)))*~isequal*~strcmp(A,'test')

Matlab, 325

A=(input('','s'));nnz(floor(mod(bsxfun(@times,[A 0],2.^(-7:0)'),2)))*~isequal(A,'test')

Matlab, 320

A=(input('','s'));nnz(floor(rem(bsxfun(@times,[A 0],2.^(-7:0)'),2)))*~strcmp(A,'test')
deleted 16 characters in body
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372

Matlab, 91 107 bytes325

s=A=(input('','s'));nnz(floor(mod(bsxfun(@times,[s[A 0],2.^(-7:0)'),2)))*~isequal(sA,'test')

Matlab, 91 107 bytes

s=(input('','s'));nnz(floor(mod(bsxfun(@times,[s 0],2.^(-7:0)'),2)))*~isequal(s,'test')

Matlab, 325

A=(input('','s'));nnz(floor(mod(bsxfun(@times,[A 0],2.^(-7:0)'),2)))*~isequal(A,'test')
deleted 20 characters in body
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372

Matlab, 10791 107 bytes

s=(input('','s'));if isequal;nnz(s,'test'),0
else
t=floorfloor(mod(bsxfun(@times,[s 0],2.^(-7:0)'),2));sum(t(:)*~isequal(s,'test')
end

Matlab, 107 bytes

s=(input('','s'));if isequal(s,'test'),0
else
t=floor(mod(bsxfun(@times,[s 0],2.^(-7:0)'),2));sum(t(:))
end

Matlab, 91 107 bytes

s=(input('','s'));nnz(floor(mod(bsxfun(@times,[s 0],2.^(-7:0)'),2)))*~isequal(s,'test')
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372
Loading