結果

問題 No.2663 Zero-Sum Submatrices
ユーザー ShirotsumeShirotsume
提出日時 2024-03-08 21:03:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 65 ms / 2,000 ms
コード長 444 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 73,408 KB
最終ジャッジ日時 2024-03-08 21:04:03
合計ジャッジ時間 3,370 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
56,140 KB
testcase_01 AC 42 ms
56,140 KB
testcase_02 AC 42 ms
56,140 KB
testcase_03 AC 42 ms
56,140 KB
testcase_04 AC 44 ms
56,140 KB
testcase_05 AC 56 ms
67,064 KB
testcase_06 AC 41 ms
56,140 KB
testcase_07 AC 41 ms
56,140 KB
testcase_08 AC 44 ms
56,140 KB
testcase_09 AC 50 ms
61,676 KB
testcase_10 AC 56 ms
64,956 KB
testcase_11 AC 44 ms
56,140 KB
testcase_12 AC 45 ms
56,140 KB
testcase_13 AC 53 ms
67,052 KB
testcase_14 AC 43 ms
56,140 KB
testcase_15 AC 49 ms
61,656 KB
testcase_16 AC 53 ms
67,052 KB
testcase_17 AC 42 ms
56,140 KB
testcase_18 AC 44 ms
56,140 KB
testcase_19 AC 53 ms
67,052 KB
testcase_20 AC 49 ms
61,656 KB
testcase_21 AC 54 ms
67,052 KB
testcase_22 AC 46 ms
58,200 KB
testcase_23 AC 50 ms
63,756 KB
testcase_24 AC 58 ms
69,264 KB
testcase_25 AC 50 ms
63,756 KB
testcase_26 AC 59 ms
69,264 KB
testcase_27 AC 61 ms
69,264 KB
testcase_28 AC 59 ms
69,100 KB
testcase_29 AC 63 ms
71,324 KB
testcase_30 AC 65 ms
73,408 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys, time, random
from collections import deque, Counter, defaultdict
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
inf = 2 ** 61 - 1
mod = 998244353

n, m = mi()
ans = [[0] * (2 ** m) for _ in range(2 ** n)]
count = 0
for i in range(2 ** n):
    for j in range(2 ** m):
        ans[i][j] = count
        count += 1
for v in ans:
    print(*v)
    
0