結果
| 問題 |
No.2691 Longest Infection Sequence
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-22 21:24:11 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 46 ms / 2,000 ms |
| コード長 | 353 bytes |
| コンパイル時間 | 211 ms |
| コンパイル使用メモリ | 82,428 KB |
| 実行使用メモリ | 56,196 KB |
| 最終ジャッジ日時 | 2024-09-30 13:21:20 |
| 合計ジャッジ時間 | 1,404 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 14 |
ソースコード
import sys
sys.setrecursionlimit(5*10**5)
input = sys.stdin.readline
from collections import defaultdict, deque, Counter
from heapq import heappop, heappush
from bisect import bisect_left, bisect_right
from math import gcd
a,b,o,w = map(int,input().split())
ans = 0
if o >= 1:
ans += o
ans += max(a,b) + w
else:
ans += max(a,b)+w
print(ans)