結果
| 問題 |
No.2647 [Cherry 6th Tune A] Wind
|
| コンテスト | |
| ユーザー |
eve__fuyuki
|
| 提出日時 | 2024-02-25 15:38:58 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 428 bytes |
| コンパイル時間 | 1,860 ms |
| コンパイル使用メモリ | 191,296 KB |
| 最終ジャッジ日時 | 2025-02-19 21:18:32 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
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 / 2) / a << (i + 1 == d ? "\n" : " ");
}
}
}
eve__fuyuki