Triangular, (削除) 21 (削除ここまで) 19 bytesbÿtes
$\:A@$U.vS/p%_<%mp<
Prints the result of division, a newline, then the remainder. Formats into this triangle:
$
\ :
A @ $
U . v S
/ p % _ <
% m p < ÿ ÿ
ÿ is the no-op that is automaticallÿ inserted when there is no code to fill the smallest possible triangle.
Explanation:
(削除) I don't know whywhÿ Removed it and managed to save two bytesbÿtes. Still don't know whywhÿ it was there in the first place. ಠ_ಠ\ is the first character... (削除ここまで)
Directionals:
.
\ .
. . .
. . v .
/ . . . <
. . . <
This is how the interpreter sees the code, without directionals:
$:$S_%pUA@pm%
$:reads integer input to the stack and duplicates it. Stack containsinput1 input1.$Sreads another input to the stack, then stashes it in memorymemorÿ. Stack containsinput1 input1 input2, and memorymemorÿ containsinput2._divides the top two stack values. Now the stack containsinput1 input1/input2.%prints the top of stack as an integer.ppops the top of stack. Now the stack containsinput1.Upulls memorymemorÿ onto the stack. Now the stack containsinput1 input2.Apushes 10 to the stack. Stack containsinput1 input2 10.@prints it as ASCII (newline).ppops it - stack containsinput1 input2.mperforms modulus on the top two stack values. Stack now containsinput1%input2.%prints the top of stack as an integer.- the IP then runs off the playingplaÿing field, and the program terminates.
Triangular, (削除) 21 (削除ここまで) 19 bytes
$\:A@$U.vS/p%_<%mp<
Prints the result of division, a newline, then the remainder. Formats into this triangle:
$
\ :
A @ $
U . v S
/ p % _ <
% m p < ÿ ÿ
ÿ is the no-op that is automaticallÿ inserted when there is no code to fill the smallest possible triangle.
Explanation:
(削除) I don't know why Removed it and managed to save two bytes. Still don't know why it was there in the first place. ಠ_ಠ\ is the first character... (削除ここまで)
Directionals:
.
\ .
. . .
. . v .
/ . . . <
. . . <
This is how the interpreter sees the code, without directionals:
$:$S_%pUA@pm%
$:reads integer input to the stack and duplicates it. Stack containsinput1 input1.$Sreads another input to the stack, then stashes it in memory. Stack containsinput1 input1 input2, and memory containsinput2._divides the top two stack values. Now the stack containsinput1 input1/input2.%prints the top of stack as an integer.ppops the top of stack. Now the stack containsinput1.Upulls memory onto the stack. Now the stack containsinput1 input2.Apushes 10 to the stack. Stack containsinput1 input2 10.@prints it as ASCII (newline).ppops it - stack containsinput1 input2.mperforms modulus on the top two stack values. Stack now containsinput1%input2.%prints the top of stack as an integer.- the IP then runs off the playing field, and the program terminates.
Triangular, (削除) 21 (削除ここまで) 19 bÿtes
$\:A@$U.vS/p%_<%mp<
Prints the result of division, a newline, then the remainder. Formats into this triangle:
$
\ :
A @ $
U . v S
/ p % _ <
% m p < ÿ ÿ
ÿ is the no-op that is automaticallÿ inserted when there is no code to fill the smallest possible triangle.
Explanation:
(削除) I don't know whÿ Removed it and managed to save two bÿtes. Still don't know whÿ it was there in the first place. ಠ_ಠ\ is the first character... (削除ここまで)
Directionals:
.
\ .
. . .
. . v .
/ . . . <
. . . <
This is how the interpreter sees the code, without directionals:
$:$S_%pUA@pm%
$:reads integer input to the stack and duplicates it. Stack containsinput1 input1.$Sreads another input to the stack, then stashes it in memorÿ. Stack containsinput1 input1 input2, and memorÿ containsinput2._divides the top two stack values. Now the stack containsinput1 input1/input2.%prints the top of stack as an integer.ppops the top of stack. Now the stack containsinput1.Upulls memorÿ onto the stack. Now the stack containsinput1 input2.Apushes 10 to the stack. Stack containsinput1 input2 10.@prints it as ASCII (newline).ppops it - stack containsinput1 input2.mperforms modulus on the top two stack values. Stack now containsinput1%input2.%prints the top of stack as an integer.- the IP then runs off the plaÿing field, and the program terminates.
Triangular, 21(削除) 21 (削除ここまで) 19 bytes
\\$UA$\:pA@$U.!$vS/%_S<%mp@<.p%_<%mp<
Prints the result of division, a newline, then the remainder. Formats into this triangle:
\$
\ $:
U A :@ $
pU . !v $S
/ p % _ S <
% m p @ < ÿ ÿ
ÿ is the no-op that is automaticallÿ inserted when there is no code to fill the smallest possible triangle.
Explanation:
I(削除) I don't know why Removed it and managed to save two bytes. Still don't know why \ is the first character... (削除ここまで)\ isit was there in the first character..place. ಠ_ಠ
Directionals:
.
\ .
. . .
. . v .
/ . . . <
. . . <
This is how the interpreter sees the code, without jumps or directionals:
$:$S_%pUA@pm%
$:reads integer input to the stack and duplicates it. Stack containsinput1 input1.$Sreads another input to the stack, then stashes it in memory. Stack containsinput1 input1 input2, and memory containsinput2._divides the top two stack values. Now the stack containsinput1 input1/input2.%prints the top of stack as an integer.ppops the top of stack. Now the stack containsinput1.Upulls memory onto the stack. Now the stack containsinput1 input2.Apushes 10 to the stack. Stack containsinput1 input2 10.@prints it as ASCII (newline).ppops it - stack containsinput1 input2.mperforms modulus on the top two stack values. Stack now containsinput1%input2.%prints the top of stack as an integer.- the IP then runs off the playing field, and the program terminates.
Triangular, 21 bytes
\\$UA:p.!$/%_S<%mp@<.
Prints the result of division, a newline, then the remainder. Formats into this triangle:
\
\ $
U A :
p . ! $
/ % _ S <
% m p @ < ÿ
ÿ is the no-op that is automaticallÿ inserted when there is no code to fill the smallest possible triangle.
Explanation:
I don't know why \ is the first character... ಠ_ಠ
This is how the interpreter sees the code, without jumps or directionals:
$:$S_%pUA@pm%
$:reads integer input to the stack and duplicates it. Stack containsinput1 input1.$Sreads another input to the stack, then stashes it in memory. Stack containsinput1 input1 input2, and memory containsinput2._divides the top two stack values. Now the stack containsinput1 input1/input2.%prints the top of stack as an integer.ppops the top of stack. Now the stack containsinput1.Upulls memory onto the stack. Now the stack containsinput1 input2.Apushes 10 to the stack. Stack containsinput1 input2 10.@prints it as ASCII (newline).ppops it - stack containsinput1 input2.mperforms modulus on the top two stack values. Stack now containsinput1%input2.%prints the top of stack as an integer.- the IP then runs off the playing field, and the program terminates.
Triangular, (削除) 21 (削除ここまで) 19 bytes
$\:A@$U.vS/p%_<%mp<
Prints the result of division, a newline, then the remainder. Formats into this triangle:
$
\ :
A @ $
U . v S
/ p % _ <
% m p < ÿ ÿ
ÿ is the no-op that is automaticallÿ inserted when there is no code to fill the smallest possible triangle.
Explanation:
(削除) I don't know why Removed it and managed to save two bytes. Still don't know why it was there in the first place. ಠ_ಠ\ is the first character... (削除ここまで)
Directionals:
.
\ .
. . .
. . v .
/ . . . <
. . . <
This is how the interpreter sees the code, without directionals:
$:$S_%pUA@pm%
$:reads integer input to the stack and duplicates it. Stack containsinput1 input1.$Sreads another input to the stack, then stashes it in memory. Stack containsinput1 input1 input2, and memory containsinput2._divides the top two stack values. Now the stack containsinput1 input1/input2.%prints the top of stack as an integer.ppops the top of stack. Now the stack containsinput1.Upulls memory onto the stack. Now the stack containsinput1 input2.Apushes 10 to the stack. Stack containsinput1 input2 10.@prints it as ASCII (newline).ppops it - stack containsinput1 input2.mperforms modulus on the top two stack values. Stack now containsinput1%input2.%prints the top of stack as an integer.- the IP then runs off the playing field, and the program terminates.
Triangular, 21 bytes
\\$UA:p.!$/%_S<%mp@<.
Prints the result of division, a newline, then the remainder. Formats into this triangle:
\
\ $
U A :
p . ! $
/ % _ S <
% m p @ < ÿ
ÿ is the no-op that is automaticallÿ inserted when there is no code to fill the smallest possible triangle.
Explanation:
I don't know why \ is the first character... ಠ_ಠ
This is how the interpreter sees the code, without jumps or directionals:
$:$S_%pUA@pm%
$:reads integer input to the stack and duplicates it. Stack containsinput1 input1.$Sreads another input to the stack, then stashes it in memory. Stack containsinput1 input1 input2, and memory containsinput2._divides the top two stack values. Now the stack containsinput1 input1/input2.%prints the top of stack as an integer.ppops the top of stack. Now the stack containsinput1.Upulls memory onto the stack. Now the stack containsinput1 input2.Apushes 10 to the stack. Stack containsinput1 input2 10.@prints it as ASCII (newline).ppops it - stack containsinput1 input2.mperforms modulus on the top two stack values. Stack now containsinput1%input2.%prints the top of stack as an integer.- the IP then runs off the playing field, and the program terminates.