結果
問題 | No.531 エヌスクミ島の平和協定 |
ユーザー |
|
提出日時 | 2019-07-31 12:17:19 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 14 ms / 2,000 ms |
コード長 | 222 bytes |
コンパイル時間 | 1,880 ms |
コンパイル使用メモリ | 192,284 KB |
最終ジャッジ日時 | 2025-01-07 10:14:47 |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 37 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;int main() {int n, m;cin>>n>>m;if (n <= m) puts("1");else if (n % 2 == 0 && n/2 <= m) puts("2");else puts("-1");return 0;}