結果

問題 No.2647 [Cherry 6th Tune A] Wind
ユーザー tombo314tombo314
提出日時 2024-02-23 21:35:23
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 10 ms / 2,000 ms
コード長 1,131 bytes
コンパイル時間 2,319 ms
コンパイル使用メモリ 208,044 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-02-23 21:35:31
合計ジャッジ時間 3,161 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
#include <chrono>
#include <random>
using namespace std;
typedef long long ll;
#define rep(i, a, b) for (ll i=a; i<b; i++)
#define rrep(i, a, b) for (ll i=a; i>b; i--)
#define vrep(x, v) for (auto x: v)
#define mrep(x, y, v) for (auto [x, y]: v)
#define srt(v) sort(v.begin(), v.end())
#define rev(v) reverse(v.begin(), v.end())
#define vmax(v) *max_element(v.begin(), v.end())
#define vmin(v) *min_element(v.begin(), v.end())
#define vsum(v, T) accumulate(v.begin(), v.end(), T(0))
#define now() chrono::duration_cast<chrono::milliseconds>(chrono::system_clock::now().time_since_epoch()).count()
#define choice(in, out, n) sample(in.begin(), in.end(), back_inserter(out), n, mt)
#define inf 1e18

int main(){
    ll T;
    cin >> T;
    vector<vector<ll>> ans(T);
    
    rep(t, 0, T){
        ll D, A;
        cin >> D >> A;
        vector<ll> X(D);
        vrep(&x, X){
            cin >> x;
        }

        vrep(x, X){
            ans[t].push_back(round((long double)x/A));
        }
    }

    vrep(x, ans){
        vrep(y, x){
            cout << y << " ";
        }
        cout << endl;
    }
}
0