結果
| 問題 | 
                            No.942 プレゼント配り
                             | 
                    
| コンテスト | |
| ユーザー | 
                             ei13337
                         | 
                    
| 提出日時 | 2019-12-01 00:56:59 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 541 bytes | 
| コンパイル時間 | 947 ms | 
| コンパイル使用メモリ | 81,756 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-12-14 09:49:17 | 
| 合計ジャッジ時間 | 3,640 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 WA * 1 | 
| other | AC * 7 WA * 11 | 
ソースコード
#include <iostream>
#include <vector>
#include <stack>
#include <queue>
#include <algorithm>
#include <set>
#include <map>
#include <iomanip>
#include <cassert>
using namespace std;
int main() {
    int n, k;
    cin >> n >> k;
    if(n <= 0 || n > 200000 || k <= 0 || k > n || n % k != 0) assert(false);
    int m = n / k;
    if(n == 1) {
        cout << "Yes" << endl;
        return 0;
    }
    if((n % 2 == 0 && m % 2 == 1) || m == 1) {
        cout << "No" << endl;
        return 0;
    }
    cout << "Yes" << endl;
    return 0;
}
            
            
            
        
            
ei13337