結果

問題 No.167 N^M mod 10
ユーザー _matumo_
提出日時 2019-07-09 13:28:06
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 99 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-12 01:00:14
合計ジャッジ時間 1,830 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 21 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int('1'+('0'+input())[-2:])
M=int('1'+('0'+input())[-2:])
n=1 if M==100 else pow(N,M,10)
print(n)
0