結果

問題 No.167 N^M mod 10
ユーザー tookunn_1213tookunn_1213
提出日時 2015-03-22 00:18:12
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 79 bytes
コンパイル時間 176 ms
コンパイル使用メモリ 6,548 KB
実行使用メモリ 6,284 KB
最終ジャッジ日時 2023-09-11 09:20:01
合計ジャッジ時間 1,579 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,040 KB
testcase_01 AC 11 ms
6,004 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 13 ms
6,224 KB
testcase_05 WA -
testcase_06 AC 11 ms
6,008 KB
testcase_07 AC 11 ms
5,980 KB
testcase_08 AC 12 ms
6,040 KB
testcase_09 AC 12 ms
6,076 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 12 ms
6,108 KB
testcase_15 AC 11 ms
6,008 KB
testcase_16 WA -
testcase_17 AC 11 ms
6,228 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 11 ms
5,980 KB
testcase_21 AC 11 ms
6,116 KB
testcase_22 WA -
testcase_23 AC 13 ms
6,160 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 12 ms
6,040 KB
testcase_27 WA -
testcase_28 AC 13 ms
6,164 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = input(),input()
if M == 0:
	print 1
else:
	print ((N % 10)*(N % 10)) % 10
0