結果
| 問題 | 
                            No.857 素振り
                             | 
                    
| コンテスト | |
| ユーザー | 
                             at_tokio
                         | 
                    
| 提出日時 | 2019-08-10 01:54:24 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 781 bytes | 
| コンパイル時間 | 1,587 ms | 
| コンパイル使用メモリ | 165,588 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-07-19 16:12:43 | 
| 合計ジャッジ時間 | 2,038 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 8 | 
ソースコード
#include <bits/stdc++.h>
using namespace std; typedef long double ld; typedef long long ll;
typedef unsigned long long ull;
#define endl "\n"
#define MP make_pair
#define FOR(i,a,b) for(int i=(a);i<=(b);i++)
#define FORR(x,arr) for(auto& x:arr)
#define PII pair<int, int>
#define FI first 
#define SE second
#define ALL(x) (x).begin(), (x).end()
const int INF=1<<30; const ll LINF=1LL<<60; const ll mod=1e9+7; const int NIL = -1;
template<class T>inline bool chmax(T &a, const T &b) { if (a<b) { a = b; return 1; } return 0; }
template<class T>inline bool chmin(T &a, const T &b) { if (b<a) { a = b; return 1; } return 0; }
//-------------------
int main(){
	ll x,y,z; cin >> x >> y >> z;
	ll ans = z;
	if(x<=z) ans -= 1;
	if(y<=z) ans -= 1;
	cout << ans << endl;
    return 0;
}
            
            
            
        
            
at_tokio