結果
問題 |
No.167 N^M mod 10
|
ユーザー |
![]() |
提出日時 | 2023-01-06 01:18:02 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 81 bytes |
コンパイル時間 | 989 ms |
コンパイル使用メモリ | 82,440 KB |
実行使用メモリ | 53,220 KB |
最終ジャッジ日時 | 2024-11-29 18:08:30 |
合計ジャッジ時間 | 2,545 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 21 WA * 6 |
ソースコード
N = input() M = "0" + input() n = int(N[-1]) m = int(M[-2:]) print(pow(n, m, 10))