Ad
  • Custom User Avatar

    Would you please be so kind to tell if (and how) this kata conforms to this point of authoring guidelines?

    Do not use problems from other sites, unless it's allowed by that site's licensing policy and/or terms of use. Explicitly give appropriate credit if your kata is based on, or inspired by, someone else's work.

    For the record: original problem is problem G in this set.

  • Custom User Avatar

    Or for olympiad for 13-year-old codes - it's taken from this year Ukrainian Olympiad of Informatics, 2nd stage (1st - school, 2nd - town, 3rd - region, 4th - republic stage). Pupils 7-11 grade take part, it means participants are 12-17-year-old. I proposed 6 kyu, please propose your own level :)

  • Custom User Avatar

    Nice kata! I really enjoyed it, but was looking for an olympiad for 63-year-old coders :-)

  • Custom User Avatar

    Reduced number of tests (it was 100) and now tests load takes 1.3 sec and tests load plus solution takes 1.6 sec

  • Custom User Avatar

    Tests are too heavy. An empty solution takes already 4 seconds to load.

  • Default User Avatar

    Yep, in the tree that is described even in the example, this solution returns the incorrect value "15" instead of "-51".

  • Custom User Avatar

    Neat. I never knew that Python allows one line for conditional: resulting statement

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    I was wrong. Sorry

  • Custom User Avatar

    WRONG! Check "with your hands on paper" for n = 9. You cannot build 51 hexagons on 81 triangles! Only 49.

  • Custom User Avatar
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    Thank you and yes I understood it enough to solve the problem now. Super cool!

  • Custom User Avatar

    Added. Hope this will be understandable

  • Custom User Avatar

    Maybe adding this to the description :

    <svg xmlns:osb="http://www.openswatchbook.org/uri/2009/osb" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 127.219 110.614" height="418.069" width="480.829"><defs><linearGradient osb:paint="solid" id="a"><stop offset="0" stop-color="#00df00"/></linearGradient><linearGradient gradientUnits="userSpaceOnUse" y2="150.473" x2="118.61" y1="150.473" x1="55.382" id="b" xlink:href="#a"/></defs><path d="M93.458 89.647l-29.595 16.91-29.442-17.175.153-34.085 29.595-16.91L93.61 55.562z" fill="#00f8fc" stroke="#000" stroke-width=".185"/><path transform="matrix(.93938 -.55445 .54937 .94807 -100.327 -22.187)" d="M118.349 168.762l-31.515 18.007L55.48 168.48l.163-36.296 31.515-18.008 31.352 18.29z" fill="none" stroke="url(#b)" stroke-width=".197"/><path d="M123.851 106.281l-118.882.821L63.699 3.737z" fill="none" stroke="#ed0000" stroke-width=".338"/></svg>
    
  • Loading more items...