結果

問題 No.167 N^M mod 10
ユーザー e-mon
提出日時 2015-03-19 23:55:13
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 144 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 82,216 KB
実行使用メモリ 65,596 KB
最終ジャッジ日時 2024-06-28 23:27:46
合計ジャッジ時間 2,553 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample -- * 2
other AC * 1 TLE * 1 -- * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python
# -*- coding: utf-8 -*-

N = int(input())
M = int(input())

ans = N%10
for _ in range(M-1):
    ans = ans*N%10
print(ans)
0