結果
問題 |
No.1281 Cigarette Distribution
|
ユーザー |
![]() |
提出日時 | 2020-11-06 22:05:39 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 299 bytes |
コンパイル時間 | 326 ms |
コンパイル使用メモリ | 82,688 KB |
実行使用メモリ | 96,000 KB |
最終ジャッジ日時 | 2024-07-22 12:51:28 |
合計ジャッジ時間 | 3,543 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 WA * 19 |
ソースコード
N,M = map(int,input().split()); MOD = pow(10,9)+7 ans = [] for i in reversed(range(1,M+1)): if N < i*2 - 1: ans.append(0) else: base = N//i amari = N%i temp = pow(base,i-amari,MOD)*pow(base+1,amari,MOD) ans.append(temp) #print(temp,i) ans.reverse() print(*ans,sep="\n")