結果
| 問題 | No.251 大きな桁の復習問題(1) | 
| コンテスト | |
| ユーザー |  nola_suz | 
| 提出日時 | 2015-07-29 13:24:24 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                RE
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 205 bytes | 
| コンパイル時間 | 181 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 11,008 KB | 
| 最終ジャッジ日時 | 2024-07-17 22:03:41 | 
| 合計ジャッジ時間 | 1,614 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 10 RE * 11 | 
ソースコード
import sys a = int(input()) b = int(input()) # print(a) MOD=129402307 a=a%MOD if(b==0): print(1) sys.exit() if a==0 : print(0) sys.exit() x=1 while(b): if b&1: x=x*a%MOD a=a*a%MOD b=b>>1 print(x)
