結果
問題 |
No.167 N^M mod 10
|
ユーザー |
![]() |
提出日時 | 2023-01-06 01:18:58 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 116 bytes |
コンパイル時間 | 297 ms |
コンパイル使用メモリ | 82,368 KB |
実行使用メモリ | 54,080 KB |
最終ジャッジ日時 | 2024-11-29 18:23:04 |
合計ジャッジ時間 | 2,494 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 WA * 5 |
ソースコード
N = input() M = "0" + input() n = int(N[-1]) if n == 0: print(0) exit() m = int(M[-2:]) print(pow(n, m, 10))