結果
問題 |
No.167 N^M mod 10
|
ユーザー |
![]() |
提出日時 | 2015-03-22 00:13:00 |
言語 | Python2 (2.7.18) |
結果 |
TLE
|
実行時間 | - |
コード長 | 76 bytes |
コンパイル時間 | 42 ms |
コンパイル使用メモリ | 6,784 KB |
実行使用メモリ | 12,120 KB |
最終ジャッジ日時 | 2024-06-29 00:00:05 |
合計ジャッジ時間 | 5,113 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 2 |
other | TLE * 2 -- * 25 |
ソースコード
N,M = input(),input() ans = 1 for i in xrange(M): ans *= N print (ans % 10)