Skip to content

Commit

Permalink
daily
Browse files Browse the repository at this point in the history
  • Loading branch information
runnz121 committed Jan 1, 2022
1 parent c170f31 commit 0af1eaf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions 2576.py
@@ -0,0 +1,17 @@
arr = []
ans = []
for i in range(7):
arr.append(int(input()))

arr.sort()

for i in arr:
if i % 2 != 0:
ans.append(i)

if len(ans) > 0:
ans.sort()
print(sum(ans))
print(ans[0])
else:
print(-1)

0 comments on commit 0af1eaf

Please sign in to comment.