結果
| 問題 | No.251 大きな桁の復習問題(1) | 
| コンテスト | |
| ユーザー |  tails | 
| 提出日時 | 2015-07-24 23:10:37 | 
| 言語 | Perl (5.40.0) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 126 bytes | 
| コンパイル時間 | 506 ms | 
| コンパイル使用メモリ | 12,800 KB | 
| 実行使用メモリ | 266,624 KB | 
| 最終ジャッジ日時 | 2024-07-08 13:37:26 | 
| 合計ジャッジ時間 | 13,248 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | -- * 3 | 
| other | TLE * 1 -- * 20 | 
コンパイルメッセージ
Main.pl syntax OK
ソースコード
use bigint;
use constant M,129402307;
print f(<>%M,<>);
sub f{
	my($n,$m)=@_;
	$m&1?$m>1?f($n,$m-1)*$n%M:$n:f($n*$n%M,$m/2);
}
            
            
            
        