結果
| 問題 |
No.2647 [Cherry 6th Tune A] Wind
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-19 19:55:19 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 2,000 ms |
| コード長 | 549 bytes |
| コンパイル時間 | 2,248 ms |
| コンパイル使用メモリ | 195,648 KB |
| 最終ジャッジ日時 | 2025-02-21 03:26:58 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
/**
* auther: deviceF
* created: 19.04.2024 07:15:04
**/
#include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
int t;
cin >> t;
while (t--) {
long long n, d;
cin >> n >> d;
vector<long long> a(n);
for (int i = 0; i < n; i++) {
cin >> a[i];
}
for (int i = 0; i < n; i++) {
a[i] = ((a[i] * 2) + (long long)d) / (2 * (long long)d);
}
for (auto i : a) {
cout << i << " ";
}
cout << '\n';
}
return 0;
}