結果
問題 | No.920 あかあお |
ユーザー |
![]() |
提出日時 | 2019-11-19 19:57:07 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 996 bytes |
コンパイル時間 | 1,239 ms |
コンパイル使用メモリ | 120,932 KB |
最終ジャッジ日時 | 2025-01-08 04:08:53 |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include <iostream> #include <vector> #include <limits.h> #include <algorithm> #include <string> #include <math.h> #include <limits.h> #include <queue> #include <map> #include <set> #include <iomanip> #include <bitset> #include <cassert> #include <random> #include <functional> #include <stack> #include <iomanip> #include <cassert> //#include <boost/multiprecision/cpp_int.hpp> #include <complex> #include <cstdio> using namespace std; //std::ios::sync_with_stdio(false); //std::cin.tie(0); const long long MOD = 1e9 + 7; typedef long long ll; typedef long double ld; typedef pair<ll, ll> pll; typedef pair<ld, ll> pdl; typedef pair<ld, ld> pdd; typedef vector<ll> VLL; typedef vector<VLL> VVLL; //typedef boost::multiprecision::cpp_int bigint; int main() { std::ios::sync_with_stdio(false); std::cin.tie(0); ll A, B, C; cin >> A >> B >> C; ll ans = 0; for (ll c = 0; c <= C; c++) { ll a = A + c; ll b = B + (C - c); ans = max(ans, min(a, b)); } cout << ans << "\n"; return 0; }