Browse Source

Add 'B.py'

webturing 4 years ago
parent
commit
932e1f7fa1
1 changed files with 7 additions and 0 deletions
  1. 7 0
      B.py

+ 7 - 0
B.py

@@ -0,0 +1,7 @@
+import math
+n = int(input())
+A = list(map(int,input().strip().split()))
+x = min(A)
+y = max(A)
+s = sum(A)
+print("%d %d %d"%(x,y,s))