結果

問題 No.1851 Regular Tiling
ユーザー 👑 H20H20
提出日時 2022-02-25 22:55:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 184 ms / 2,000 ms
コード長 413 bytes
コンパイル時間 372 ms
コンパイル使用メモリ 86,888 KB
実行使用メモリ 80,644 KB
最終ジャッジ日時 2023-09-16 18:12:29
合計ジャッジ時間 3,910 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,372 KB
testcase_01 AC 116 ms
77,860 KB
testcase_02 AC 120 ms
78,084 KB
testcase_03 AC 114 ms
78,148 KB
testcase_04 AC 115 ms
78,360 KB
testcase_05 AC 118 ms
78,260 KB
testcase_06 AC 125 ms
77,944 KB
testcase_07 AC 119 ms
78,136 KB
testcase_08 AC 119 ms
78,288 KB
testcase_09 AC 123 ms
78,100 KB
testcase_10 AC 120 ms
78,104 KB
testcase_11 AC 85 ms
76,540 KB
testcase_12 AC 81 ms
76,656 KB
testcase_13 AC 139 ms
78,760 KB
testcase_14 AC 184 ms
80,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

BIGMAP = []
for _ in range(50):
    BIGMAP.append([0,1,1]*100)
    BIGMAP.append([1,2,2]*100)
    BIGMAP.append([1,2,2]*100)

T = int(input())
for _ in range(T):
    H,W = map(int, input().split())
    hoff = 0
    woff = 0
    if H%3==2:
        hoff+=1
    if W%3==2:
        woff+=1
    MAP = []
    for i in range(hoff,H+hoff):
        MAP.append(BIGMAP[i][woff:W+woff])
    for m in MAP:
        print(*m)


0