結果

問題 No.478 一般門松列列
ユーザー pluto77pluto77
提出日時 2017-01-29 11:26:30
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 215 bytes
コンパイル時間 404 ms
コンパイル使用メモリ 6,520 KB
実行使用メモリ 6,280 KB
最終ジャッジ日時 2023-08-25 14:34:56
合計ジャッジ時間 5,996 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,844 KB
testcase_01 AC 11 ms
6,088 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 11 ms
5,848 KB
testcase_05 WA -
testcase_06 AC 11 ms
5,852 KB
testcase_07 AC 11 ms
5,844 KB
testcase_08 AC 11 ms
5,844 KB
testcase_09 AC 11 ms
5,932 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 225 ms
6,076 KB
testcase_13 AC 225 ms
6,260 KB
testcase_14 AC 223 ms
6,064 KB
testcase_15 AC 183 ms
6,240 KB
testcase_16 AC 31 ms
5,968 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 203 ms
6,164 KB
testcase_20 WA -
testcase_21 AC 102 ms
6,116 KB
testcase_22 WA -
testcase_23 AC 39 ms
6,224 KB
testcase_24 WA -
testcase_25 AC 147 ms
6,176 KB
testcase_26 WA -
testcase_27 AC 17 ms
5,928 KB
testcase_28 WA -
testcase_29 AC 13 ms
6,120 KB
testcase_30 AC 57 ms
6,188 KB
testcase_31 AC 36 ms
5,964 KB
testcase_32 WA -
testcase_33 AC 32 ms
5,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki_478

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(n-1,n-k-2,-1):
  u[i]=3
for i in xrange(len(u)):
 print u[i],
print
0