We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • Hackerrank Home
  • Prepare
    NEW
  • Certify
  • Compete
  • Career Fair
  • Hiring developers?
  1. Prepare
  2. Python
  3. Math
  4. Triangle Quest
  5. Discussions

Triangle Quest

Problem
Submissions
Leaderboard
Discussions
Editorial

    You are viewing a single comment's thread. Return to all comments →

  • zielonymelon
    6 years ago+ 0 comments
    for i in range(1,int(input())):
        print([0, 1, 22, 333, 4444, 55555, 666666, 7777777, 88888888, 999999999][i])
    

    It doesn't involve strings :P

    383|
    Permalink
  • Contest Calendar
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy
  • Request a Feature