結果
| 問題 |
No.2269 eN!の整数部分の下1桁
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2023-04-14 22:52:06 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 1,450 ms / 2,000 ms |
| コード長 | 257 bytes |
| コンパイル時間 | 150 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-10-10 13:52:15 |
| 合計ジャッジ時間 | 8,644 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
T=int(input())
for tests in range(T):
N=int(input())
if N==0:
print(2)
continue
ANS=0
now=1
x=N%10
for i in range(20):
ANS+=now
now*=x
x-=1
now%=10
x%=10
print(ANS%10)
titia