結果

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

ソースコード

diff #

#include <iostream>
#include <vector>
#include <set>
#include <queue>
#include <utility>

using namespace std;

typedef long long int ll;

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);

  ll X, Y, Z;
  cin >> X >> Y >> Z;

  ll count = Z;
  if (X <= Z) count--;
  if (Y <= Z) count--;

  cout << count << endl;

  return 0;
}
0