結果
| 問題 |
No.2870 Dice Making
|
| コンテスト | |
| ユーザー |
Cecil
|
| 提出日時 | 2024-09-06 21:38:12 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 302 bytes |
| コンパイル時間 | 165 ms |
| コンパイル使用メモリ | 82,464 KB |
| 実行使用メモリ | 54,220 KB |
| 最終ジャッジ日時 | 2024-09-06 21:38:44 |
| 合計ジャッジ時間 | 2,273 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 WA * 4 |
ソースコード
N,K = map(int, input().split())
dice = list()
cnt = 0
ans = False
for i in range(N):
if cnt/N == 1/K:
if N<2:
continue
else:
dice.append(2)
ans = True
else:
dice.append(1)
cnt += 1
if ans:
print(*dice)
else:
print(-1)
Cecil