結果

問題 No.1831 Parasol
ユーザー 👑 KazunKazun
提出日時 2022-02-04 23:27:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 111 ms / 2,000 ms
コード長 347 bytes
コンパイル時間 365 ms
コンパイル使用メモリ 86,964 KB
実行使用メモリ 79,052 KB
最終ジャッジ日時 2023-09-02 05:59:40
合計ジャッジ時間 4,225 ms
ジャッジサーバーID
(参考情報)
judge13 / judge16
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,580 KB
testcase_01 AC 109 ms
78,824 KB
testcase_02 AC 74 ms
71,568 KB
testcase_03 AC 74 ms
71,352 KB
testcase_04 AC 109 ms
79,052 KB
testcase_05 AC 76 ms
71,364 KB
testcase_06 AC 75 ms
71,552 KB
testcase_07 AC 110 ms
79,028 KB
testcase_08 AC 76 ms
71,368 KB
testcase_09 AC 75 ms
71,376 KB
testcase_10 AC 104 ms
78,508 KB
testcase_11 AC 110 ms
78,776 KB
testcase_12 AC 98 ms
78,104 KB
testcase_13 AC 111 ms
78,872 KB
testcase_14 AC 87 ms
76,576 KB
testcase_15 AC 89 ms
76,648 KB
testcase_16 AC 76 ms
71,388 KB
testcase_17 AC 76 ms
71,100 KB
testcase_18 AC 87 ms
76,736 KB
testcase_19 AC 74 ms
71,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def f(l,r):
    return list(range(l,r+1))

#==================================================
N=int(input())
#==================================================
A=[]

for i in range(1,N+1):
    A.append(f(i,i)+f(N+1,2*N-1))

A.append(f(N,2*N-1))

for i in range(2,N):
    A.append(f(i,N)+f(2*N+1-i,2*N-1))

print(2*N-1)
for a in A:
    print(*a)
0