結果

問題 No.920 あかあお
ユーザー T.Stream
提出日時 2020-04-14 12:43:29
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 5 ms / 2,000 ms
コード長 186 bytes
コンパイル時間 3,083 ms
コンパイル使用メモリ 190,420 KB
最終ジャッジ日時 2025-01-09 18:34:37
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
	int x,y,z;
	cin >> x >> y >> z;
	if(x<y) swap(x,y);
	if(x-y<z){
		cout << x+(z+y-x)/2;
	}else{
		cout << y+z;
	}
	return 0;
}
0