結果
| 問題 | No.2691 Longest Infection Sequence | 
| コンテスト | |
| ユーザー |  norioc | 
| 提出日時 | 2024-03-22 22:22:20 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 36 ms / 2,000 ms | 
| コード長 | 198 bytes | 
| コンパイル時間 | 156 ms | 
| コンパイル使用メモリ | 82,416 KB | 
| 実行使用メモリ | 53,480 KB | 
| 最終ジャッジ日時 | 2024-09-30 13:26:15 | 
| 合計ジャッジ時間 | 1,251 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 14 | 
ソースコード
A, B, O, W = map(int, input().split())
def f():
    if O > 0:
        return sum([O, max(A, B), W])
    if A > 0 or B > 0:
        return sum([max(A, B), W])
    return W
ans = f()
print(ans)
            
            
            
        