結果
問題 | No.2425 Power Range GCD |
ユーザー |
![]() |
提出日時 | 2023-08-18 21:21:30 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 2,000 ms |
コード長 | 181 bytes |
コンパイル時間 | 232 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-28 05:29:29 |
合計ジャッジ時間 | 2,216 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
import mathl, r = map(int, input().split())"""ans = l**lfor i in range(l, r+1):num = int(i**i)ans = math.gcd(ans, num)"""if l == r:print(l**l)else:print(1)