結果
| 問題 | No.2647 [Cherry 6th Tune A] Wind |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-19 19:55:19 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 549 bytes |
| 記録 | |
| コンパイル時間 | 1,184 ms |
| コンパイル使用メモリ | 214,172 KB |
| 実行使用メモリ | 11,940 KB |
| 最終ジャッジ日時 | 2026-07-04 12:35:16 |
| 合計ジャッジ時間 | 1,919 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}