結果

問題 No.994 ばらばらコイン
ユーザー goto_isyuku
提出日時 2020-02-21 21:33:42
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 475 bytes
コンパイル時間 1,537 ms
コンパイル使用メモリ 166,092 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-08 21:18:46
合計ジャッジ時間 2,466 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

#define rep(X,N) for(ll X = 0; X < (N); X++)
#define PI (acos(-1.0))
#define pback push_back
#define mpair make_pair
#define MODN 1000000007
#define ALL(V) (V).begin(),(V).end()
#define CERR if(false) cerr
#define INT_MAX_HALF (INT_MAX / 2)
#define EPS (1e-10)

using namespace std;

typedef long long ll;

int main(){

    int n,k;
    cin >> n >> k;

    int ans = k - 1;

    if(k > n) ans = -1;

    cout << ans << endl;



    
    return 0;
}
0