結果
| 問題 | No.2691 Longest Infection Sequence | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2024-03-22 21:25:59 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 37 ms / 2,000 ms | 
| コード長 | 154 bytes | 
| コンパイル時間 | 168 ms | 
| コンパイル使用メモリ | 82,440 KB | 
| 実行使用メモリ | 51,968 KB | 
| 最終ジャッジ日時 | 2024-09-30 13:22:07 | 
| 合計ジャッジ時間 | 1,264 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 14 | 
ソースコード
a,b,o,w=map(int,input().split())
ans=0
if a:
    ans=max(ans,a+w)
if b:
    ans=max(ans,b+w)
if o:
    ans=max(ans,o+a+w,o+b+w)
ans=max(ans,w)
print(ans)
            
            
            
        