Pagini recente » Cod sursa (job #2990236) | Cod sursa (job #3220785) | Cod sursa (job #1866160) | Cod sursa (job #3179557) | Cod sursa (job #2478674)
#pe primul rand 2 ore HH:MM:SS
#ziua 1
#a = input()
#a = a.split()
#b = [int(x) for x in a[1].split(':')]
#a = [int(x) for x in a[0].split(':')]
#print(a, b)
#date1 = a[0] * 60 * 60 + a[1] * 60 + a[2]
#date2 = b[0] * 60 * 60 + b[1] * 60 + b[2]
#if (date1 >= date2):
# date2 += 24 * 60 * 60
#dif = date2 - date1
#mod1 = dif%(60 * 60)
#mod2 = mod1 % 60
#print('{:02d}:{:02d}:{:02d}'.format(dif // (60 * 60), mod1 // 60, mod2))
def iaebal(n):
if (n % 4 == 0 and n % 100 != 0):
return True
if (n % 400 == 0):
return True
return False
a = [i for i in range(2020) if iaebal(i)]
print(a)