結果
| 問題 |
No.167 N^M mod 10
|
| コンテスト | |
| ユーザー |
s0j1san
|
| 提出日時 | 2020-12-20 22:01:33 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 129 bytes |
| コンパイル時間 | 173 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-09-21 12:15:11 |
| 合計ジャッジ時間 | 1,945 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 16 WA * 1 RE * 10 |
ソースコード
n =int(input()) m =int(input()) n%=10 if m==10:print(1) else: m=m-1 m%=4; m+=1; d=1; for i in range(m): d*=n print(d%10)
s0j1san