結果
問題 |
No.531 エヌスクミ島の平和協定
|
ユーザー |
|
提出日時 | 2018-04-28 15:20:13 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 359 bytes |
コンパイル時間 | 500 ms |
コンパイル使用メモリ | 62,976 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 23:19:46 |
合計ジャッジ時間 | 1,860 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 35 WA * 2 |
ソースコード
#include<iostream> using namespace std; int main(){ int n , m; cin >> n >> m; int res = 0; if(n%2 == 0){ if(m >= (n/2)){ res = 2; }else{ res = -1; } }else{ if(m >= n){ res = 1; }else{ res = -1; } } cout << res << endl; return 0; }