結果
| 問題 |
No.251 大きな桁の復習問題(1)
|
| コンテスト | |
| ユーザー |
yaoshimax
|
| 提出日時 | 2016-05-08 00:54:22 |
| 言語 | Python2 (2.7.18) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 169 bytes |
| コンパイル時間 | 333 ms |
| コンパイル使用メモリ | 6,784 KB |
| 実行使用メモリ | 12,032 KB |
| 最終ジャッジ日時 | 2024-10-05 10:33:56 |
| 合計ジャッジ時間 | 7,468 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | AC * 9 TLE * 1 -- * 11 |
ソースコード
N=int(raw_input())
M=int(raw_input())
ans=1
mul=N
mod=129402307
while M>0:
if M%2==1:
ans*=mul
ans%=mod
mul*=mul
mul%=mod
M/=2
print ans
yaoshimax