From 8605fbd547c0c216ebf507dddb1d837d6b76d56c Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 28 Aug 2017 14:57:46 +0200 Subject: [PATCH] Solve shortest temperatures --- temperature_shortest.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 temperature_shortest.py diff --git a/temperature_shortest.py b/temperature_shortest.py new file mode 100644 index 0000000..305188b --- /dev/null +++ b/temperature_shortest.py @@ -0,0 +1,11 @@ +from math import fabs as f +N=int(input()) +if N==0: + print(0) + exit(0) +T=map(int, input().split()) +b=next(T) +for t in T: + if f(t)