結果

問題 No.857 素振り
ユーザー gemmaro
提出日時 2019-08-09 21:46:47
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 234 bytes
コンパイル時間 602 ms
コンパイル使用メモリ 53,716 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-19 11:35:19
合計ジャッジ時間 1,192 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 2 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std ;

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