結果

問題 No.167 N^M mod 10
ユーザー d2verbd2verb
提出日時 2015-05-05 12:42:33
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 83 bytes
コンパイル時間 1,212 ms
コンパイル使用メモリ 6,596 KB
実行使用メモリ 6,200 KB
最終ジャッジ日時 2023-09-19 07:03:26
合計ジャッジ時間 1,858 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 16 ms
6,028 KB
testcase_03 AC 15 ms
6,132 KB
testcase_04 WA -
testcase_05 AC 12 ms
5,872 KB
testcase_06 WA -
testcase_07 AC 11 ms
5,848 KB
testcase_08 AC 11 ms
5,980 KB
testcase_09 AC 12 ms
5,912 KB
testcase_10 WA -
testcase_11 AC 12 ms
5,948 KB
testcase_12 AC 11 ms
5,892 KB
testcase_13 WA -
testcase_14 AC 11 ms
5,876 KB
testcase_15 AC 11 ms
5,848 KB
testcase_16 AC 11 ms
5,956 KB
testcase_17 AC 11 ms
6,036 KB
testcase_18 AC 12 ms
5,880 KB
testcase_19 AC 11 ms
5,952 KB
testcase_20 AC 11 ms
6,176 KB
testcase_21 AC 10 ms
6,008 KB
testcase_22 AC 13 ms
6,164 KB
testcase_23 AC 14 ms
6,200 KB
testcase_24 AC 15 ms
6,188 KB
testcase_25 AC 15 ms
6,124 KB
testcase_26 AC 12 ms
6,076 KB
testcase_27 WA -
testcase_28 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = raw_input()
M = raw_input()
N = int(N)
M = int(M) % 4
ANS = N**M % 10
print ANS
0