結果

問題 No.857 素振り
ユーザー Dente
提出日時 2019-08-19 02:37:38
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 440 bytes
コンパイル時間 1,758 ms
コンパイル使用メモリ 164,880 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-01 20:15:20
合計ジャッジ時間 2,018 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define REP(i,a) for(int i = 0; i < (a); i++)
#define ALL(a) (a).begin(),(a).end()
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1e9;
const int MOD = 1e9 + 7;

signed main(){
    ll x,y,z;
    cin >> x >> y >> z;
    if(x <= z && y <= z){
        cout << z - 2 << endl;
    }else if(x > z && y > z){
        cout << z << endl;
    }else{
        cout << z - 1 << endl;
    }
}
0