結果

問題 No.167 N^M mod 10
ユーザー tookunn_1213tookunn_1213
提出日時 2015-08-14 13:04:08
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 86 bytes
コンパイル時間 62 ms
コンパイル使用メモリ 6,680 KB
実行使用メモリ 116,712 KB
最終ジャッジ日時 2023-09-25 11:36:35
合計ジャッジ時間 3,750 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
7,540 KB
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 AC 494 ms
9,060 KB
testcase_06 AC 11 ms
6,120 KB
testcase_07 AC 11 ms
5,968 KB
testcase_08 AC 11 ms
6,144 KB
testcase_09 AC 11 ms
6,040 KB
testcase_10 AC 11 ms
5,968 KB
testcase_11 AC 11 ms
6,048 KB
testcase_12 AC 11 ms
6,004 KB
testcase_13 AC 11 ms
5,968 KB
testcase_14 AC 11 ms
6,040 KB
testcase_15 AC 11 ms
6,152 KB
testcase_16 AC 12 ms
6,072 KB
testcase_17 AC 12 ms
6,552 KB
testcase_18 TLE -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = input(),input()
n = N % 10
ans = 1
for i in range(0,M):
	ans *= n
print ans % 10
0