結果

問題 No.167 N^M mod 10
ユーザー 🍡yurahuna🍡yurahuna
提出日時 2016-05-05 15:17:36
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 65 bytes
コンパイル時間 320 ms
コンパイル使用メモリ 82,488 KB
実行使用メモリ 67,036 KB
最終ジャッジ日時 2024-04-15 13:14:21
合計ジャッジ時間 2,515 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 AC 39 ms
52,560 KB
testcase_06 WA -
testcase_07 AC 39 ms
52,564 KB
testcase_08 AC 41 ms
52,068 KB
testcase_09 AC 40 ms
52,364 KB
testcase_10 WA -
testcase_11 AC 39 ms
52,048 KB
testcase_12 AC 39 ms
52,100 KB
testcase_13 WA -
testcase_14 AC 39 ms
52,360 KB
testcase_15 AC 40 ms
52,776 KB
testcase_16 AC 39 ms
52,564 KB
testcase_17 AC 39 ms
53,012 KB
testcase_18 AC 39 ms
53,112 KB
testcase_19 AC 39 ms
52,888 KB
testcase_20 AC 39 ms
52,520 KB
testcase_21 AC 40 ms
52,340 KB
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 AC 39 ms
52,800 KB
testcase_27 RE -
testcase_28 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

a = int(input()[-1])
m = int(input())
print((a ** (m % 4)) % 10)
0