結果
問題 |
No.920 あかあお
|
ユーザー |
|
提出日時 | 2021-12-02 23:57:12 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 383 bytes |
コンパイル時間 | 3,848 ms |
コンパイル使用メモリ | 250,844 KB |
最終ジャッジ日時 | 2025-01-26 02:54:08 |
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; #include <atcoder/all> using namespace atcoder; #define ll long long #define rep(i, n) for (int i = 0; i < (n); i++) #define P pair<int, int> #define LP pair<ll, ll> int main() { int x, y, z; cin >> x >> y >> z; if (x+z <= y) cout << x+z << endl; else if (y+z <= x) cout << y+z << endl; else cout << (x+y+z)/2 << endl; }