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.
Loading...
  • Practice
  • Compete
  • Jobs
  • Leaderboard
  1. Practice
  2. Python
  3. Basic Data Types
  4. Find the Runner-Up Score!
  5. Discussions

Find the Runner-Up Score!

  • Problem
  • Submissions
  • Leaderboard
  • Discussions
  • Editorial

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

  • benyscott 2 years ago+ 0 comments

    I had pretty much the same code as you but mine didn't work, I think it is because I didn't declare the list properly.

    So, my only questions are about line 2. I had only used input().split() and it seemed to work everywhere, except in tests #6, #9 or whatever.

    Is it needed to build a list with list(), specify that the values are integers with map()? Also, why the [:i] at the end?

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