結果
問題 |
No.167 N^M mod 10
|
ユーザー |
|
提出日時 | 2016-09-08 09:27:20 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 114 bytes |
コンパイル時間 | 221 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,528 KB |
最終ジャッジ日時 | 2024-11-15 22:15:46 |
合計ジャッジ時間 | 1,468 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 25 WA * 2 |
ソースコード
n, m = input(), input() if m == 0: print 1 else: m = m%4 if m == 0: m = 4 print (n%10)**m%10