結果

問題 No.2691 Longest Infection Sequence
ユーザー Nikkuniku029
提出日時 2024-03-22 21:27:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 129 bytes
コンパイル時間 247 ms
コンパイル使用メモリ 81,664 KB
実行使用メモリ 51,968 KB
最終ジャッジ日時 2024-09-30 13:22:47
合計ジャッジ時間 1,485 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B, O, W = map(int, input().split())
ans = O
if max(A, B) > 0:
    ans += max(A, B)
    ans += W
else:
    ans += W
print(ans)
0