結果
| 問題 | 
                            No.2007 Arbitrary Mod (Easy)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             ytft
                         | 
                    
| 提出日時 | 2022-07-29 16:33:59 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 42 ms / 2,000 ms | 
| コード長 | 211 bytes | 
| コンパイル時間 | 195 ms | 
| コンパイル使用メモリ | 82,152 KB | 
| 実行使用メモリ | 52,224 KB | 
| 最終ジャッジ日時 | 2024-07-19 07:45:16 | 
| 合計ジャッジ時間 | 3,759 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 30 | 
ソースコード
import sys def input():return sys.stdin.readline().strip() a,n=map(int,input().split()) temp=1 for i in range(n): temp*=a if temp>=pow(10,7): print(temp) print(0) sys.exit() print(pow(10,18)) print(temp)
            
ytft