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 →

  • hamichok11 2 years ago+ 1 comment

    lol i did same, I'm a total noob, here's my solution:

    if __name__ == '__main__':
        n = int(raw_input())
        arr = map(int, raw_input().split())
        largest=0
        for num in arr:
            if num > largest:
                largest = num
        found=0
        for num in arr:
            if num > found and num < largest:
                found = num
        print found
    
    1|
    ParentPermalink
    • atchyutn 1 year ago+ 0 comments

      Even my apporach was this :D

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