結果

問題 No.857 素振り
ユーザー ui_mtcui_mtc
提出日時 2019-09-27 16:38:50
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
TLE  
実行時間 -
コード長 277 bytes
コンパイル時間 1,780 ms
コンパイル使用メモリ 166,572 KB
実行使用メモリ 7,800 KB
最終ジャッジ日時 2023-10-24 16:39:10
合計ジャッジ時間 3,933 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
7,784 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 TLE -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define int long long
using namespace std;

signed main() {

  int X, Y, Z;
  cin >> X >> Y >> Z;
  
  int ans = 0;
  for( int i = 1; i <= Z; i++ ){
    if( i == X || i == Y ){
      continue;
    }else{
      ans++;
    }
  }
  cout << ans << endl;
}
0