結果

問題 No.167 N^M mod 10
ユーザー H3PO4
提出日時 2023-07-15 09:39:09
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 222 ms / 1,000 ms
コード長 102 bytes
コンパイル時間 443 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 12,032 KB
最終ジャッジ日時 2024-09-16 17:53:24
合計ジャッジ時間 2,490 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
sys.set_int_max_str_digits(10 ** 6)
N = int(input())
M = int(input())
print(pow(N, M, 10))
0