Skip to main content
added 56 characters in body
Source Link
flawr
  • 43.9k
  • 7
  • 104
  • 249

Matlab, 6060 54 bytes

This would be Matlab's special field IF we could use builtin functions...

Thanks @sanchises for fixing the error I missed.

c=0;a=input('');for A=a;v=cA=a;v=c+1:c+A;d(v,v)=1;c=c+A+1;end disp(d)=1;c=c+A;end;d

Matlab, 60 bytes

This would be Matlab's special field IF we could use builtin functions...

c=0;a=input('');for A=a;v=c:c+A;d(v,v)=1;c=c+A+1;end disp(d)

Matlab, 60 54 bytes

This would be Matlab's special field IF we could use builtin functions...

Thanks @sanchises for fixing the error I missed.

c=0;a=input('');for A=a;v=c+1:c+A;d(v,v)=1;c=c+A;end;d
added 6 characters in body
Source Link
flawr
  • 43.9k
  • 7
  • 104
  • 249

Matlab, 60 bytes

This would be Matlab's special field IF we could use builtin functions...

c=0;a=input('');for A=a;v=c:c+A;d(v,v)=1;c=c+A+1;end disp(d)

Matlab, 60

This would be Matlab's special field IF we could use builtin functions...

c=0;a=input('');for A=a;v=c:c+A;d(v,v)=1;c=c+A+1;end disp(d)

Matlab, 60 bytes

This would be Matlab's special field IF we could use builtin functions...

c=0;a=input('');for A=a;v=c:c+A;d(v,v)=1;c=c+A+1;end disp(d)
deleted 1 character in body
Source Link
Martin Ender
  • 197.2k
  • 67
  • 447
  • 975

Matlab (60), 60

This would be Matlab's special field IF we could use builtin functions...

c=0;a=input('');for A=a;v=c:c+A;d(v,v)=1;c=c+A+1;end disp(d)

Matlab (60)

This would be Matlab's special field IF we could use builtin functions...

c=0;a=input('');for A=a;v=c:c+A;d(v,v)=1;c=c+A+1;end disp(d)

Matlab, 60

This would be Matlab's special field IF we could use builtin functions...

c=0;a=input('');for A=a;v=c:c+A;d(v,v)=1;c=c+A+1;end disp(d)
Source Link
flawr
  • 43.9k
  • 7
  • 104
  • 249
Loading