結果
問題 | No.994 ばらばらコイン |
ユーザー |
![]() |
提出日時 | 2020-02-21 21:38:36 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 58 ms / 2,000 ms |
コード長 | 679 bytes |
コンパイル時間 | 848 ms |
コンパイル使用メモリ | 94,936 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-08 21:22:54 |
合計ジャッジ時間 | 2,572 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
#include <cstdio> #include <climits> #include <cmath> #include <iostream> #include <iomanip> #include <string> #include <cstdio> #include <climits> #include <iostream> #include <algorithm> #include <string> #include <vector> #include <utility> #include <queue> #include <cstring> #include <set> #include <map> #include <complex> #define rep(i, n) for (int i = 0; i < int(n); i++) using namespace std; long long MOD = 1000000007; long long INF = 1000000000000000; //10^15 typedef long long ll; typedef unsigned long long ull; int main(void) { int n, k; int a, b; cin >> n >> k; rep(i, n) cin >> a >> b; if (n < k) cout << -1 << endl; else cout << k - 1 << endl; }