結果
| 問題 |
No.167 N^M mod 10
|
| コンテスト | |
| ユーザー |
tookunn_1213
|
| 提出日時 | 2015-08-14 14:09:00 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 153 bytes |
| コンパイル時間 | 86 ms |
| コンパイル使用メモリ | 6,940 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-18 09:22:13 |
| 合計ジャッジ時間 | 1,104 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 25 WA * 2 |
ソースコード
N,M = input(),input() n = N % 10 li = [] now = n while now not in li: li.append(now) now *= n now %= 10 print li[(0 if M - 1 < 0 else M - 1)% len(li)]
tookunn_1213