結果
問題 |
No.167 N^M mod 10
|
ユーザー |
![]() |
提出日時 | 2020-03-02 14:02:14 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 121 bytes |
コンパイル時間 | 164 ms |
コンパイル使用メモリ | 82,064 KB |
実行使用メモリ | 64,292 KB |
最終ジャッジ日時 | 2024-10-13 21:01:38 |
合計ジャッジ時間 | 2,645 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 2 |
other | AC * 1 TLE * 1 -- * 25 |
ソースコード
N = int(input()) M = int(input()) n = N % 10 A = n for i in range(M-1): A *= n if A >= 10: A %= 10 print(A)