結果
問題 | No.167 N^M mod 10 |
ユーザー |
|
提出日時 | 2015-08-23 17:50:43 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 15 ms / 1,000 ms |
コード長 | 61 bytes |
コンパイル時間 | 49 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,528 KB |
最終ジャッジ日時 | 2024-09-22 01:18:59 |
合計ジャッジ時間 | 1,282 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 27 |
ソースコード
N, M = int(raw_input()), int(raw_input())print pow(N, M, 10)