Skip to content

Commit d10f235

Browse files
committed
[2022/13] print p1 answer before extra info, comment out blank print
1 parent 75b6c33 commit d10f235

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

2022/13/script.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ def compare(left, right, indent=0):
6969
# print(f'== Pair {idx+1} ==')
7070
if compare(one, two) in [-1]:
7171
valid_pairs.append(idx+1)
72-
print()
72+
# print()
7373
packets += [one, two]
7474

75-
print(f'Valid: {valid_pairs} {sum(valid_pairs)}')
75+
print(f'{sum(valid_pairs)} | Valid: {valid_pairs}')
7676

7777
sorted_packets = sorted(packets, key=functools.cmp_to_key(compare))
7878
# for packet in sorted_packets:

0 commit comments

Comments
 (0)