結果
| 問題 | No.251 大きな桁の復習問題(1) | 
| コンテスト | |
| ユーザー |  tails | 
| 提出日時 | 2015-07-25 01:59:10 | 
| 言語 | Perl (5.40.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 118 bytes | 
| コンパイル時間 | 630 ms | 
| コンパイル使用メモリ | 12,800 KB | 
| 実行使用メモリ | 15,232 KB | 
| 最終ジャッジ日時 | 2024-07-16 04:26:13 | 
| 合計ジャッジ時間 | 3,151 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 19 WA * 2 | 
コンパイルメッセージ
Main.pl syntax OK
ソースコード
use bigint;
$p=129402307;
sub f{
	my($n,$m)=@_;
	$m?$m&1?f($n,$m-1)*$n%$p:f($n*$n%$p,$m/2):1;
}
print f<>%$p,<>%($p-1)
            
            
            
        