結果
問題 |
No.2647 [Cherry 6th Tune A] Wind
|
ユーザー |
|
提出日時 | 2024-05-31 21:22:39 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 11 ms / 2,000 ms |
コード長 | 440 bytes |
コンパイル時間 | 2,144 ms |
コンパイル使用メモリ | 192,092 KB |
最終ジャッジ日時 | 2025-02-21 17:25:02 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
#include<bits/stdc++.h> #define pt printf(">>>") #define mid (((l)+(r))/2) using namespace std; typedef long long ll; typedef long double ld; const ll N=1e6+10,inf=1e18+10,mod=1e9+7; const ll dir[4][2]={{1,0},{-1,0},{0,1},{0,-1}}; ll d,a,x[100+10]; int main(){ int T; cin >> T; while(T--){ cin >> d >> a; for(ll i=1;i<=d;i++)cin >> x[i]; for(ll i=1;i<=d;i++){ cout << (2*x[i]+a)/(2*a) << ' '; } cout << endl; } return 0; }