結果
| 問題 |
No.994 ばらばらコイン
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-02-21 21:28:36 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 611 bytes |
| コンパイル時間 | 924 ms |
| コンパイル使用メモリ | 81,904 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-08 21:05:54 |
| 合計ジャッジ時間 | 1,851 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 WA * 12 |
コンパイルメッセージ
main.cpp: In function 'long long int dfs()':
main.cpp:24:1: warning: no return statement in function returning non-void [-Wreturn-type]
24 | }
| ^
ソースコード
#include<iostream>
#include<string>
#include<iomanip>
#include<cmath>
#include<vector>
#include<algorithm>
using namespace std;
#define int long long
#define endl "\n"
constexpr long long INF = (long long)1e18;
constexpr long long MOD = 1'000'000'007;
string yn(bool f){return f?"Yes":"No";}
string YN(bool f){return f?"YES":"NO";}
int N, K;
vector<int> used;
vector<vector<int>> tree;
int dfs(){
}
signed main(){
cin.tie(nullptr);
ios::sync_with_stdio(false);
cout<<fixed<<setprecision(10);
cin>>N>>K;
if(N < K) {
cout<<-1<<endl;
return 0;
} else {
cout<<N-1<<endl;
}
return 0;
}