結果
問題 |
No.920 あかあお
|
ユーザー |
![]() |
提出日時 | 2023-07-26 02:23:08 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 366 bytes |
コンパイル時間 | 840 ms |
コンパイル使用メモリ | 104,092 KB |
最終ジャッジ日時 | 2025-02-15 19:11:01 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 WA * 3 |
ソースコード
#include<iostream> #include<iomanip> #include<string> #include<algorithm> #include<vector> #include<set> #include<list> #include<queue> #include<math.h> #include<bitset> using namespace std; int main(){ int x, y, z; cin >> x >> y >> z; if (x+z-y >= 0 || y+z-x >= 0) cout << max(x, y) + (z -abs(x-y))/2 << endl; else cout << min(x, y) + z << endl; }