結果
| 問題 | 
                            No.2007 Arbitrary Mod (Easy)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             ID 21712
                         | 
                    
| 提出日時 | 2024-10-15 15:47:45 | 
| 言語 | Go  (1.23.4)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 220 bytes | 
| コンパイル時間 | 12,737 ms | 
| コンパイル使用メモリ | 223,828 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-15 15:48:01 | 
| 合計ジャッジ時間 | 14,919 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 30 | 
ソースコード
package main
import  . "fmt"
import . "math/big"
func main() {
	var a,n int64
	Scan(&a,&n)
	ba:=NewInt(a)
	bn:=NewInt(n)
	const m=1e8
	bm:=NewInt(m)
	ans:=ba.Exp(ba,bn,bm).Int64()
	Println(bm.Int64())
	Println(ans)
	
}
            
            
            
        
            
ID 21712