結果
| 問題 | No.167 N^M mod 10 |
| コンテスト | |
| ユーザー |
mnr
|
| 提出日時 | 2020-03-02 13:35:28 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 88 bytes |
| 記録 | |
| コンパイル時間 | 65 ms |
| コンパイル使用メモリ | 81,180 KB |
| 実行使用メモリ | 298,440 KB |
| 最終ジャッジ日時 | 2026-09-16 00:18:01 |
| 合計ジャッジ時間 | 5,153 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)
mnr