結果
| 問題 | No.167 N^M mod 10 |
| コンテスト | |
| ユーザー |
s0j1san
|
| 提出日時 | 2020-12-20 22:01:33 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 129 bytes |
| 記録 | |
| コンパイル時間 | 501 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 20,700 KB |
| 最終ジャッジ日時 | 2026-04-09 17:57:41 |
| 合計ジャッジ時間 | 5,870 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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