結果
| 問題 |
No.1851 Regular Tiling
|
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2022-02-25 22:55:48 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 136 ms / 2,000 ms |
| コード長 | 413 bytes |
| コンパイル時間 | 204 ms |
| コンパイル使用メモリ | 82,704 KB |
| 実行使用メモリ | 79,232 KB |
| 最終ジャッジ日時 | 2024-07-03 17:53:23 |
| 合計ジャッジ時間 | 3,018 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 14 |
ソースコード
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)
H20