結果

問題 No.1831 Parasol
ユーザー convexineqconvexineq
提出日時 2022-02-12 07:35:46
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 257 bytes
コンパイル時間 1,671 ms
コンパイル使用メモリ 86,444 KB
実行使用メモリ 79,048 KB
最終ジャッジ日時 2023-09-10 17:40:50
合計ジャッジ時間 7,813 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,344 KB
testcase_01 WA -
testcase_02 AC 71 ms
71,560 KB
testcase_03 AC 71 ms
71,492 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 71 ms
71,324 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
r = [[] for _ in range(n)]
W = 2*n-1
for i in range(n-1):
    v = W-i
    r[i].extend([v]*v)
    r[i].extend([W-v+2]*(W-v))
for i in range(3,W-v+3):
    r[-1].extend([i]*2)
r[-1].extend([2,2,1])

print(W)
for lst in zip(*r):
    print(*lst)
0