結果

問題 No.920 あかあお
ユーザー Mayimg
提出日時 2019-11-09 13:07:10
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 272 bytes
コンパイル時間 1,898 ms
コンパイル使用メモリ 192,876 KB
最終ジャッジ日時 2025-01-08 03:45:19
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios::sync_with_stdio(false); cin.tie(0);
  int x, y, z;
  cin >> x >> y >> z;
  while (z) {
    if (x <= y) x++;
    else y++;
    z--;
  }
  cout << min(x, y) << '\n';
  return 0;
}
0