15 Reputation Points
Ranked #2K
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
100% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
0 Endorsements
Ranked #107.49K
Re: n = int(input())list1 = list(map(int,input().split()))set1 = set(list1)set2=set(sorted(set1))#print(type(set1))set_bob = sorted(set1)#print(set2)set_3 = set()set_2 = set()set_rest = set()for i in set2: if i%3==0: set_3.add(i) for i in set2: if i%2==0: set_2.add(i)set_2_extra = set_3.intersection(set_2) set_2 = set_2.difference(set_2_extra)set_rest = set2.difference(set_2.union(set_3))set_2 = sorted(set_2)set_3 = sorted(set_3)set_rest = sorted(set_rest)set_alice = set_3+set_2+set_restalice = 0bob = 0tie = 0for i … |