結果

問題 No.2870 Dice Making
ユーザー ra5anchor
提出日時 2024-09-06 21:29:45
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 245 bytes
コンパイル時間 179 ms
コンパイル使用メモリ 82,344 KB
実行使用メモリ 53,564 KB
最終ジャッジ日時 2024-09-06 21:29:48
合計ジャッジ時間 2,266 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

N, K = map(int, input().split())
# if N not in [4, 6, 8, 12, 20]:
#     print(-1)
#     exit()
if N <= 3:
    print(-1)
    exit()
if N % K != 0:
    print(-1)
    exit()
a = N // K
ans = [1]*a
for i in range(N-a):
    ans.append(2)
print(*ans)
0