結果
問題 | No.2269 eN!の整数部分の下1桁 |
ユーザー | とりゐ |
提出日時 | 2023-04-14 21:47:48 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 275 ms / 2,000 ms |
コード長 | 202 bytes |
コンパイル時間 | 362 ms |
コンパイル使用メモリ | 82,252 KB |
実行使用メモリ | 76,500 KB |
最終ジャッジ日時 | 2024-10-10 12:30:14 |
合計ジャッジ時間 | 3,236 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
for _ in range(int(input())): n=int(input()) if n==0: print(2) continue ans=0 res=1 for i in range(10): x=n-i if x>=0: ans+=res res*=x res%=10 print(ans%10)