結果
問題 |
No.666 1000000007で割るだけ
|
ユーザー |
![]() |
提出日時 | 2019-11-05 22:50:00 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 2,000 ms |
コード長 | 234 bytes |
コンパイル時間 | 90 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-15 00:14:16 |
合計ジャッジ時間 | 1,768 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
import math n = input() m = n.split() p = [int(i) for i in m] d = 1000000007 / int(p[0]) d = math.ceil(d) f = d * p[0] - 1000000007 h = int(p[1]) / int(d) h = math.floor(h) g = f * h + p[0] * (p[1] - d * h) A = g % 1000000007 print(A)