結果

問題 No.167 N^M mod 10
ユーザー tookunn_1213tookunn_1213
提出日時 2015-08-14 12:54:05
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 73 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 6,684 KB
実行使用メモリ 111,788 KB
最終ジャッジ日時 2023-09-25 11:35:43
合計ジャッジ時間 2,395 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
7,564 KB
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 AC 30 ms
8,876 KB
testcase_06 AC 11 ms
6,048 KB
testcase_07 AC 11 ms
6,028 KB
testcase_08 AC 11 ms
6,116 KB
testcase_09 AC 11 ms
5,948 KB
testcase_10 AC 11 ms
6,052 KB
testcase_11 AC 11 ms
6,048 KB
testcase_12 AC 11 ms
6,120 KB
testcase_13 AC 11 ms
6,116 KB
testcase_14 AC 11 ms
5,972 KB
testcase_15 AC 11 ms
5,936 KB
testcase_16 AC 11 ms
6,212 KB
testcase_17 AC 13 ms
6,452 KB
testcase_18 AC 651 ms
111,788 KB
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 AC 12 ms
6,004 KB
testcase_27 RE -
testcase_28 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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