結果
| 問題 |
No.920 あかあお
|
| コンテスト | |
| ユーザー |
kobaryo222
|
| 提出日時 | 2019-11-08 21:27:40 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 334 bytes |
| コンパイル時間 | 1,948 ms |
| コンパイル使用メモリ | 192,776 KB |
| 最終ジャッジ日時 | 2025-01-08 02:29:51 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 WA * 2 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using i64 = long long int;
#define rep(i, n) for(int i = 0; i < (n); ++i)
#define all(v) v.begin(), v.end()
int main(){
i64 x, y, z;
cin >> x >> y >> z;
if(x > y) swap(x, y);
if(y - x <= z) cout << y + (z - (y - x)) / 2 << endl;
else cout << (x + z) / 2 << endl;
}
kobaryo222