結果
| 問題 |
No.1158 GCD Products easy
|
| ユーザー |
|
| 提出日時 | 2022-02-16 14:56:07 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 148 ms / 2,000 ms |
| コード長 | 197 bytes |
| コンパイル時間 | 190 ms |
| コンパイル使用メモリ | 82,244 KB |
| 実行使用メモリ | 75,856 KB |
| 最終ジャッジ日時 | 2024-06-29 07:16:22 |
| 合計ジャッジ時間 | 2,145 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 25 |
ソースコード
#yuki1158 import itertools,math mod=10**9+7 a,b,n=map(int,input().split()) res=1 for t in itertools.product(range(a,b+1),repeat=n): g=0 for i in t: g=math.gcd(g,i) res*=g res%=mod print(res)