結果
問題 | No.531 エヌスクミ島の平和協定 |
ユーザー |
![]() |
提出日時 | 2019-08-11 21:07:14 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 224 bytes |
コンパイル時間 | 640 ms |
コンパイル使用メモリ | 65,264 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-14 01:29:55 |
合計ジャッジ時間 | 1,903 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 37 |
ソースコード
#include<iostream>#include<algorithm>using namespace std;using lint=int64_t;int main(){int n,m;cin >> n >> m;if(n<=m)cout << 1;else if(n%2==0 && n/2<=m)cout << 2;else cout << -1;cout << endl;return 0;}