結果

問題 No.2647 [Cherry 6th Tune A] Wind
ユーザー eve__fuyukieve__fuyuki
提出日時 2024-02-25 15:36:53
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 795 bytes
コンパイル時間 2,275 ms
コンパイル使用メモリ 202,172 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-02-25 15:36:56
合計ジャッジ時間 2,645 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 2 ms
6,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

#include <atcoder/lazysegtree>
using namespace std;
using namespace atcoder;
using pdi = pair<long double, int>;
pdi op(pdi a, pdi b) { return {a.first + b.first, a.second + b.second}; }
pdi e() { return {0, 1}; }
pdi mapping(long double f, pdi x) { return {x.first + f * x.second, x.second}; }
long double composition(long double f, long double g) { return f + g; }
long double id() { return 0; }

void fast_io() {
    ios::sync_with_stdio(false);
    std::cin.tie(nullptr);
}

int main() {
    fast_io();
    int t;
    cin >> t;
    for (; t--;) {
        int d;
        long long a;
        cin >> d >> a;
        for (int i = 0; i < d; i++) {
            long long x;
            cin >> x;
            cout << x / a << (i + 1 == d ? "\n" : " ");
        }
    }
}
0