結果
問題 |
No.251 大きな桁の復習問題(1)
|
ユーザー |
|
提出日時 | 2022-01-28 15:14:46 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 131 bytes |
コンパイル時間 | 761 ms |
コンパイル使用メモリ | 82,376 KB |
実行使用メモリ | 67,424 KB |
最終ジャッジ日時 | 2024-12-29 11:36:10 |
合計ジャッジ時間 | 2,830 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 WA * 1 RE * 11 |
ソースコード
N = int(input()) M = int(input()) P = 129402307 import sys N %= P M %= (P-1) if N == 0: print(0) exit() print(pow(N,M,P))