結果

問題 No.478 一般門松列列
ユーザー titiatitia
提出日時 2023-05-29 00:08:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 254 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 8,948 KB
最終ジャッジ日時 2023-08-27 17:56:29
合計ジャッジ時間 2,891 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,904 KB
testcase_01 AC 14 ms
7,852 KB
testcase_02 AC 15 ms
7,856 KB
testcase_03 AC 15 ms
7,844 KB
testcase_04 AC 15 ms
7,948 KB
testcase_05 AC 14 ms
7,796 KB
testcase_06 AC 15 ms
7,840 KB
testcase_07 AC 15 ms
7,964 KB
testcase_08 AC 15 ms
7,848 KB
testcase_09 AC 15 ms
7,856 KB
testcase_10 AC 14 ms
7,900 KB
testcase_11 AC 26 ms
8,924 KB
testcase_12 AC 31 ms
8,592 KB
testcase_13 AC 29 ms
8,828 KB
testcase_14 AC 28 ms
8,948 KB
testcase_15 AC 27 ms
8,764 KB
testcase_16 AC 19 ms
8,580 KB
testcase_17 AC 28 ms
8,732 KB
testcase_18 AC 23 ms
8,596 KB
testcase_19 AC 29 ms
8,700 KB
testcase_20 AC 25 ms
8,768 KB
testcase_21 AC 23 ms
8,644 KB
testcase_22 AC 21 ms
8,652 KB
testcase_23 AC 19 ms
8,620 KB
testcase_24 AC 23 ms
8,660 KB
testcase_25 AC 27 ms
8,872 KB
testcase_26 AC 16 ms
8,396 KB
testcase_27 AC 17 ms
8,496 KB
testcase_28 AC 16 ms
8,340 KB
testcase_29 AC 16 ms
8,292 KB
testcase_30 AC 21 ms
8,552 KB
testcase_31 AC 20 ms
8,580 KB
testcase_32 AC 19 ms
8,656 KB
testcase_33 AC 19 ms
8,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k=map(int,input().split())

A=[1]*n
for i in range(n):
    if i%4==0:
        A[i]=1
    elif i%4==1:
        A[i]=1000
    elif i%4==2:
        A[i]=2
    else:
        A[i]=999

for i in range(n-k,n):
    A[i]=A[i-1]

print(*A)
0