結果
問題 |
No.167 N^M mod 10
|
ユーザー |
|
提出日時 | 2024-10-09 10:17:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 159 bytes |
コンパイル時間 | 93 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-09 10:17:49 |
合計ジャッジ時間 | 1,953 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 21 WA * 6 |
ソースコード
n = input() m = input() n1 = int(n[-1]) m1 = int(m[-2:]) if m1 == 0: print(1) quit() if n1 == 0: print(0) quit() print(pow(n1, m1, 10))