結果
| 問題 | 
                            No.2007 Arbitrary Mod (Easy)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2022-07-23 18:12:15 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 121 bytes | 
| コンパイル時間 | 101 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 23,556 KB | 
| 最終ジャッジ日時 | 2024-07-05 07:54:57 | 
| 合計ジャッジ時間 | 3,858 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 TLE * 1 | 
| other | -- * 30 | 
ソースコード
a, n = map(int, input().split())
M = 10 ** 7
def remainder(a, n):
    return a ** n % M
print(M)
print(remainder(a, n))