結果
| 問題 |
No.1136 Four Points Tour
|
| ユーザー |
Shirapon_pon
|
| 提出日時 | 2021-11-08 04:38:51 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 272 bytes |
| コンパイル時間 | 86 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 821,760 KB |
| 最終ジャッジ日時 | 2024-11-15 13:31:02 |
| 合計ジャッジ時間 | 46,790 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 MLE * 29 |
ソースコード
n = int(input())
m = 10**9+7
a = []
b = []
c = []
d = []
a.append(1)
b.append(0)
c.append(0)
d.append(0)
for x in range(n):
a.append(b[x]+c[x]+d[x])
b.append(a[x]+c[x]+d[x])
c.append(a[x]+b[x]+d[x])
d.append(a[x]+b[x]+c[x])
print(a[n]%m)
Shirapon_pon