結果

問題 No.1851 Regular Tiling
ユーザー 👑 H20H20
提出日時 2022-02-25 22:55:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 350 ms / 2,000 ms
コード長 491 bytes
コンパイル時間 392 ms
コンパイル使用メモリ 86,812 KB
実行使用メモリ 100,848 KB
最終ジャッジ日時 2023-09-16 18:11:35
合計ジャッジ時間 7,655 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 252 ms
96,236 KB
testcase_01 AC 303 ms
98,572 KB
testcase_02 AC 308 ms
98,164 KB
testcase_03 AC 304 ms
97,940 KB
testcase_04 AC 306 ms
98,136 KB
testcase_05 AC 297 ms
97,928 KB
testcase_06 AC 299 ms
98,276 KB
testcase_07 AC 293 ms
97,904 KB
testcase_08 AC 296 ms
98,368 KB
testcase_09 AC 301 ms
98,536 KB
testcase_10 AC 302 ms
97,760 KB
testcase_11 AC 278 ms
96,728 KB
testcase_12 AC 275 ms
97,492 KB
testcase_13 AC 323 ms
99,424 KB
testcase_14 AC 350 ms
100,848 KB
権限があれば一括ダウンロードができます

ソースコード

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