complete 30868.py and uncomplete 1717.py 1806.py 30869.py

This commit is contained in:
2024-09-24 21:40:59 +09:00
parent bd8d2defaa
commit 3d8097d9ca
5 changed files with 86 additions and 0 deletions

14
zeta_python/1806.py Normal file
View File

@@ -0,0 +1,14 @@
def p_sum(cumulative, left, right):
if 0 <= left <= right <= N:
return cumulative[right] - cumulative[left]
else:
return 100000000000000000000000000
if __name__ == "__main__":
N, S = map(int, input().split())
A: list[int] = list(map(int, input().split()))
CA: list[int] = [0]
print(right - left)