結果

問題 No.920 あかあお
ユーザー parsee1053parsee1053
提出日時 2020-11-08 01:35:02
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 429 bytes
コンパイル時間 728 ms
コンパイル使用メモリ 81,320 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-22 14:59:32
合計ジャッジ時間 1,426 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 8 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>

using namespace std;

typedef long long ll;

#define MOD 1000000007

int main() {
  int x, y, z;
  cin >> x >> y >> z;
  int ans = min(x, y);
  ans += ((max(x, y) - ans + z) / 2);
  cout << ans << endl;
  return 0;
}
0