結果
問題 |
No.741 AscNumber(Easy)
|
ユーザー |
|
提出日時 | 2018-10-05 23:20:02 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 293 bytes |
コンパイル時間 | 100 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 17,696 KB |
最終ジャッジ日時 | 2024-10-12 13:26:22 |
合計ジャッジ時間 | 5,299 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 TLE * 1 -- * 19 |
ソースコード
n=int(input()) if n==1: print(10) else: s=[1]*9 c=10 for i in range(1,n): for t in range(0,9): s[t]=sum(s[t:9])%(1000000007) c+=sum(s)%(1000000007) else: if c>=10**9+7: print(c%(1000000007)) else: print(c)