結果
| 問題 | No.2007 Arbitrary Mod (Easy) |
| コンテスト | |
| ユーザー |
yas_yasyu
|
| 提出日時 | 2022-07-15 21:33:01 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 228 bytes |
| 記録 | |
| コンパイル時間 | 631 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 41,268 KB |
| 最終ジャッジ日時 | 2026-03-15 18:27:19 |
| 合計ジャッジ時間 | 9,136 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 TLE * 1 |
| other | WA * 30 |
ソースコード
A,N = map(int,input().split()) M = 10**7 def pow_r(x, n): if n == 0: return 1 if n % 2 == 0: return pow_r(x ** 2, n // 2)%M else: # standard case ② n is odd return x * pow_r(x ** 2, (n - 1) // 2)%M print(pow_r(A,N))
yas_yasyu