結果

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

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;
using ll = long long;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  ll X, Y, Z;
  cin >> X >> Y >> Z;
  Z -= Y <= Z ? 1 : 0;
  Z -= X <= Z ? 1 : 0;
  cout << Z << '\n';
  return 0;
}
0