Skip to content

Commit

Permalink
ci: reformat w/ new black
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhatelmas committed Mar 20, 2024
1 parent bb8e690 commit 9b7d3ac
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions codechef/practice/easy/notatri.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Correct but time limit, notatri.cpp is ok
"""

n = int(input())
while n != 0:
p = sorted(map(int, input().split()))
Expand Down
2 changes: 1 addition & 1 deletion codechef/practice/easy/points.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
)

path, x, y = 0, points[0][0], points[0][1]
for (x1, y1) in points:
for x1, y1 in points:
path += ((x1 - x) ** 2 + (y1 - y) ** 2) ** 0.5
x, y = x1, y1

Expand Down
2 changes: 1 addition & 1 deletion codechef/practice/easy/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def gcd(a, b):

def min_gcd(recipe):
m = 1000
for (a, b) in itertools.combinations(recipe, 2):
for a, b in itertools.combinations(recipe, 2):
m = min(gcd(a, b), m)
if m == 1:
break
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class Solution:
def sumEvenAfterQueries(self, A: List[int], queries: List[List[int]]) -> List[int]:
res, s = [], sum(e for e in A if e % 2 == 0)
for (val, i) in queries:
for val, i in queries:
prev, A[i] = A[i], A[i] + val
if prev % 2 == 0:
if A[i] % 2 == 0:
Expand Down

0 comments on commit 9b7d3ac

Please sign in to comment.