From d76d8efbafb500536ae499c66fc0fa8745bb6734 Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Fri, 18 Oct 2024 12:19:34 +0800 Subject: [PATCH] update --- src/oj8782/oj8782.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/oj8782/oj8782.py b/src/oj8782/oj8782.py index 3026c6e..d390fe1 100644 --- a/src/oj8782/oj8782.py +++ b/src/oj8782/oj8782.py @@ -3,8 +3,8 @@ from typing import List n,k = map(int,input().split(' ')) c=" "+input() -num:List[List[int]] = [[0 for _ in range(n+1)] for _ in range(n+1)] -dp:List[List[int]] = [[0 for _ in range(n+1)] for _ in range(n+1)] +num:List[List[int]] = [[0]*(n+1) for _ in range(n+1)] +dp:List[List[int]] = [[0]*(n+1) for _ in range(n+1)] for i in range(1,n+1): num[i][i] = int(c[i])