結果
| 問題 |
No.2647 [Cherry 6th Tune A] Wind
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-02-23 21:54:03 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 2,000 ms |
| コード長 | 358 bytes |
| コンパイル時間 | 1,998 ms |
| コンパイル使用メモリ | 191,360 KB |
| 最終ジャッジ日時 | 2025-02-19 19:45:23 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
void solve() {
int d;
long long a;
cin >> d >> a;
for (int i = 0; i < d; ++i) {
long long x;
cin >> x;
x += a / 2;
cout << (x / a) << " \n"[i + 1 == d];
}
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int test = 1;
cin >> test;
while (test--) {
solve();
}
return 0;
}