結果
問題 |
No.167 N^M mod 10
|
ユーザー |
![]() |
提出日時 | 2020-03-02 13:54:12 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 121 bytes |
コンパイル時間 | 79 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 17,444 KB |
最終ジャッジ日時 | 2024-10-13 21:01:25 |
合計ジャッジ時間 | 2,490 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)