結果

問題 No.2647 [Cherry 6th Tune A] Wind
ユーザー t98slider
提出日時 2024-03-03 23:59:03
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 4 ms / 2,000 ms
コード長 377 bytes
コンパイル時間 4,371 ms
コンパイル使用メモリ 192,364 KB
最終ジャッジ日時 2025-02-20 00:38:49
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    int T;
    cin >> T;
    while(T--){
        int D;
        unsigned long long A, v;
        cin >> D >> A;
        for(int i = 1; i <= D; i++){
            cin >> v;
            cout << (v / A) + ((10 * v / A) % 10 >= 5) << (i == D ? '\n' : ' ');
        }
    }
}
0