# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
96626 | tnbs10 | Titlovi (COCI19_titlovi) | Cpython 3 | 33 ms | 3560 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
s = ' '
titlovi = []
whatis = [] # 1 - broj, 2 - vrijeme, 3 - titl
while s != '#':
titlovi.append(input())
whatis.append(1)
titlovi.append(input())
whatis.append(2)
s = input()
while s and s != '#':
titlovi.append(s)
whatis.append(3)
s = input()
#print(titlovi)
#print(whatis)
mili = int(input())
for i in range(len(titlovi)):
if whatis[i] == 2:
h1 = int(titlovi[i][0:2])
m1 = int(titlovi[i][3:5])
s1 = int(titlovi[i][6:8])
ms1 = int(titlovi[i][9:12])
h2 = int(titlovi[i][17:19])
m2 = int(titlovi[i][20:22])
s2 = int(titlovi[i][23:25])
ms2 = int(titlovi[i][26:29])
#print(h1, m1, s1, ms1, "-->", h2, m2, s2, ms2)
ms1 += mili
flag = False
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |