結果

問題 No.1851 Regular Tiling
ユーザー ytftytft
提出日時 2022-03-14 12:00:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 224 ms / 2,000 ms
コード長 240 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 81,512 KB
実行使用メモリ 78,720 KB
最終ジャッジ日時 2023-10-20 02:12:04
合計ジャッジ時間 5,587 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,444 KB
testcase_01 AC 224 ms
77,492 KB
testcase_02 AC 182 ms
77,536 KB
testcase_03 AC 192 ms
77,944 KB
testcase_04 AC 184 ms
78,092 KB
testcase_05 AC 183 ms
78,132 KB
testcase_06 AC 185 ms
77,812 KB
testcase_07 AC 192 ms
78,232 KB
testcase_08 AC 198 ms
77,964 KB
testcase_09 AC 196 ms
77,916 KB
testcase_10 AC 196 ms
77,944 KB
testcase_11 AC 66 ms
68,432 KB
testcase_12 AC 60 ms
66,364 KB
testcase_13 AC 186 ms
77,984 KB
testcase_14 AC 208 ms
78,720 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,math
input=lambda:sys.stdin.readline().rstrip()
def solve():
	H,W=map(int,input().split())
	for i in range(H):
		print(*[int((j+(W%3==2))%3!=0)+int((i+(H%3==2))%3!=0) for j in range(W)])
T=int(input())
for i in range(T):
	solve()
0