結果

問題 No.167 N^M mod 10
ユーザー rlangevinrlangevin
提出日時 2023-01-06 01:18:58
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 116 bytes
コンパイル時間 1,547 ms
コンパイル使用メモリ 86,584 KB
実行使用メモリ 71,552 KB
最終ジャッジ日時 2023-08-19 21:51:56
合計ジャッジ時間 3,877 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,232 KB
testcase_01 WA -
testcase_02 AC 68 ms
71,116 KB
testcase_03 AC 68 ms
71,400 KB
testcase_04 WA -
testcase_05 AC 68 ms
71,048 KB
testcase_06 WA -
testcase_07 AC 68 ms
71,096 KB
testcase_08 AC 68 ms
71,048 KB
testcase_09 AC 67 ms
71,292 KB
testcase_10 AC 69 ms
71,228 KB
testcase_11 AC 69 ms
71,380 KB
testcase_12 AC 68 ms
71,212 KB
testcase_13 AC 68 ms
71,324 KB
testcase_14 WA -
testcase_15 AC 68 ms
71,304 KB
testcase_16 AC 67 ms
71,268 KB
testcase_17 AC 68 ms
71,220 KB
testcase_18 AC 67 ms
71,356 KB
testcase_19 AC 67 ms
71,480 KB
testcase_20 AC 69 ms
71,256 KB
testcase_21 AC 68 ms
71,160 KB
testcase_22 AC 70 ms
71,552 KB
testcase_23 AC 69 ms
71,228 KB
testcase_24 AC 68 ms
71,320 KB
testcase_25 AC 69 ms
71,044 KB
testcase_26 AC 68 ms
71,228 KB
testcase_27 WA -
testcase_28 AC 67 ms
71,316 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
M = "0" + input()
n = int(N[-1])
if n == 0:
    print(0)
    exit()
m = int(M[-2:])
print(pow(n, m, 10))
0