結果
| 問題 | No.167 N^M mod 10 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-24 12:04:04 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 127 bytes |
| 記録 | |
| コンパイル時間 | 418 ms |
| コンパイル使用メモリ | 20,568 KB |
| 実行使用メモリ | 43,040 KB |
| 最終ジャッジ日時 | 2026-03-23 22:54:26 |
| 合計ジャッジ時間 | 13,784 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 RE * 10 TLE * 4 |
ソースコード
def main():
N = int(input())
M = int(input())
print(((N % 10) ** M) % 10)
if __name__ == "__main__":
main()