結果
問題 | No.2647 [Cherry 6th Tune A] Wind |
ユーザー |
|
提出日時 | 2024-02-23 21:21:36 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 331 bytes |
コンパイル時間 | 436 ms |
コンパイル使用メモリ | 64,080 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-09-29 05:18:29 |
合計ジャッジ時間 | 1,068 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
#include<iostream>#include<cassert>using namespace std;int main(){ios::sync_with_stdio(false);cin.tie(nullptr);int T;cin>>T;for(;T--;){int D;long long A;cin>>D>>A;for(int i=1;i<=D;i++){long long X;cin>>X;//floor(X/A+1/2)=floor((2X+A)/(2A))cout<<(2*X+A)/(2*A)<<(i==D?"\n":" ");}}}