結果

問題 No.857 素振り
ユーザー Haruki0804SHaruki0804S
提出日時 2021-05-19 17:41:57
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 485 bytes
コンパイル時間 2,641 ms
コンパイル使用メモリ 116,736 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-09 21:42:02
合計ジャッジ時間 3,199 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 1 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>

using namespace std;

int main() {
    int a, b, c;
    // 標準入力から、空白や改行で区切られた整数と文字列を読み込む。
    cin >> a >> b >> c;

    if ((a - c) <= 0){
        c = c - 1;
    }
    if ((b -c ) <= 0 ){
        c = c - 1;
    }
    cout << c << endl;


    // 整数と文字列を空白で区切って、標準出力に書き出す。
    // cout << a << " " <<  b << " " << c << endl;
    return 0;
}
0