結果
| 問題 |
No.2269 eN!の整数部分の下1桁
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2023-04-14 22:47:31 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 214 bytes |
| コンパイル時間 | 164 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 15,872 KB |
| 最終ジャッジ日時 | 2024-10-10 13:46:35 |
| 合計ジャッジ時間 | 5,256 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 18 TLE * 1 -- * 4 |
ソースコード
T=int(input())
for tests in range(T):
N=int(input())
ANS=0
now=1
x=(N-1)%10
for i in range(100):
ANS+=now
now*=x
x-=1
now%=10
x%=10
print(ANS%10)
titia