結果
| 問題 |
No.920 あかあお
|
| コンテスト | |
| ユーザー |
phantomShin
|
| 提出日時 | 2019-11-08 21:32:15 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 276 bytes |
| コンパイル時間 | 1,252 ms |
| コンパイル使用メモリ | 158,360 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-16 05:53:55 |
| 合計ジャッジ時間 | 1,851 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 WA * 2 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
int x, y, z;
cin >> x >> y >> z;
int ans = 0;
if(max(x,y) - min(x,y) <= z){
ans += max(x,y);
z -= max(x,y)-min(x,y);
}
cout << ans + z/2 << endl;
}
phantomShin