結果
問題 | No.554 recurrence formula |
ユーザー |
![]() |
提出日時 | 2017-08-12 06:47:15 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 234 bytes |
コンパイル時間 | 93 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 16,128 KB |
最終ジャッジ日時 | 2024-10-12 23:29:24 |
合計ジャッジ時間 | 7,066 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 TLE * 1 -- * 7 |
ソースコード
# your code goes here # reccurence a=[1] m=1000000007 n=int(input()) i=2 while i <=n: i2=i//2 s=0 # print(a) for j in range(i2): j2=j*2 s+=a[-1-j2] s*=i s%=m a.append(s) i+=1 print(a[-1])