day 7 python slight improvement

main
magical 2022-12-06 22:03:59 -08:00
parent d2d54b8a6e
commit 0a590f5d36
1 changed files with 1 additions and 5 deletions

View File

@ -33,10 +33,6 @@ for cmd in cmds:
print(sizes) print(sizes)
t = 0 print(sum(sz for sz in sizes.values() if sz <= 100000))
for sz in sizes.values():
if sz <= 100000:
t += sz
print(t)
print(min(sz for sz in sizes.values() if 70000000 - sizes[''] + sz >= 30000000)) print(min(sz for sz in sizes.values() if 70000000 - sizes[''] + sz >= 30000000))