結果
| 問題 |
No.2691 Longest Infection Sequence
|
| コンテスト | |
| ユーザー |
とりゐ
|
| 提出日時 | 2024-03-22 21:23:25 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 35 ms / 2,000 ms |
| コード長 | 164 bytes |
| コンパイル時間 | 133 ms |
| コンパイル使用メモリ | 82,560 KB |
| 実行使用メモリ | 53,720 KB |
| 最終ジャッジ日時 | 2024-09-30 13:21:00 |
| 合計ジャッジ時間 | 1,228 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 14 |
ソースコード
A,B,O,W=map(int,input().split()) ans=0 if A>0: ans=max(ans,A+W) if B>0: ans=max(ans,B+W) if W>0: ans=max(ans,W) if O>0: ans=max(ans,O+W+max(A,B)) print(ans)
とりゐ