結果
| 問題 |
No.954 Result
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-02-21 03:41:07 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 379 bytes |
| コンパイル時間 | 209 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-10-08 19:40:39 |
| 合計ジャッジ時間 | 2,106 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 7 |
| other | AC * 27 WA * 2 |
ソースコード
A = [int(input()) for _ in range(5)]
A.reverse()
ans = 0
f = [0, 1, 1, 2, 3]
for i in range(100):
if f[0] == A[0]:
match = 1
for i in range(1, 5):
if f[i] == A[i]:
match += 1
else:
break
ans = max(ans, match)
elif f[0] > A[0]:
break
f[0:4] = f[1:5]
f[4] += f[2]
print(ans)