結果
問題 |
No.665 Bernoulli Bernoulli
|
ユーザー |
![]() |
提出日時 | 2018-03-10 00:04:15 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 143 bytes |
コンパイル時間 | 85 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 17,444 KB |
最終ジャッジ日時 | 2024-10-10 21:28:42 |
合計ジャッジ時間 | 3,732 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 TLE * 1 |
other | -- * 15 |
ソースコード
s = input().split() n = int(s[0]) k = int(s[1]) ans = 0; for i in range(n + 1): ans = (ans + pow(i,k,1000000007)) % 1000000007 print(ans)