結果
問題 | No.954 Result |
ユーザー |
|
提出日時 | 2019-12-21 11:40:52 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 11 ms / 2,000 ms |
コード長 | 219 bytes |
コンパイル時間 | 370 ms |
コンパイル使用メモリ | 7,200 KB |
実行使用メモリ | 6,400 KB |
最終ジャッジ日時 | 2024-07-04 12:38:25 |
合計ジャッジ時間 | 1,718 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 7 |
other | AC * 29 |
ソースコード
#yuki954 f=[1,1,2,3] while f[-1]<=10**15: f.append(f[-1]+f[-2]) a=[int(raw_input()) for i in range(5)] a.reverse() res=0 for i in range(6): for j in range(len(f)-i): if a[:i]==f[j:j+i]: res=max(res,i) print res