結果

問題 No.857 素振り
ユーザー Tsukasa Noguchi
提出日時 2019-08-18 14:36:21
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 246 bytes
コンパイル時間 739 ms
コンパイル使用メモリ 66,144 KB
最終ジャッジ日時 2025-01-07 14:11:12
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

int main() {
    long long int x, y, z;
    cin >> x >> y >> z;

    long long int c = z;
    if (z >= x) {
        c--;
    }
    if (z >= y) {
        c--;
    }
    cout << c << endl;

    return 0;
}
0