diff --git a/src/babylonian.py b/src/babylonian.py new file mode 100644 index 0000000..2c094e7 --- /dev/null +++ b/src/babylonian.py @@ -0,0 +1,4 @@ +n = int(input()) +for _ in range(n): + d = [int(v or 0) for v in input().split(",")] + print(sum(v * (60**i) for i, v in enumerate(d[::-1])))