#Java 8, (削除) 548 (削除ここまで)(削除) 545 (削除ここまで)(削除) 432 (削除ここまで)(削除) 401 (削除ここまで)(削除) 399 (削除ここまで) 397 bytes
Java 8, (削除) 548 (削除ここまで)(削除) 545 (削除ここまで)(削除) 432 (削除ここまで)(削除) 401 (削除ここまで)(削除) 399 (削除ここまで) 397 bytes
#Java 8, (削除) 548 (削除ここまで)(削除) 545 (削除ここまで)(削除) 432 (削除ここまで)(削除) 401 (削除ここまで)(削除) 399 (削除ここまで) 397 bytes
Java 8, (削除) 548 (削除ここまで)(削除) 545 (削除ここまで)(削除) 432 (削除ここまで)(削除) 401 (削除ここまで)(削除) 399 (削除ここまで) 397 bytes
#Java 8, (削除) 548 (削除ここまで) (削除) 545 (削除ここまで) (削除) 432 (削除ここまで) (削除) 401 (削除ここまで) 399(削除) 399 (削除ここまで) 397 bytes
a->{int q=50,H=a[0]-49,N=a[1],L=a[2],R=a[3],X=a[4],Y=a[5];return"".format(" %s%n %s%n%c(%c%c%c)%c%n%c(%s)%c%n (%s)",H<1?"":H%2<1?" ___":" _","_===_s.....s /_\\s(_*_)".split("s")[H],X==q?92:32,L<q?46:L<51?111:L<52?79:45,N<q?44:N<51?46:N<52?95:32,R<q?46:R<51?111:R<52?79:45,Y==q?47:32,X<q?60:X%2<1?32:4732+X%2*15," s : s] [s> <".split("s")[a[6]%4],92-(Y%3+Y%6/4)*30," s : s\" \"s___".split("s")[a[7]%4]);}
Try it here. -2 bytes thanks to @ceilingcat.
a->{ // Method with character-array parameter and String return-type
int q=50, // Temp integer with value 50 to reduce the byte-count
H=a[0]-49, // The hat-character as unicode value minus 49: 1=0; 2=1; 3=2; 4=3
N=a[1],L=a[2],R=a[3],X=a[4],Y=a[5];
// Most of the other characters as unicode values: 1=49; 2=50; 3=51; 4=52
return"".format(" %s%n %s%n%c(%c%c%c)%c%n%c(%s)%c%n (%s)",
// Return the snowman with:
H<1?"":H%2<1?" ___":" _", // The top of the hat
"_===_s.....s /_\\s(_*_)".split("s")[H], // + the bottom of the hat
X==q?92:32, // + the top of the left arm
L<q?46:L<51?111:L<52?79:45, // + the left eye
N<q?44:N<51?46:N<52?95:32, // + the nose
R<q?46:R<51?111:R<52?79:45, // + the right eye
Y==q?47:32, // + the top of the right arm
X<q?60:X%2<1?32:4732+X%2*15, // + the bottom of the left arm
" s : s] [s> <".split("s")[a[6]%4], // + the torso
92-(Y%3+Y%6/4)*30, // + the bottom of the right arm
" s : s\" \"s___".split("s")[a[7]%4]);} // + the feet
#Java 8, (削除) 548 (削除ここまで) (削除) 545 (削除ここまで) (削除) 432 (削除ここまで) (削除) 401 (削除ここまで) 399 bytes
a->{int q=50,H=a[0]-49,N=a[1],L=a[2],R=a[3],X=a[4],Y=a[5];return"".format(" %s%n %s%n%c(%c%c%c)%c%n%c(%s)%c%n (%s)",H<1?"":H%2<1?" ___":" _","_===_s.....s /_\\s(_*_)".split("s")[H],X==q?92:32,L<q?46:L<51?111:L<52?79:45,N<q?44:N<51?46:N<52?95:32,R<q?46:R<51?111:R<52?79:45,Y==q?47:32,X<q?60:X%2<1?32:47," s : s] [s> <".split("s")[a[6]%4],92-(Y%3+Y%6/4)*30," s : s\" \"s___".split("s")[a[7]%4]);}
a->{ // Method with character-array parameter and String return-type
int q=50, // Temp integer with value 50 to reduce the byte-count
H=a[0]-49, // The hat-character as unicode value minus 49: 1=0; 2=1; 3=2; 4=3
N=a[1],L=a[2],R=a[3],X=a[4],Y=a[5];
// Most of the other characters as unicode values: 1=49; 2=50; 3=51; 4=52
return"".format(" %s%n %s%n%c(%c%c%c)%c%n%c(%s)%c%n (%s)",
// Return the snowman with:
H<1?"":H%2<1?" ___":" _", // The top of the hat
"_===_s.....s /_\\s(_*_)".split("s")[H], // + the bottom of the hat
X==q?92:32, // + the top of the left arm
L<q?46:L<51?111:L<52?79:45, // + the left eye
N<q?44:N<51?46:N<52?95:32, // + the nose
R<q?46:R<51?111:R<52?79:45, // + the right eye
Y==q?47:32, // + the top of the right arm
X<q?60:X%2<1?32:47, // + the bottom of the left arm
" s : s] [s> <".split("s")[a[6]%4], // + the torso
92-(Y%3+Y%6/4)*30, // + the bottom of the right arm
" s : s\" \"s___".split("s")[a[7]%4]);} // + the feet
#Java 8, (削除) 548 (削除ここまで) (削除) 545 (削除ここまで) (削除) 432 (削除ここまで) (削除) 401 (削除ここまで) (削除) 399 (削除ここまで) 397 bytes
a->{int q=50,H=a[0]-49,N=a[1],L=a[2],R=a[3],X=a[4],Y=a[5];return"".format(" %s%n %s%n%c(%c%c%c)%c%n%c(%s)%c%n (%s)",H<1?"":H%2<1?" ___":" _","_===_s.....s /_\\s(_*_)".split("s")[H],X==q?92:32,L<q?46:L<51?111:L<52?79:45,N<q?44:N<51?46:N<52?95:32,R<q?46:R<51?111:R<52?79:45,Y==q?47:32,X<q?60:32+X%2*15," s : s] [s> <".split("s")[a[6]%4],92-(Y%3+Y%6/4)*30," s : s\" \"s___".split("s")[a[7]%4]);}
-2 bytes thanks to @ceilingcat.
a->{ // Method with character-array parameter and String return-type
int q=50, // Temp integer with value 50 to reduce the byte-count
H=a[0]-49, // The hat-character as unicode value minus 49: 1=0; 2=1; 3=2; 4=3
N=a[1],L=a[2],R=a[3],X=a[4],Y=a[5];
// Most of the other characters as unicode values: 1=49; 2=50; 3=51; 4=52
return"".format(" %s%n %s%n%c(%c%c%c)%c%n%c(%s)%c%n (%s)",
// Return the snowman with:
H<1?"":H%2<1?" ___":" _", // The top of the hat
"_===_s.....s /_\\s(_*_)".split("s")[H], // + the bottom of the hat
X==q?92:32, // + the top of the left arm
L<q?46:L<51?111:L<52?79:45, // + the left eye
N<q?44:N<51?46:N<52?95:32, // + the nose
R<q?46:R<51?111:R<52?79:45, // + the right eye
Y==q?47:32, // + the top of the right arm
X<q?60:32+X%2*15, // + the bottom of the left arm
" s : s] [s> <".split("s")[a[6]%4], // + the torso
92-(Y%3+Y%6/4)*30, // + the bottom of the right arm
" s : s\" \"s___".split("s")[a[7]%4]);} // + the feet
#Java 8, (削除) 548 (削除ここまで) (削除) 545 (削除ここまで) (削除) 432 (削除ここまで) 401(削除) 401 (削除ここまで) 399 bytes
a->{int q=50,H=a[0]-49,N=a[1],L=a[2],R=a[3],X=a[4],Y=a[5];return"".format(" %s%n %s%n%c(%c%c%c)%c%n%c(%s)%c%n (%s)",H<1?"":H%2<1?" ___":" _","_===_s.....s /_\\s(_*_)".split("s")[H],X==q?92:32,L<q?46:L<51?111:L<52?79:45,N<q?44:N<51?46:N<52?95:32,R<q?46:R<51?111:R<52?79:45,Y==q?47:32,X<q?60:X%2<1?32:47," : s] [s>s <s: s] [s> "<".split("s")[a[6]-49][a[6]%4],92-(Y%3+Y%6/4)*30," : s\" \"s___ss : s\" "\"s___".split("s")[a[7]-49][a[7]%4]);}
a->{ // Method with character-array parameter and String return-type
int q=50, // Temp integer with value 50 to reduce the byte-count
H=a[0]-49, // The hat-character as unicode value minus 49: 1=0; 2=1; 3=2; 4=3
N=a[1],L=a[2],R=a[3],X=a[4],Y=a[5];
// Most of the other characters as unicode values: 1=49; 2=50; 3=51; 4=52
return"".format(" %s%n %s%n%c(%c%c%c)%c%n%c(%s)%c%n (%s)",
// Return the snowman with:
H<1?"":H%2<1?" ___":" _", // The top of the hat
"_===_s.....s /_\\s(_*_)".split("s")[H], // + the bottom of the hat
X==q?92:32, // + the top of the left arm
L<q?46:L<51?111:L<52?79:45, // + the left eye
N<q?44:N<51?46:N<52?95:32, // + the nose
R<q?46:R<51?111:R<52?79:45, // + the right eye
Y==q?47:32, // + the top of the right arm
X<q?60:X%2<1?32:47, // + the bottom of the left arm
" : s] [s>s <s: s] [s> "<".split("s")[a[6]-49][a[6]%4], // + the torso
92-(Y%3+Y%6/4)*30, // + the bottom of the right arm
" : s\" \"s___ss : s\" "\"s___".split("s")[a[7]-49][a[7]%4]);} // + the feet
#Java 8, (削除) 548 (削除ここまで) (削除) 545 (削除ここまで) (削除) 432 (削除ここまで) 401 bytes
a->{int q=50,H=a[0]-49,N=a[1],L=a[2],R=a[3],X=a[4],Y=a[5];return"".format(" %s%n %s%n%c(%c%c%c)%c%n%c(%s)%c%n (%s)",H<1?"":H%2<1?" ___":" _","_===_s.....s /_\\s(_*_)".split("s")[H],X==q?92:32,L<q?46:L<51?111:L<52?79:45,N<q?44:N<51?46:N<52?95:32,R<q?46:R<51?111:R<52?79:45,Y==q?47:32,X<q?60:X%2<1?32:47," : s] [s> <s ".split("s")[a[6]-49],92-(Y%3+Y%6/4)*30," : s\" \"s___s ".split("s")[a[7]-49]);}
a->{ // Method with character-array parameter and String return-type
int q=50, // Temp integer with value 50 to reduce the byte-count
H=a[0]-49, // The hat-character as unicode value minus 49: 1=0; 2=1; 3=2; 4=3
N=a[1],L=a[2],R=a[3],X=a[4],Y=a[5];
// Most of the other characters as unicode values: 1=49; 2=50; 3=51; 4=52
return"".format(" %s%n %s%n%c(%c%c%c)%c%n%c(%s)%c%n (%s)",
// Return the snowman with:
H<1?"":H%2<1?" ___":" _", // The top of the hat
"_===_s.....s /_\\s(_*_)".split("s")[H], // + the bottom of the hat
X==q?92:32, // + the top of the left arm
L<q?46:L<51?111:L<52?79:45, // + the left eye
N<q?44:N<51?46:N<52?95:32, // + the nose
R<q?46:R<51?111:R<52?79:45, // + the right eye
Y==q?47:32, // + the top of the right arm
X<q?60:X%2<1?32:47, // + the bottom of the left arm
" : s] [s> <s ".split("s")[a[6]-49], // + the torso
92-(Y%3+Y%6/4)*30, // + the bottom of the right arm
" : s\" \"s___s ".split("s")[a[7]-49]);} // + the feet
#Java 8, (削除) 548 (削除ここまで) (削除) 545 (削除ここまで) (削除) 432 (削除ここまで) (削除) 401 (削除ここまで) 399 bytes
a->{int q=50,H=a[0]-49,N=a[1],L=a[2],R=a[3],X=a[4],Y=a[5];return"".format(" %s%n %s%n%c(%c%c%c)%c%n%c(%s)%c%n (%s)",H<1?"":H%2<1?" ___":" _","_===_s.....s /_\\s(_*_)".split("s")[H],X==q?92:32,L<q?46:L<51?111:L<52?79:45,N<q?44:N<51?46:N<52?95:32,R<q?46:R<51?111:R<52?79:45,Y==q?47:32,X<q?60:X%2<1?32:47," s : s] [s> <".split("s")[a[6]%4],92-(Y%3+Y%6/4)*30," s : s\" \"s___".split("s")[a[7]%4]);}
a->{ // Method with character-array parameter and String return-type
int q=50, // Temp integer with value 50 to reduce the byte-count
H=a[0]-49, // The hat-character as unicode value minus 49: 1=0; 2=1; 3=2; 4=3
N=a[1],L=a[2],R=a[3],X=a[4],Y=a[5];
// Most of the other characters as unicode values: 1=49; 2=50; 3=51; 4=52
return"".format(" %s%n %s%n%c(%c%c%c)%c%n%c(%s)%c%n (%s)",
// Return the snowman with:
H<1?"":H%2<1?" ___":" _", // The top of the hat
"_===_s.....s /_\\s(_*_)".split("s")[H], // + the bottom of the hat
X==q?92:32, // + the top of the left arm
L<q?46:L<51?111:L<52?79:45, // + the left eye
N<q?44:N<51?46:N<52?95:32, // + the nose
R<q?46:R<51?111:R<52?79:45, // + the right eye
Y==q?47:32, // + the top of the right arm
X<q?60:X%2<1?32:47, // + the bottom of the left arm
" s : s] [s> <".split("s")[a[6]%4], // + the torso
92-(Y%3+Y%6/4)*30, // + the bottom of the right arm
" s : s\" \"s___".split("s")[a[7]%4]);} // + the feet
- 136.2k
- 14
- 154
- 394