結果
| 問題 | No.2691 Longest Infection Sequence |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-22 21:25:59 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 2,000 ms |
| コード長 | 154 bytes |
| 記録 | |
| コンパイル時間 | 330 ms |
| コンパイル使用メモリ | 85,024 KB |
| 実行使用メモリ | 52,760 KB |
| 最終ジャッジ日時 | 2026-04-16 16:41:10 |
| 合計ジャッジ時間 | 1,499 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)