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.
- Prepare
- Python
- Sets
- The Captain's Room
- Discussions
The Captain's Room
The Captain's Room
Sort by
recency
|
1562 Discussions
|
Please Login in order to post a comment
Enter your code here. Read input from STDIN. Print output to STDOUT
k = int(input()) l = list(map(int,input().split())) l.sort()
for i in range(0,len(l)-1,k): if l[i] != l[i+4]: break
print(l[i])
I am just going to leave this here. I got the formula for finding the answer by shere cheating. Like I am super bad at Math
input_value=int(input())
dist={}
taken_list=list(map(int,input().split()))
for i in taken_list:
for k,j in dist.items():
For Python3 Platform