結果

問題 No.167 N^M mod 10
ユーザー kokoa1046
提出日時 2017-09-08 15:17:33
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 121 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-07 04:59:53
合計ジャッジ時間 1,880 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10 WA * 7 RE * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
# Here your code !

a= int(input())
b=int(input())
if b%10==0:
    print(a)
else:
    print(a**(b%10)%10)
0