結果
| 問題 |
No.167 N^M mod 10
|
| コンテスト | |
| ユーザー |
学ぶマン
|
| 提出日時 | 2025-03-04 13:15:16 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 136 bytes |
| コンパイル時間 | 474 ms |
| コンパイル使用メモリ | 82,780 KB |
| 実行使用メモリ | 53,784 KB |
| 最終ジャッジ日時 | 2025-03-04 13:15:20 |
| 合計ジャッジ時間 | 3,146 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 WA * 6 |
ソースコード
import sys, math sys.set_int_max_str_digits(0) N = input() M = input() N = int(N[-1]) M = int(M[-2:]) ans = pow(N, M, 10) print(ans)
学ぶマン