結果

問題 No.994 ばらばらコイン
ユーザー cureskol
提出日時 2020-03-19 20:12:03
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 1,538 ms
コンパイル使用メモリ 166,200 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-14 03:27:54
合計ジャッジ時間 3,045 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

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

signed main(){
    int n,k;cin>>n>>k;
    int a;for(int i=0;i<2*n-2;i++)cin>>a;
    cout<<(n<k?-1:k-1)<<endl;
}
0