結果

問題 No.251 大きな桁の復習問題(1)
ユーザー takakin
提出日時 2020-06-23 00:19:01
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 163 bytes
コンパイル時間 116 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-07-03 19:03:14
合計ジャッジ時間 1,890 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9 WA * 1 RE * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda: sys.stdin.readline().rstrip()
n=int(input())
m=int(input())
mod=129402307
n%=mod
m%=mod-1
if n==0:
  print(0)
else:
  print(pow(n,m,mod))
0