結果
| 問題 |
No.2269 eN!の整数部分の下1桁
|
| コンテスト | |
| ユーザー |
とりゐ
|
| 提出日時 | 2023-04-14 21:38:00 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 165 bytes |
| コンパイル時間 | 489 ms |
| コンパイル使用メモリ | 82,472 KB |
| 実行使用メモリ | 76,240 KB |
| 最終ジャッジ日時 | 2024-10-10 12:20:25 |
| 合計ジャッジ時間 | 3,625 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 WA * 11 |
ソースコード
for _ in range(int(input())):
n=int(input())
ans=0
res=1
for i in range(10):
x=n-i
if x>=0:
ans+=res
res*=x
res%=10
print(ans%10)
とりゐ