結果
| 問題 | No.53 悪の漸化式 |
| コンテスト | |
| ユーザー |
vwxyz
|
| 提出日時 | 2021-08-15 00:42:57 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 577 bytes |
| 記録 | |
| コンパイル時間 | 164 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 84,352 KB |
| 最終ジャッジ日時 | 2026-04-21 22:55:53 |
| 合計ジャッジ時間 | 3,582 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 WA * 6 |
ソースコード
import bisect
import copy
import decimal
import fractions
import heapq
import itertools
import math
import random
import sys
from collections import deque,defaultdict
from functools import lru_cache,reduce
from heapq import heappush,heappop,heapify,_heappop_max,_heapify_max
def _heappush_max(heap,item):
heap.append(item)
heapq._siftdown_max(heap,0,len(heap)-1)
from math import gcd as Gcd
read=sys.stdin.read
readline=sys.stdin.readline
readlines=sys.stdin.readlines
N=int(readline())
A=[4,3]
for _ in range(100):
A.append(19*A[-1]/4-3*A[-2])
ans=A[N]
print(ans)
vwxyz