Jimmy needs your help!Will Jimmy fall off his platform?How many Jimmys can fit?Move platforms!Code golf ABC's: The ASCII Box ChallengeJimmy these arrays downStewie's sequence: + * - / + * - /your Uncle help Drunk needsMicrogravity BallDon't get your head in a spin!Rosencrantz and Guildenstern are CodeWill Jimmy fall off his platform?How many Jimmys can fit?

Diagram with cylinder shapes and rectangles

What does the multimeter dial do internally?

How do ballistic trajectories work in a ring world?

How do resistors generate different heat if we make the current fixed and changed the voltage and resistance? Notice the flow of charge is constant

force:lightningQuickAction . Will implementing this open the component as modalpop up directly?

Which is a better conductor, a very thick rubber wire or a very thin copper wire?

What are the effects of abstaining from eating a certain flavor?

How to understand flavors and when to use combination of them?

How was the website able to tell my credit card was wrong before it processed it?

How many Jimmys can fit?

Why did the frequency of the word "черт" (devil) in books increase by a few times since the October Revolution?

Need a non-volatile memory IC with near unlimited read/write operations capability

Can we share mixing jug/beaker for developer, fixer and stop bath?

As a supervisor, what feedback would you expect from a PhD who quits?

Was the 45.9°C temperature in France in June 2019 the highest ever recorded in France?

Is this car delivery via Ebay Motors on Craigslist a scam?

Users forgotting to regenerate PDF before sending it

How to evaluate the performance of open source solver?

How did the Time Lords put a whole "Star" in a Tardis?

How can I review my manager, who is fine?

Possibility to correct pitch from digital versions of records with the hole not centered

When moving a unique_ptr into a lambda, why is it not possible to call reset?

Uniform initialization by tuple

Why does the Misal rico de Cisneros uses the word "Qiſſa", and what is it supposed to mean? Why not "Miſſa" (Missa)?



Jimmy needs your help!


Will Jimmy fall off his platform?How many Jimmys can fit?Move platforms!Code golf ABC's: The ASCII Box ChallengeJimmy these arrays downStewie's sequence: + * - / + * - /your Uncle help Drunk needsMicrogravity BallDon't get your head in a spin!Rosencrantz and Guildenstern are CodeWill Jimmy fall off his platform?How many Jimmys can fit?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








6












$begingroup$


It seems as of recent, there have been a lot a Jimmys falling to their death, as can be seen here, and here where you were asked to determine if Jimmy would fall. It is time we put a stop to this madness and try to save Jimmy.



Jimmy has three body parts /, o, and arranged like this



/o


Platforms are represented with -. Jimmy will fall off their platform iff they have two or more body parts that are not directly above a platform.



Some examples:



 /o
- -------


Jimmy will balance since all their body parts are above a -.



 /o
------ ---


Jimmy will balanced since two body parts are above -s.



 /o
-- ---- --


Jimmy will balance even though they are split between two platforms



 /o
-


Jimmy will not balanced since two body parts are not above a platform.




Since my platform supply is running low, I only have platforms with a length of 5, and it is important we use as few as possible.



Your task is to take an input of Jimmys and output a string of platforms which will save all of the Jimmys in the input. Your output must use as few platforms as possible, but each platform must be 5 -'s wide.



Note that the rule of the platform being 5 - wide, means that each platform must have a space between them. ---------- is not valid in the output since it will be considered a platform of length 10 and not two platforms of length 5.



Test Case's



/o /o/o // input
----- ----- // output


/o /o
----- -----


/o /o // same input as above
----- ----- // this is also valid output


 /o /o
-----


Standard rules apply.



This is code-golf, may the shortest answer win!










share|improve this question











$endgroup$











  • $begingroup$
    Does board position matter if it could go multiple places or anywhere is fine as long as all Jimmys are saved? Is there always at least 1 Jimmy?
    $endgroup$
    – Veskah
    8 hours ago











  • $begingroup$
    @Veskah as long as all Jimmys are saved using the fewest possible platforms, position does not matter, so there will be multiple valid outputs for each input. There is no condition on how many Jimmys there will be in the input, an empty string would be a valid input.
    $endgroup$
    – Quinn
    8 hours ago







  • 2




    $begingroup$
    Test case 4 looks like a scary face
    $endgroup$
    – Expired Data
    8 hours ago










  • $begingroup$
    Jimmy's not happy with you.
    $endgroup$
    – connectyourcharger
    7 hours ago






  • 2




    $begingroup$
    I can see so many Jimmy follow-ups in the future.
    $endgroup$
    – connectyourcharger
    6 hours ago

















6












$begingroup$


It seems as of recent, there have been a lot a Jimmys falling to their death, as can be seen here, and here where you were asked to determine if Jimmy would fall. It is time we put a stop to this madness and try to save Jimmy.



Jimmy has three body parts /, o, and arranged like this



/o


Platforms are represented with -. Jimmy will fall off their platform iff they have two or more body parts that are not directly above a platform.



Some examples:



 /o
- -------


Jimmy will balance since all their body parts are above a -.



 /o
------ ---


Jimmy will balanced since two body parts are above -s.



 /o
-- ---- --


Jimmy will balance even though they are split between two platforms



 /o
-


Jimmy will not balanced since two body parts are not above a platform.




Since my platform supply is running low, I only have platforms with a length of 5, and it is important we use as few as possible.



Your task is to take an input of Jimmys and output a string of platforms which will save all of the Jimmys in the input. Your output must use as few platforms as possible, but each platform must be 5 -'s wide.



Note that the rule of the platform being 5 - wide, means that each platform must have a space between them. ---------- is not valid in the output since it will be considered a platform of length 10 and not two platforms of length 5.



Test Case's



/o /o/o // input
----- ----- // output


/o /o
----- -----


/o /o // same input as above
----- ----- // this is also valid output


 /o /o
-----


Standard rules apply.



This is code-golf, may the shortest answer win!










share|improve this question











$endgroup$











  • $begingroup$
    Does board position matter if it could go multiple places or anywhere is fine as long as all Jimmys are saved? Is there always at least 1 Jimmy?
    $endgroup$
    – Veskah
    8 hours ago











  • $begingroup$
    @Veskah as long as all Jimmys are saved using the fewest possible platforms, position does not matter, so there will be multiple valid outputs for each input. There is no condition on how many Jimmys there will be in the input, an empty string would be a valid input.
    $endgroup$
    – Quinn
    8 hours ago







  • 2




    $begingroup$
    Test case 4 looks like a scary face
    $endgroup$
    – Expired Data
    8 hours ago










  • $begingroup$
    Jimmy's not happy with you.
    $endgroup$
    – connectyourcharger
    7 hours ago






  • 2




    $begingroup$
    I can see so many Jimmy follow-ups in the future.
    $endgroup$
    – connectyourcharger
    6 hours ago













6












6








6


1



$begingroup$


It seems as of recent, there have been a lot a Jimmys falling to their death, as can be seen here, and here where you were asked to determine if Jimmy would fall. It is time we put a stop to this madness and try to save Jimmy.



Jimmy has three body parts /, o, and arranged like this



/o


Platforms are represented with -. Jimmy will fall off their platform iff they have two or more body parts that are not directly above a platform.



Some examples:



 /o
- -------


Jimmy will balance since all their body parts are above a -.



 /o
------ ---


Jimmy will balanced since two body parts are above -s.



 /o
-- ---- --


Jimmy will balance even though they are split between two platforms



 /o
-


Jimmy will not balanced since two body parts are not above a platform.




Since my platform supply is running low, I only have platforms with a length of 5, and it is important we use as few as possible.



Your task is to take an input of Jimmys and output a string of platforms which will save all of the Jimmys in the input. Your output must use as few platforms as possible, but each platform must be 5 -'s wide.



Note that the rule of the platform being 5 - wide, means that each platform must have a space between them. ---------- is not valid in the output since it will be considered a platform of length 10 and not two platforms of length 5.



Test Case's



/o /o/o // input
----- ----- // output


/o /o
----- -----


/o /o // same input as above
----- ----- // this is also valid output


 /o /o
-----


Standard rules apply.



This is code-golf, may the shortest answer win!










share|improve this question











$endgroup$




It seems as of recent, there have been a lot a Jimmys falling to their death, as can be seen here, and here where you were asked to determine if Jimmy would fall. It is time we put a stop to this madness and try to save Jimmy.



Jimmy has three body parts /, o, and arranged like this



/o


Platforms are represented with -. Jimmy will fall off their platform iff they have two or more body parts that are not directly above a platform.



Some examples:



 /o
- -------


Jimmy will balance since all their body parts are above a -.



 /o
------ ---


Jimmy will balanced since two body parts are above -s.



 /o
-- ---- --


Jimmy will balance even though they are split between two platforms



 /o
-


Jimmy will not balanced since two body parts are not above a platform.




Since my platform supply is running low, I only have platforms with a length of 5, and it is important we use as few as possible.



Your task is to take an input of Jimmys and output a string of platforms which will save all of the Jimmys in the input. Your output must use as few platforms as possible, but each platform must be 5 -'s wide.



Note that the rule of the platform being 5 - wide, means that each platform must have a space between them. ---------- is not valid in the output since it will be considered a platform of length 10 and not two platforms of length 5.



Test Case's



/o /o/o // input
----- ----- // output


/o /o
----- -----


/o /o // same input as above
----- ----- // this is also valid output


 /o /o
-----


Standard rules apply.



This is code-golf, may the shortest answer win!







code-golf string ascii-art






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 7 hours ago







Quinn

















asked 8 hours ago









QuinnQuinn

2547 bronze badges




2547 bronze badges











  • $begingroup$
    Does board position matter if it could go multiple places or anywhere is fine as long as all Jimmys are saved? Is there always at least 1 Jimmy?
    $endgroup$
    – Veskah
    8 hours ago











  • $begingroup$
    @Veskah as long as all Jimmys are saved using the fewest possible platforms, position does not matter, so there will be multiple valid outputs for each input. There is no condition on how many Jimmys there will be in the input, an empty string would be a valid input.
    $endgroup$
    – Quinn
    8 hours ago







  • 2




    $begingroup$
    Test case 4 looks like a scary face
    $endgroup$
    – Expired Data
    8 hours ago










  • $begingroup$
    Jimmy's not happy with you.
    $endgroup$
    – connectyourcharger
    7 hours ago






  • 2




    $begingroup$
    I can see so many Jimmy follow-ups in the future.
    $endgroup$
    – connectyourcharger
    6 hours ago
















  • $begingroup$
    Does board position matter if it could go multiple places or anywhere is fine as long as all Jimmys are saved? Is there always at least 1 Jimmy?
    $endgroup$
    – Veskah
    8 hours ago











  • $begingroup$
    @Veskah as long as all Jimmys are saved using the fewest possible platforms, position does not matter, so there will be multiple valid outputs for each input. There is no condition on how many Jimmys there will be in the input, an empty string would be a valid input.
    $endgroup$
    – Quinn
    8 hours ago







  • 2




    $begingroup$
    Test case 4 looks like a scary face
    $endgroup$
    – Expired Data
    8 hours ago










  • $begingroup$
    Jimmy's not happy with you.
    $endgroup$
    – connectyourcharger
    7 hours ago






  • 2




    $begingroup$
    I can see so many Jimmy follow-ups in the future.
    $endgroup$
    – connectyourcharger
    6 hours ago















$begingroup$
Does board position matter if it could go multiple places or anywhere is fine as long as all Jimmys are saved? Is there always at least 1 Jimmy?
$endgroup$
– Veskah
8 hours ago





$begingroup$
Does board position matter if it could go multiple places or anywhere is fine as long as all Jimmys are saved? Is there always at least 1 Jimmy?
$endgroup$
– Veskah
8 hours ago













$begingroup$
@Veskah as long as all Jimmys are saved using the fewest possible platforms, position does not matter, so there will be multiple valid outputs for each input. There is no condition on how many Jimmys there will be in the input, an empty string would be a valid input.
$endgroup$
– Quinn
8 hours ago





$begingroup$
@Veskah as long as all Jimmys are saved using the fewest possible platforms, position does not matter, so there will be multiple valid outputs for each input. There is no condition on how many Jimmys there will be in the input, an empty string would be a valid input.
$endgroup$
– Quinn
8 hours ago





2




2




$begingroup$
Test case 4 looks like a scary face
$endgroup$
– Expired Data
8 hours ago




$begingroup$
Test case 4 looks like a scary face
$endgroup$
– Expired Data
8 hours ago












$begingroup$
Jimmy's not happy with you.
$endgroup$
– connectyourcharger
7 hours ago




$begingroup$
Jimmy's not happy with you.
$endgroup$
– connectyourcharger
7 hours ago




2




2




$begingroup$
I can see so many Jimmy follow-ups in the future.
$endgroup$
– connectyourcharger
6 hours ago




$begingroup$
I can see so many Jimmy follow-ups in the future.
$endgroup$
– connectyourcharger
6 hours ago










3 Answers
3






active

oldest

votes


















2












$begingroup$


Python 2, 72 71 70 bytes





lambda s:S('/',' ',S("[^/ ].5","----- ",s+' '*5))
import re;S=re.sub


Try it online!



Not the prettiest, not sure how to better handle those leftover slashes...






share|improve this answer











$endgroup$




















    2












    $begingroup$


    Python 3, 158 164 160 bytes





    a=input();r=""
    for i,c in enumerate(a):
    try:r[i]
    except:
    if c in"/o":
    r+=(a[i+5<len(a)and i+5or len(a)-1]=="o"and" "or"")+"----- "
    else:r+=" "
    print(r)


    Try it online!



    This is my first code golf answer, and I'm happy it's on a Jimmy question!



    Explanation:



    • a=input();r="": Take in input and initialize a new string r.


    • for i,c in enumerate(a):: Enumerate over the input.


    • try:r[i] ... except:: See if r[i] exists - if not, process the except block.


    • if c in"/o":: Check if the current character is in Jimmy's first two body parts.


    • r+=(a[i+5<len(a)and i+5or len(a)-1]=="o"and" "or"")+"----- ": If so, add a new segment. Add a space before our new segment if another Jimmy head is present in five characters.


    • else:r+=" ": Otherwise, just add a space.


    • print(r): Print our final result.






    share|improve this answer











    $endgroup$












    • $begingroup$
      Pretty close, but I think this actually doesn't works for all test cases. It should use as few platforms as possible and your last example uses 2 when it could be done with 1
      $endgroup$
      – Quinn
      4 hours ago










    • $begingroup$
      @Quinn Shoot. Err, non-competing until I fix that.
      $endgroup$
      – connectyourcharger
      4 hours ago










    • $begingroup$
      @connectyourcharger "non-competing" doesn't validate an invalid solution. I recommend deleting it if you're not going to fix it for some time (e.g. the next few minutes).
      $endgroup$
      – Erik the Outgolfer
      3 hours ago











    • $begingroup$
      @Quinn I fixed it now.
      $endgroup$
      – connectyourcharger
      2 hours ago










    • $begingroup$
      @connectyourcharger Nice!
      $endgroup$
      – Quinn
      1 hour ago


















    1












    $begingroup$

    JavaScript (ES6), 56 bytes





    s=>[...s+1e4].map(c=>(+s?--s:c>?s=5:0)?'-':' ').join``


    Try it online!



    Or 49 bytes if returning an array of characters is acceptable.






    share|improve this answer









    $endgroup$















      Your Answer






      StackExchange.ifUsing("editor", function ()
      StackExchange.using("externalEditor", function ()
      StackExchange.using("snippets", function ()
      StackExchange.snippets.init();
      );
      );
      , "code-snippets");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "200"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f187731%2fjimmy-needs-your-help%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      2












      $begingroup$


      Python 2, 72 71 70 bytes





      lambda s:S('/',' ',S("[^/ ].5","----- ",s+' '*5))
      import re;S=re.sub


      Try it online!



      Not the prettiest, not sure how to better handle those leftover slashes...






      share|improve this answer











      $endgroup$

















        2












        $begingroup$


        Python 2, 72 71 70 bytes





        lambda s:S('/',' ',S("[^/ ].5","----- ",s+' '*5))
        import re;S=re.sub


        Try it online!



        Not the prettiest, not sure how to better handle those leftover slashes...






        share|improve this answer











        $endgroup$















          2












          2








          2





          $begingroup$


          Python 2, 72 71 70 bytes





          lambda s:S('/',' ',S("[^/ ].5","----- ",s+' '*5))
          import re;S=re.sub


          Try it online!



          Not the prettiest, not sure how to better handle those leftover slashes...






          share|improve this answer











          $endgroup$




          Python 2, 72 71 70 bytes





          lambda s:S('/',' ',S("[^/ ].5","----- ",s+' '*5))
          import re;S=re.sub


          Try it online!



          Not the prettiest, not sure how to better handle those leftover slashes...







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 6 hours ago

























          answered 6 hours ago









          negative sevennegative seven

          5212 silver badges8 bronze badges




          5212 silver badges8 bronze badges























              2












              $begingroup$


              Python 3, 158 164 160 bytes





              a=input();r=""
              for i,c in enumerate(a):
              try:r[i]
              except:
              if c in"/o":
              r+=(a[i+5<len(a)and i+5or len(a)-1]=="o"and" "or"")+"----- "
              else:r+=" "
              print(r)


              Try it online!



              This is my first code golf answer, and I'm happy it's on a Jimmy question!



              Explanation:



              • a=input();r="": Take in input and initialize a new string r.


              • for i,c in enumerate(a):: Enumerate over the input.


              • try:r[i] ... except:: See if r[i] exists - if not, process the except block.


              • if c in"/o":: Check if the current character is in Jimmy's first two body parts.


              • r+=(a[i+5<len(a)and i+5or len(a)-1]=="o"and" "or"")+"----- ": If so, add a new segment. Add a space before our new segment if another Jimmy head is present in five characters.


              • else:r+=" ": Otherwise, just add a space.


              • print(r): Print our final result.






              share|improve this answer











              $endgroup$












              • $begingroup$
                Pretty close, but I think this actually doesn't works for all test cases. It should use as few platforms as possible and your last example uses 2 when it could be done with 1
                $endgroup$
                – Quinn
                4 hours ago










              • $begingroup$
                @Quinn Shoot. Err, non-competing until I fix that.
                $endgroup$
                – connectyourcharger
                4 hours ago










              • $begingroup$
                @connectyourcharger "non-competing" doesn't validate an invalid solution. I recommend deleting it if you're not going to fix it for some time (e.g. the next few minutes).
                $endgroup$
                – Erik the Outgolfer
                3 hours ago











              • $begingroup$
                @Quinn I fixed it now.
                $endgroup$
                – connectyourcharger
                2 hours ago










              • $begingroup$
                @connectyourcharger Nice!
                $endgroup$
                – Quinn
                1 hour ago















              2












              $begingroup$


              Python 3, 158 164 160 bytes





              a=input();r=""
              for i,c in enumerate(a):
              try:r[i]
              except:
              if c in"/o":
              r+=(a[i+5<len(a)and i+5or len(a)-1]=="o"and" "or"")+"----- "
              else:r+=" "
              print(r)


              Try it online!



              This is my first code golf answer, and I'm happy it's on a Jimmy question!



              Explanation:



              • a=input();r="": Take in input and initialize a new string r.


              • for i,c in enumerate(a):: Enumerate over the input.


              • try:r[i] ... except:: See if r[i] exists - if not, process the except block.


              • if c in"/o":: Check if the current character is in Jimmy's first two body parts.


              • r+=(a[i+5<len(a)and i+5or len(a)-1]=="o"and" "or"")+"----- ": If so, add a new segment. Add a space before our new segment if another Jimmy head is present in five characters.


              • else:r+=" ": Otherwise, just add a space.


              • print(r): Print our final result.






              share|improve this answer











              $endgroup$












              • $begingroup$
                Pretty close, but I think this actually doesn't works for all test cases. It should use as few platforms as possible and your last example uses 2 when it could be done with 1
                $endgroup$
                – Quinn
                4 hours ago










              • $begingroup$
                @Quinn Shoot. Err, non-competing until I fix that.
                $endgroup$
                – connectyourcharger
                4 hours ago










              • $begingroup$
                @connectyourcharger "non-competing" doesn't validate an invalid solution. I recommend deleting it if you're not going to fix it for some time (e.g. the next few minutes).
                $endgroup$
                – Erik the Outgolfer
                3 hours ago











              • $begingroup$
                @Quinn I fixed it now.
                $endgroup$
                – connectyourcharger
                2 hours ago










              • $begingroup$
                @connectyourcharger Nice!
                $endgroup$
                – Quinn
                1 hour ago













              2












              2








              2





              $begingroup$


              Python 3, 158 164 160 bytes





              a=input();r=""
              for i,c in enumerate(a):
              try:r[i]
              except:
              if c in"/o":
              r+=(a[i+5<len(a)and i+5or len(a)-1]=="o"and" "or"")+"----- "
              else:r+=" "
              print(r)


              Try it online!



              This is my first code golf answer, and I'm happy it's on a Jimmy question!



              Explanation:



              • a=input();r="": Take in input and initialize a new string r.


              • for i,c in enumerate(a):: Enumerate over the input.


              • try:r[i] ... except:: See if r[i] exists - if not, process the except block.


              • if c in"/o":: Check if the current character is in Jimmy's first two body parts.


              • r+=(a[i+5<len(a)and i+5or len(a)-1]=="o"and" "or"")+"----- ": If so, add a new segment. Add a space before our new segment if another Jimmy head is present in five characters.


              • else:r+=" ": Otherwise, just add a space.


              • print(r): Print our final result.






              share|improve this answer











              $endgroup$




              Python 3, 158 164 160 bytes





              a=input();r=""
              for i,c in enumerate(a):
              try:r[i]
              except:
              if c in"/o":
              r+=(a[i+5<len(a)and i+5or len(a)-1]=="o"and" "or"")+"----- "
              else:r+=" "
              print(r)


              Try it online!



              This is my first code golf answer, and I'm happy it's on a Jimmy question!



              Explanation:



              • a=input();r="": Take in input and initialize a new string r.


              • for i,c in enumerate(a):: Enumerate over the input.


              • try:r[i] ... except:: See if r[i] exists - if not, process the except block.


              • if c in"/o":: Check if the current character is in Jimmy's first two body parts.


              • r+=(a[i+5<len(a)and i+5or len(a)-1]=="o"and" "or"")+"----- ": If so, add a new segment. Add a space before our new segment if another Jimmy head is present in five characters.


              • else:r+=" ": Otherwise, just add a space.


              • print(r): Print our final result.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited 2 hours ago

























              answered 6 hours ago









              connectyourchargerconnectyourcharger

              5781 gold badge3 silver badges16 bronze badges




              5781 gold badge3 silver badges16 bronze badges











              • $begingroup$
                Pretty close, but I think this actually doesn't works for all test cases. It should use as few platforms as possible and your last example uses 2 when it could be done with 1
                $endgroup$
                – Quinn
                4 hours ago










              • $begingroup$
                @Quinn Shoot. Err, non-competing until I fix that.
                $endgroup$
                – connectyourcharger
                4 hours ago










              • $begingroup$
                @connectyourcharger "non-competing" doesn't validate an invalid solution. I recommend deleting it if you're not going to fix it for some time (e.g. the next few minutes).
                $endgroup$
                – Erik the Outgolfer
                3 hours ago











              • $begingroup$
                @Quinn I fixed it now.
                $endgroup$
                – connectyourcharger
                2 hours ago










              • $begingroup$
                @connectyourcharger Nice!
                $endgroup$
                – Quinn
                1 hour ago
















              • $begingroup$
                Pretty close, but I think this actually doesn't works for all test cases. It should use as few platforms as possible and your last example uses 2 when it could be done with 1
                $endgroup$
                – Quinn
                4 hours ago










              • $begingroup$
                @Quinn Shoot. Err, non-competing until I fix that.
                $endgroup$
                – connectyourcharger
                4 hours ago










              • $begingroup$
                @connectyourcharger "non-competing" doesn't validate an invalid solution. I recommend deleting it if you're not going to fix it for some time (e.g. the next few minutes).
                $endgroup$
                – Erik the Outgolfer
                3 hours ago











              • $begingroup$
                @Quinn I fixed it now.
                $endgroup$
                – connectyourcharger
                2 hours ago










              • $begingroup$
                @connectyourcharger Nice!
                $endgroup$
                – Quinn
                1 hour ago















              $begingroup$
              Pretty close, but I think this actually doesn't works for all test cases. It should use as few platforms as possible and your last example uses 2 when it could be done with 1
              $endgroup$
              – Quinn
              4 hours ago




              $begingroup$
              Pretty close, but I think this actually doesn't works for all test cases. It should use as few platforms as possible and your last example uses 2 when it could be done with 1
              $endgroup$
              – Quinn
              4 hours ago












              $begingroup$
              @Quinn Shoot. Err, non-competing until I fix that.
              $endgroup$
              – connectyourcharger
              4 hours ago




              $begingroup$
              @Quinn Shoot. Err, non-competing until I fix that.
              $endgroup$
              – connectyourcharger
              4 hours ago












              $begingroup$
              @connectyourcharger "non-competing" doesn't validate an invalid solution. I recommend deleting it if you're not going to fix it for some time (e.g. the next few minutes).
              $endgroup$
              – Erik the Outgolfer
              3 hours ago





              $begingroup$
              @connectyourcharger "non-competing" doesn't validate an invalid solution. I recommend deleting it if you're not going to fix it for some time (e.g. the next few minutes).
              $endgroup$
              – Erik the Outgolfer
              3 hours ago













              $begingroup$
              @Quinn I fixed it now.
              $endgroup$
              – connectyourcharger
              2 hours ago




              $begingroup$
              @Quinn I fixed it now.
              $endgroup$
              – connectyourcharger
              2 hours ago












              $begingroup$
              @connectyourcharger Nice!
              $endgroup$
              – Quinn
              1 hour ago




              $begingroup$
              @connectyourcharger Nice!
              $endgroup$
              – Quinn
              1 hour ago











              1












              $begingroup$

              JavaScript (ES6), 56 bytes





              s=>[...s+1e4].map(c=>(+s?--s:c>?s=5:0)?'-':' ').join``


              Try it online!



              Or 49 bytes if returning an array of characters is acceptable.






              share|improve this answer









              $endgroup$

















                1












                $begingroup$

                JavaScript (ES6), 56 bytes





                s=>[...s+1e4].map(c=>(+s?--s:c>?s=5:0)?'-':' ').join``


                Try it online!



                Or 49 bytes if returning an array of characters is acceptable.






                share|improve this answer









                $endgroup$















                  1












                  1








                  1





                  $begingroup$

                  JavaScript (ES6), 56 bytes





                  s=>[...s+1e4].map(c=>(+s?--s:c>?s=5:0)?'-':' ').join``


                  Try it online!



                  Or 49 bytes if returning an array of characters is acceptable.






                  share|improve this answer









                  $endgroup$



                  JavaScript (ES6), 56 bytes





                  s=>[...s+1e4].map(c=>(+s?--s:c>?s=5:0)?'-':' ').join``


                  Try it online!



                  Or 49 bytes if returning an array of characters is acceptable.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 4 hours ago









                  ArnauldArnauld

                  87.8k7 gold badges102 silver badges359 bronze badges




                  87.8k7 gold badges102 silver badges359 bronze badges



























                      draft saved

                      draft discarded
















































                      If this is an answer to a challenge…



                      • …Be sure to follow the challenge specification. However, please refrain from exploiting obvious loopholes. Answers abusing any of the standard loopholes are considered invalid. If you think a specification is unclear or underspecified, comment on the question instead.


                      • …Try to optimize your score. For instance, answers to code-golf challenges should attempt to be as short as possible. You can always include a readable version of the code in addition to the competitive one.
                        Explanations of your answer make it more interesting to read and are very much encouraged.


                      • …Include a short header which indicates the language(s) of your code and its score, as defined by the challenge.


                      More generally…



                      • …Please make sure to answer the question and provide sufficient detail.


                      • …Avoid asking for help, clarification or responding to other answers (use comments instead).




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f187731%2fjimmy-needs-your-help%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

                      Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

                      Ласкавець круглолистий Зміст Опис | Поширення | Галерея | Примітки | Посилання | Навігаційне меню58171138361-22960890446Bupleurum rotundifoliumEuro+Med PlantbasePlants of the World Online — Kew ScienceGermplasm Resources Information Network (GRIN)Ласкавецькн. VI : Літери Ком — Левиправивши або дописавши її