結果

問題 No.167 N^M mod 10
ユーザー maguroguma
提出日時 2017-09-24 01:48:53
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 121 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 21,504 KB
最終ジャッジ日時 2024-11-14 05:49:42
合計ジャッジ時間 10,540 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13 RE * 10 TLE * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-

N = int(input())
M = int(input())

ans = 1
for i in range(M):
    ans = (ans*N) % 10

print(ans)
0