結果
| 問題 | No.2269 eN!の整数部分の下1桁 |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2023-04-14 22:52:06 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 883 ms / 2,000 ms |
| コード長 | 257 bytes |
| 記録 | |
| コンパイル時間 | 541 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-04-26 15:47:20 |
| 合計ジャッジ時間 | 9,490 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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