結果
| 問題 |
No.741 AscNumber(Easy)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-10-05 22:15:14 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 274 bytes |
| コンパイル時間 | 314 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 17,568 KB |
| 最終ジャッジ日時 | 2024-10-12 13:14:02 |
| 合計ジャッジ時間 | 5,738 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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])
c+=sum(s)%(10**9+7)
else:
if c>=10**9+7:
print(c%(10**9+7))
else:
print(c)