結果
| 問題 | No.167 N^M mod 10 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-21 18:01:16 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 144 bytes |
| 記録 | |
| コンパイル時間 | 416 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 36,064 KB |
| 最終ジャッジ日時 | 2026-03-25 02:01:17 |
| 合計ジャッジ時間 | 15,750 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 5 WA * 7 RE * 10 TLE * 5 |
ソースコード
n = int(input()) m = int(input()) n %= 10 mm = m % 4 mm += 3 base = n for i in range(m): n *= base if m == 0: print(1) else: print(n % 10)