結果
問題 |
No.167 N^M mod 10
|
ユーザー |
![]() |
提出日時 | 2015-03-19 23:43:37 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 141 bytes |
コンパイル時間 | 94 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 17,564 KB |
最終ジャッジ日時 | 2024-06-28 23:22:31 |
合計ジャッジ時間 | 2,471 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 2 |
other | AC * 1 TLE * 1 -- * 25 |
ソースコード
#!/usr/bin/env python # -*- coding: utf-8 -*- N = int(input()) M = int(input()) ans = N for _ in range(M-1): ans = ans*N%10 print(ans)