結果

問題 No.669 対決!!! 飲み比べ
ユーザー ilplrrilplrr
提出日時 2018-03-23 23:22:32
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 281 bytes
コンパイル時間 1,896 ms
コンパイル使用メモリ 145,244 KB
実行使用メモリ 4,388 KB
最終ジャッジ日時 2023-09-07 04:18:02
合計ジャッジ時間 2,479 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,384 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 2 ms
4,384 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 1 ms
4,380 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 2 ms
4,380 KB
testcase_13 AC 1 ms
4,388 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 2 ms
4,380 KB
testcase_17 WA -
testcase_18 AC 2 ms
4,384 KB
testcase_19 AC 1 ms
4,380 KB
testcase_20 AC 1 ms
4,380 KB
testcase_21 AC 1 ms
4,380 KB
testcase_22 AC 1 ms
4,384 KB
testcase_23 WA -
testcase_24 AC 2 ms
4,380 KB
testcase_25 AC 1 ms
4,380 KB
testcase_26 AC 1 ms
4,380 KB
testcase_27 AC 1 ms
4,380 KB
testcase_28 AC 2 ms
4,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main()
{
    int n, k;
    cin >> n >> k;

    vector<int> a(n);
    for (auto& x: a) cin >> x;

    int cnt = 0;
    for (auto& x: a) cnt += x / k + (x % k > 1);

    cout << ((cnt) % 2 ? "YES" : "NO") << endl;

    return 0;
}
0