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