結果
| 問題 | No.741 AscNumber(Easy) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-10-05 23:20:02 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 293 bytes |
| 記録 | |
| コンパイル時間 | 57 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-14 18:58:55 |
| 合計ジャッジ時間 | 49,253 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 44 TLE * 11 |
ソースコード
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)