Advertisement
Spocoman

01. Scheduling

Feb 17th, 2024
783
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. jobs = list(map(int, input().split(', ')))
  2. index = int(input())
  3.  
  4. print(sum([i for i in jobs if i <= jobs[index]]))
  5.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement