結果

問題 No.994 ばらばらコイン
ユーザー pto8913
提出日時 2020-02-21 21:55:38
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 249 bytes
コンパイル時間 529 ms
コンパイル使用メモリ 64,896 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-08 21:40:09
合計ジャッジ時間 1,382 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6 WA * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>

using namespace std;

#define rep(i, a, n) for(int i = a; i < (n); ++i)

int main(){
  int n, k;
  cin >> n >> k;

  if (n > k) {
    cout << -1 << endl;
    return 0;
  }
  cout << k - 1 << endl;
  return 0;
}
0