結果
問題 | No.167 N^M mod 10 |
ユーザー |
![]() |
提出日時 | 2020-03-06 07:37:48 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 157 bytes |
コンパイル時間 | 168 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 15,872 KB |
最終ジャッジ日時 | 2024-10-14 02:37:41 |
合計ジャッジ時間 | 2,866 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 2 |
other | AC * 1 TLE * 1 -- * 25 |
ソースコード
def mulm(a,b):return ((a % 10) * (b % 10)) % 10N = int(input())M = int(input())n = N % 10k = N % 10for i in range(M-1):k = mulm(n,k)print(k)