結果
問題 | No.2647 [Cherry 6th Tune A] Wind |
ユーザー |
![]() |
提出日時 | 2024-02-23 22:57:48 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 5 ms / 2,000 ms |
コード長 | 487 bytes |
コンパイル時間 | 2,898 ms |
コンパイル使用メモリ | 246,336 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-09-29 08:13:33 |
合計ジャッジ時間 | 3,582 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
#define rep(i,n) for(int i=0;i<(int)(n);i++)#define ALL(v) v.begin(),v.end()typedef long long ll;#include<bits/stdc++.h>using namespace std;int main(){ios::sync_with_stdio(false);std::cin.tie(nullptr);int t;cin>>t;while(t--){ll d,a;cin>>d>>a;vector<ll> X(d);rep(i,d) cin>>X[i];vector<ll> ANS(d);rep(i,d) ANS[i]=(2*X[i]+a)/(2*a);rep(i,d){if(i) cout<<" ";cout<<ANS[i];}cout<<'\n';}return 0;}