結果
| 問題 | No.2870 Dice Making |
| コンテスト | |
| ユーザー |
Cecil
|
| 提出日時 | 2024-09-06 21:39:29 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 275 bytes |
| 記録 | |
| コンパイル時間 | 274 ms |
| コンパイル使用メモリ | 85,504 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2026-04-04 00:28:55 |
| 合計ジャッジ時間 | 3,809 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
N,K = map(int, input().split())
dice = list()
cnt = 0
ans = False
for i in range(N):
if cnt/N == 1/K:
dice.append(2)
ans = True
else:
dice.append(1)
cnt += 1
if cnt/N == 1/K:
ans = True
if ans:
print(*dice)
else:
print(-1)
Cecil