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