Skip to content

Commit b0fb46e

Browse files
committed
solution 160A - Twins
1 parent 765263b commit b0fb46e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

160A - Twins.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# user: Mousa-mahmood-hilal
2+
#Problem: codeforces 160A - Twins
3+
input();
4+
sumc=count=0
5+
arr=sorted(map(int,input().split()))
6+
while sumc<=sum(arr):
7+
sumc+=arr.pop()
8+
count+=1
9+
print(count)

0 commit comments

Comments
 (0)