結果

問題 No.954 Result
ユーザー momotaros300momotaros300
提出日時 2019-12-27 00:55:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 557 bytes
コンパイル時間 170 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,648 KB
最終ジャッジ日時 2024-04-15 15:31:10
合計ジャッジ時間 2,500 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
11,520 KB
testcase_01 AC 33 ms
11,648 KB
testcase_02 AC 33 ms
11,520 KB
testcase_03 WA -
testcase_04 AC 33 ms
11,520 KB
testcase_05 WA -
testcase_06 AC 33 ms
11,520 KB
testcase_07 AC 32 ms
11,520 KB
testcase_08 AC 33 ms
11,648 KB
testcase_09 AC 33 ms
11,520 KB
testcase_10 AC 34 ms
11,520 KB
testcase_11 AC 33 ms
11,520 KB
testcase_12 AC 33 ms
11,520 KB
testcase_13 AC 33 ms
11,520 KB
testcase_14 AC 33 ms
11,520 KB
testcase_15 AC 33 ms
11,520 KB
testcase_16 AC 33 ms
11,520 KB
testcase_17 AC 34 ms
11,520 KB
testcase_18 AC 33 ms
11,520 KB
testcase_19 AC 33 ms
11,648 KB
testcase_20 AC 33 ms
11,520 KB
testcase_21 AC 33 ms
11,520 KB
testcase_22 AC 33 ms
11,520 KB
testcase_23 AC 33 ms
11,520 KB
testcase_24 AC 33 ms
11,520 KB
testcase_25 AC 33 ms
11,648 KB
testcase_26 AC 35 ms
11,520 KB
testcase_27 AC 33 ms
11,648 KB
testcase_28 AC 33 ms
11,648 KB
testcase_29 AC 33 ms
11,520 KB
testcase_30 AC 34 ms
11,648 KB
testcase_31 AC 33 ms
11,520 KB
testcase_32 AC 33 ms
11,520 KB
testcase_33 AC 34 ms
11,648 KB
testcase_34 AC 33 ms
11,648 KB
testcase_35 AC 34 ms
11,648 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
inf = float('inf') ;mod = 10**9+7
minans = inf ;ans = 0 ;count = 0 ;pro = 1

F=[inf]*10**5; F[0]=0; F[1]=1
for i in range(2,10**5):
    F[i]=F[i-1]+F[i-2]
    if F[i]>=10**15:
        break
A=[int(input()) for i in range(5)]
A=A[::-1]
k=bisect.bisect_left(F,A[0])
if A[0]==1:
    if A[1]==1: k=1
    else: k=2

for i in range(5):
    # print(A[i],F[k+i])
    if A[i]==F[k+i]: count += 1
    else: break

print(count)
0