結果
| 問題 | No.920 あかあお |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-12-15 19:03:48 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 277 bytes |
| 記録 | |
| コンパイル時間 | 908 ms |
| コンパイル使用メモリ | 181,828 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-04-08 14:28:46 |
| 合計ジャッジ時間 | 1,850 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int64_t x, y, z;
cin >> x >> y >> z;
int64_t ans = 0;
for (int i = 0; i <= z; i++) {
int64_t a = x + i;
int64_t b = y + (z - i);
ans = max(ans, min(a, b));
}
cout << ans << endl;
return 0;
}