結果

問題 No.1851 Regular Tiling
ユーザー H20
提出日時 2022-02-25 22:55:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 256 ms / 2,000 ms
コード長 491 bytes
コンパイル時間 153 ms
コンパイル使用メモリ 82,236 KB
実行使用メモリ 100,540 KB
最終ジャッジ日時 2024-07-03 17:52:41
合計ジャッジ時間 5,495 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

from pickle import FALSE, TRUE
from re import M
from tkinter.tix import Tree

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