結果
問題 |
No.2425 Power Range GCD
|
ユーザー |
![]() |
提出日時 | 2023-08-18 21:13:13 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 164 bytes |
コンパイル時間 | 165 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,136 KB |
最終ジャッジ日時 | 2024-11-28 05:08:19 |
合計ジャッジ時間 | 1,747 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 RE * 30 |
ソースコード
import math l, r = map(int, input().split()) ans = int(math.pow(l, l)) for i in range(l, r+1): num = int(math.pow(i,i)) ans = math.gcd(ans, num) print(ans)