結果
| 問題 |
No.2691 Longest Infection Sequence
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-07-04 22:50:09 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 426 bytes |
| コンパイル時間 | 5,392 ms |
| コンパイル使用メモリ | 308,892 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-04 22:50:15 |
| 合計ジャッジ時間 | 6,031 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 14 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#include<atcoder/all>
using namespace atcoder;
using ll = long long;
using ld = long double;
#ifdef LOCAL
#include <dump/dump.hpp>
#else
#define dump(...) void(0)
#endif
using mint = modint998244353;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int A, B, O, W; cin >> A >> B >> O >> W;
int ans = max(O + A + W, O + B + W);
cout << ans << endl;
}