結果
| 問題 |
No.251 大きな桁の復習問題(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-28 15:17:24 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 167 bytes |
| コンパイル時間 | 476 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 65,664 KB |
| 最終ジャッジ日時 | 2024-12-29 11:43:31 |
| 合計ジャッジ時間 | 2,426 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 RE * 11 |
ソースコード
N = int(input())
M = int(input())
P = 129402307
import sys
if M == 0:
print(1)
exit()
N %= P
M %= (P-1)
if N == 0:
print(0)
exit()
print(pow(N,M,P))