結果

問題 No.478 一般門松列列
ユーザー pluto77pluto77
提出日時 2017-01-29 11:04:23
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 203 bytes
コンパイル時間 1,051 ms
コンパイル使用メモリ 6,588 KB
実行使用メモリ 6,332 KB
最終ジャッジ日時 2023-08-25 14:32:53
合計ジャッジ時間 6,062 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,840 KB
testcase_01 AC 11 ms
6,120 KB
testcase_02 AC 11 ms
5,924 KB
testcase_03 AC 11 ms
5,840 KB
testcase_04 AC 11 ms
5,932 KB
testcase_05 AC 11 ms
6,100 KB
testcase_06 AC 11 ms
5,924 KB
testcase_07 AC 11 ms
5,928 KB
testcase_08 AC 11 ms
5,948 KB
testcase_09 AC 11 ms
5,884 KB
testcase_10 AC 11 ms
5,932 KB
testcase_11 AC 223 ms
6,144 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 182 ms
6,168 KB
testcase_16 WA -
testcase_17 AC 187 ms
6,192 KB
testcase_18 AC 79 ms
6,112 KB
testcase_19 AC 203 ms
6,140 KB
testcase_20 AC 141 ms
6,020 KB
testcase_21 AC 101 ms
6,008 KB
testcase_22 AC 41 ms
6,084 KB
testcase_23 AC 39 ms
5,960 KB
testcase_24 WA -
testcase_25 AC 146 ms
6,332 KB
testcase_26 WA -
testcase_27 AC 17 ms
5,932 KB
testcase_28 AC 13 ms
5,880 KB
testcase_29 AC 13 ms
5,976 KB
testcase_30 AC 57 ms
5,976 KB
testcase_31 AC 36 ms
6,252 KB
testcase_32 AC 25 ms
6,152 KB
testcase_33 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki478

n,k=map(int,raw_input().split())
s=[1,3,2,4]
t=[]
m=n/4+1
for i in xrange(m):
 t=t+s[:]
u=t[:n]
if k==1:
 u[0]=2
else:
 for i in xrange(k):
  u[i]=1
for i in xrange(len(u)):
 print u[i],
print
0