結果
| 問題 |
No.167 N^M mod 10
|
| コンテスト | |
| ユーザー |
ixmel
|
| 提出日時 | 2017-03-31 18:33:18 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 100 bytes |
| コンパイル時間 | 172 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-07-07 04:45:26 |
| 合計ジャッジ時間 | 1,855 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 14 WA * 3 RE * 10 |
ソースコード
n=int(input()) m=int(input()) out,t=1,n%10 while m: if m%2:out=out*t%10 t=t*t%10 m/=2 print(out)
ixmel